diff --git a/client/Gruntfile.coffee b/client/Gruntfile.coffee index 988aedd..c7a7e87 100644 --- a/client/Gruntfile.coffee +++ b/client/Gruntfile.coffee @@ -4,16 +4,19 @@ module.exports = (grunt) -> grunt.initConfig( packagekg: grunt.file.readJSON('package.json') bower: - install: {} - + install:{} + shell: + bower: + command: "node_modules/.bin/bower install" connect: server: options: port: 4506 base: '.' keepalive: true - - clean: ["js"] + + clean: + compiledFiles: ["js"] coffee: compile: @@ -42,8 +45,9 @@ module.exports = (grunt) -> grunt.loadNpmTasks('grunt-contrib-watch') grunt.loadNpmTasks('grunt-concurrent') grunt.loadNpmTasks('grunt-contrib-clean') + grunt.loadNpmTasks('grunt-shell') # tasks - grunt.registerTask('default', ['bower', 'clean', 'coffee:compile']) - grunt.registerTask('prod', ['bower', 'clean', 'coffee:compile']) + grunt.registerTask('default', ['bower', 'clean:compiledFiles', 'coffee:compile']) + grunt.registerTask('prod', ['shell:bower', 'clean:compiledFiles', 'coffee:compile']) grunt.registerTask('dev', ['default', 'concurrent:target']) diff --git a/client/package.json b/client/package.json index ad059c5..90ea205 100644 --- a/client/package.json +++ b/client/package.json @@ -1,11 +1,13 @@ { "devDependencies": { "grunt": "^0.4.4", - "grunt-bower-task": "^0.3.4", "grunt-contrib-connect": "^0.7.1", "grunt-contrib-coffee": "^0.10.1", "grunt-contrib-watch": "^0.6.1", "grunt-concurrent": "^0.5.0", - "grunt-contrib-clean": "^0.5.0" + "grunt-contrib-clean": "^0.5.0", + "bower": "~1.3.0", + "grunt-bower-task": "^0.3.4", + "grunt-shell": "~0.7.0" } }