ugly hack around grunt-bower bug.

This commit is contained in:
didier.amyot committed 2014-07-14 07:41:35 -04:00
1 parent 982379dc14
commit 2210b93105
2 files changed
+13 -7

No files matched your search

+9 -5
View File
@@ -4,8 +4,10 @@ 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:
@@ -13,7 +15,8 @@ module.exports = (grunt) ->
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'])
+4 -2
View File
@@ -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"
}
}