Initial version of Node.js rewrite

This commit is contained in:
Samer Albahra
2015-07-01 00:12:02 -05:00
parent 3bd0decc2d
commit 3d6c7d6da3
8 changed files with 339 additions and 448 deletions

45
Gruntfile.js Normal file
View File

@@ -0,0 +1,45 @@
module.exports = function( grunt ) {
// Load node-modules;
grunt.loadNpmTasks( "grunt-contrib-jshint" );
grunt.loadNpmTasks( "grunt-contrib-compress" );
grunt.loadNpmTasks( "grunt-jscs" );
// Project configuration.
grunt.initConfig( {
pkg: grunt.file.readJSON( "package.json" ),
jshint: {
main: [ "server.js", "routes/**" ],
options: {
jshintrc: true
}
},
jscs: {
main: [ "server.js", "routes/**" ],
options: {
config: true,
fix: true
}
},
compress: {
build: {
options: {
archive: "WeatherService.zip"
},
files: [ {
src: [ ".ebextensions/*", "routes/*", "server.js", "package.json" ],
expand: true
} ]
}
}
} );
// Default task(s).
grunt.registerTask( "default", [ "jshint", "jscs" ] );
grunt.registerTask( "build", [ "jshint", "jscs", "compress:build" ] );
};