Skip to content

Commit eb7c39a

Browse files
committed
add bower to grunt file
1 parent e890824 commit eb7c39a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Gruntfile.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ module.exports = function (grunt) {
2929
// Project settings
3030
yeoman: appConfig,
3131

32+
bower: {
33+
install: {
34+
options: {
35+
targetDir: './bower_components',
36+
copy: false,
37+
cleanTargetDir: true
38+
}
39+
//just run 'grunt bower:install' and you'll see files from your Bower packages in lib directory
40+
}
41+
},
3242
// Watches files for changes and runs tasks based on the changed files
3343
watch: {
3444
bower: {
@@ -467,6 +477,7 @@ module.exports = function (grunt) {
467477
]);
468478

469479
grunt.registerTask('build', [
480+
'bower:install',
470481
'clean:dist',
471482
'wiredep',
472483
'useminPrepare',
@@ -486,7 +497,7 @@ module.exports = function (grunt) {
486497
grunt.registerTask('default', [
487498
'newer:jshint',
488499
// 'test',
489-
'build'
500+
'cordova'
490501
]);
491502

492503
grunt.registerTask('cordova',

0 commit comments

Comments
 (0)