Files
opensprinkler-weather/Gruntfile.js
2015-07-02 19:19:56 -05:00

31 lines
586 B
JavaScript

module.exports = function( grunt ) {
// Load node-modules;
grunt.loadNpmTasks( "grunt-contrib-jshint" );
grunt.loadNpmTasks( "grunt-jscs" );
// Project configuration.
grunt.initConfig( {
pkg: grunt.file.readJSON( "package.json" ),
jshint: {
main: [ "Gruntfile.js", "server.js", "routes/**", "models/**" ],
options: {
jshintrc: true
}
},
jscs: {
main: [ "Gruntfile.js", "server.js", "routes/**", "models/**" ],
options: {
config: true,
fix: true
}
}
} );
// Default task(s).
grunt.registerTask( "default", [ "jshint", "jscs" ] );
};