瀏覽代碼

Added Bower Installation task to Gulpfile.

Marco Quezada 10 年之前
父節點
當前提交
7a16677f71
共有 1 個文件被更改,包括 8 次插入2 次删除
  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']);