Many improvements and big fixes

This commit is contained in:
Samer Albahra
2015-07-02 20:53:18 -05:00
parent 8bfe799a01
commit 69d4c9ca4d
7 changed files with 38 additions and 28 deletions

View File

@@ -2,29 +2,20 @@ 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/**" ],
main: [ "Gruntfile.js", "server.js", "routes/*.js", "models/*.js" ],
options: {
jshintrc: true
}
},
jscs: {
main: [ "Gruntfile.js", "server.js", "routes/**", "models/**" ],
options: {
config: true,
fix: true
}
}
} );
// Default task(s).
grunt.registerTask( "default", [ "jshint", "jscs" ] );
grunt.registerTask( "default", [ "jshint" ] );
};