ugly hack around grunt-bower bug.
This commit is contained in:
1 parent
982379dc14
commit
2210b93105
2 files changed
+12
-6
No files matched your search
@@ -5,7 +5,9 @@ module.exports = (grunt) ->
|
|||||||
packagekg: grunt.file.readJSON('package.json')
|
packagekg: grunt.file.readJSON('package.json')
|
||||||
bower:
|
bower:
|
||||||
install:{}
|
install:{}
|
||||||
|
shell:
|
||||||
|
bower:
|
||||||
|
command: "node_modules/.bin/bower install"
|
||||||
connect:
|
connect:
|
||||||
server:
|
server:
|
||||||
options:
|
options:
|
||||||
@@ -13,7 +15,8 @@ module.exports = (grunt) ->
|
|||||||
base: '.'
|
base: '.'
|
||||||
keepalive: true
|
keepalive: true
|
||||||
|
|
||||||
clean: ["js"]
|
clean:
|
||||||
|
compiledFiles: ["js"]
|
||||||
|
|
||||||
coffee:
|
coffee:
|
||||||
compile:
|
compile:
|
||||||
@@ -42,8 +45,9 @@ module.exports = (grunt) ->
|
|||||||
grunt.loadNpmTasks('grunt-contrib-watch')
|
grunt.loadNpmTasks('grunt-contrib-watch')
|
||||||
grunt.loadNpmTasks('grunt-concurrent')
|
grunt.loadNpmTasks('grunt-concurrent')
|
||||||
grunt.loadNpmTasks('grunt-contrib-clean')
|
grunt.loadNpmTasks('grunt-contrib-clean')
|
||||||
|
grunt.loadNpmTasks('grunt-shell')
|
||||||
|
|
||||||
# tasks
|
# tasks
|
||||||
grunt.registerTask('default', ['bower', 'clean', 'coffee:compile'])
|
grunt.registerTask('default', ['bower', 'clean:compiledFiles', 'coffee:compile'])
|
||||||
grunt.registerTask('prod', ['bower', 'clean', 'coffee:compile'])
|
grunt.registerTask('prod', ['shell:bower', 'clean:compiledFiles', 'coffee:compile'])
|
||||||
grunt.registerTask('dev', ['default', 'concurrent:target'])
|
grunt.registerTask('dev', ['default', 'concurrent:target'])
|
||||||
+4
-2
@@ -1,11 +1,13 @@
|
|||||||
{
|
{
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"grunt": "^0.4.4",
|
"grunt": "^0.4.4",
|
||||||
"grunt-bower-task": "^0.3.4",
|
|
||||||
"grunt-contrib-connect": "^0.7.1",
|
"grunt-contrib-connect": "^0.7.1",
|
||||||
"grunt-contrib-coffee": "^0.10.1",
|
"grunt-contrib-coffee": "^0.10.1",
|
||||||
"grunt-contrib-watch": "^0.6.1",
|
"grunt-contrib-watch": "^0.6.1",
|
||||||
"grunt-concurrent": "^0.5.0",
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user