Add local weather caching mechanism
This commit is contained in:
19
Gruntfile.js
19
Gruntfile.js
@@ -2,7 +2,6 @@ module.exports = function( grunt ) {
|
||||
|
||||
// Load node-modules;
|
||||
grunt.loadNpmTasks( "grunt-contrib-jshint" );
|
||||
grunt.loadNpmTasks( "grunt-contrib-compress" );
|
||||
grunt.loadNpmTasks( "grunt-jscs" );
|
||||
|
||||
// Project configuration.
|
||||
@@ -10,36 +9,22 @@ module.exports = function( grunt ) {
|
||||
pkg: grunt.file.readJSON( "package.json" ),
|
||||
|
||||
jshint: {
|
||||
main: [ "server.js", "routes/**" ],
|
||||
main: [ "Gruntfile.js", "server.js", "routes/**", "models/**" ],
|
||||
options: {
|
||||
jshintrc: true
|
||||
}
|
||||
},
|
||||
|
||||
jscs: {
|
||||
main: [ "server.js", "routes/**" ],
|
||||
main: [ "Gruntfile.js", "server.js", "routes/**", "models/**" ],
|
||||
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" ] );
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user