The default grunt task now installs bower components, thus saving one step in the developer docs
This commit is contained in:
parent
d3cad446b4
commit
dbccddbc22
3 changed files with 17 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
module.exports = function(grunt) {
|
||||
grunt.config.merge({
|
||||
bowerdir: "bower_components",
|
||||
copy: {
|
||||
html: {
|
||||
options: {
|
||||
|
@ -74,6 +75,19 @@ module.exports = function(grunt) {
|
|||
}
|
||||
}
|
||||
},
|
||||
"bower-install-simple": {
|
||||
options: {
|
||||
directory: "<%=bowerdir%>",
|
||||
color: true,
|
||||
interactive: false,
|
||||
production: true
|
||||
},
|
||||
"prod": {
|
||||
options: {
|
||||
production: true
|
||||
}
|
||||
}
|
||||
},
|
||||
requirejs: {
|
||||
compile: {
|
||||
options: {
|
||||
|
@ -89,6 +103,7 @@ module.exports = function(grunt) {
|
|||
}
|
||||
})
|
||||
|
||||
grunt.loadNpmTasks("grunt-bower-install-simple")
|
||||
grunt.loadNpmTasks("grunt-contrib-copy")
|
||||
grunt.loadNpmTasks("grunt-contrib-requirejs")
|
||||
grunt.loadNpmTasks("grunt-contrib-sass")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue