1
0
Fork 0

Move task to individual file

This commit is contained in:
Andrew Tomaka 2014-09-11 01:03:19 -04:00
parent 614edcc8ba
commit 32521c22b7
2 changed files with 8 additions and 5 deletions

View file

@ -25,10 +25,6 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-trimtrailingspaces'); grunt.loadNpmTasks('grunt-trimtrailingspaces');
grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-watch');
var cwd = grunt.option('cwd');
grunt.registerTask('default', []); grunt.registerTask('default', []);
grunt.registerTask('fixwhitespace', function() { grunt.loadTasks('tasks');
grunt.config.set('cwd', cwd);
grunt.task.run('trimtrailingspaces');
});
}; };

7
tasks/fixwhitespace.js Normal file
View 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');
});
};