1
0
Fork 0
grunt-tasks/Gruntfile.js

31 lines
672 B
JavaScript
Raw Normal View History

2014-09-10 23:45:27 -04:00
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
2014-09-10 23:55:09 -04:00
watch: {
scripts: {
files: ['/tmp/test/*'],
tasks: 'fixwhitespace',
options: {
spawn: false,
},
},
},
2014-09-10 23:45:27 -04:00
trimtrailingspaces: {
main: {
src: ['/tmp/test/*'],
options: {
filter: 'isFile',
encoding: 'utf8',
failIfTrimmed: false
}
}
}
});
grunt.loadNpmTasks('grunt-trimtrailingspaces');
2014-09-10 23:55:09 -04:00
grunt.loadNpmTasks('grunt-contrib-watch');
2014-09-10 23:45:27 -04:00
grunt.registerTask('default', []);
grunt.registerTask('fixwhitespace', ['trimtrailingspaces']);
};