Move task to individual file
This commit is contained in:
parent
614edcc8ba
commit
32521c22b7
2 changed files with 8 additions and 5 deletions
|
@ -25,10 +25,6 @@ module.exports = function(grunt) {
|
|||
grunt.loadNpmTasks('grunt-trimtrailingspaces');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
|
||||
var cwd = grunt.option('cwd');
|
||||
grunt.registerTask('default', []);
|
||||
grunt.registerTask('fixwhitespace', function() {
|
||||
grunt.config.set('cwd', cwd);
|
||||
grunt.task.run('trimtrailingspaces');
|
||||
});
|
||||
grunt.loadTasks('tasks');
|
||||
};
|
||||
|
|
7
tasks/fixwhitespace.js
Normal file
7
tasks/fixwhitespace.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
module.exports = function(grunt) {
|
||||
grunt.registerTask('fixwhitespace', function() {
|
||||
var cwd = grunt.option('cwd');
|
||||
grunt.config.set('cwd', cwd);
|
||||
grunt.task.run('trimtrailingspaces');
|
||||
});
|
||||
};
|
Loading…
Reference in a new issue