Skip to content

Commit

Permalink
Merge branch '__rultor'
Browse files Browse the repository at this point in the history
  • Loading branch information
rultor committed Mar 6, 2021
2 parents 094d087 + 5ab1e92 commit 3bca4f3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
21 changes: 17 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const child_process = require('child_process')
module.exports = function (grunt) {
'use strict';
grunt.util.linefeed = '\n';
grunt.loadNpmTasks('grunt-css-purge');
grunt.initConfig(
{
pkg: grunt.file.readJSON('package.json'),
Expand Down Expand Up @@ -70,7 +71,19 @@ module.exports = function (grunt) {
allFiles: [
'scss/*.scss'
]
}
},
css_purge: {
dist: {
options: {},
src: 'dist/<%= pkg.name %>-<%= pkg.version %>.min.css',
dest: 'dist/<%= pkg.name %>-<%= pkg.version %>.min.css',
},
uncompressed: {
options: {},
src: 'dist/<%= pkg.name %>-<%= pkg.version %>.css',
dest: 'dist/<%= pkg.name %>-<%= pkg.version %>.css',
},
},
}
);
require('load-grunt-tasks')(grunt, { scope: 'devDependencies' });
Expand Down Expand Up @@ -107,7 +120,7 @@ module.exports = function (grunt) {

})
})
grunt.registerTask('default', ['sasslint', 'sass:dist', 'checkYear', 'validate']);
grunt.registerTask('rultor', ['sasslint', 'sass:dist', 'sass:uncompressed', 'checkYear', 'validate']);
grunt.registerTask('dev', ['sasslint', 'sass:dev', 'watch']);
grunt.registerTask('default', ['sasslint', 'sass:dist', 'css_purge', 'checkYear', 'validate']);
grunt.registerTask('rultor', ['sasslint', 'sass:dist', 'sass:uncompressed', 'css_purge', 'checkYear', 'validate']);
grunt.registerTask('dev', ['sasslint', 'sass:dev', 'css_purge', 'watch']);
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"devDependencies": {
"grunt": "^1.0.3",
"grunt-contrib-watch": "^1.1.0",
"grunt-css-purge": "^1.1.0",
"grunt-sass": "^2.0.0",
"grunt-sass-lint": "^0.2.4",
"load-grunt-tasks": "3.4.0"
Expand Down

0 comments on commit 3bca4f3

Please sign in to comment.