Browse Source

Added Bower Installation task to Gulpfile.

Marco Quezada 10 năm trước cách đây
mục cha
commit
7a16677f71
1 tập tin đã thay đổi với 8 bổ sung2 xóa
  1. 8 2
      gulpfile.js

+ 8 - 2
gulpfile.js

@@ -3,9 +3,15 @@ var gulp = require('gulp');
 
 // 2. Include any plugins you might need.
 var process = require('child_process');
-
+var install = require("gulp-install");
 // 3. Write out the tasks 
 
+gulp.task('bowerinstall',function(){
+	console.info('Installing Bower Packages.')
+    gulp.src(['./bower.json', './package.json'])
+    .pipe(install());
+})
+
 gulp.task('djangomigrate', function(){
 	var spawn = process.spawn;
 	console.info('Doing Django Migrations');
@@ -21,4 +27,4 @@ gulp.task('django', function(){
 });
 
 // 4. Default Task
-gulp.task('default',['django','djangomigrate']);
+gulp.task('default',['bowerinstall','django','djangomigrate']);