OSDN Git Service

create directory
[eos/zephyr.git] / gulpfile.js
index a8cc4fd..57be83f 100644 (file)
@@ -3,8 +3,8 @@ var gulp            = require('gulp'),
     uglify          = require('gulp-uglify'),
     inject          = require('gulp-inject'),
     jshint          = require('gulp-jshint'),
-    angularFilesort = require('gulp-angular-filesort')
-bs                  = require('browser-sync').create(),
+    angularFilesort = require('gulp-angular-filesort'),
+    bs              = require('browser-sync').create(),
     gls             = require('gulp-live-server'),
     concat          = require('gulp-concat'),
     _               = require('lodash'),
@@ -36,12 +36,15 @@ gulp.task('inject', function() {
 
 gulp.task('browser-sync', ['serve'], function() {
     bs.init(null, {
-        proxy: "http://127.0.0.1:3000",
+        proxy: {
+            target: "http://127.0.0.1:3000",
+            ws: true
+        },
         browser: "google chrome",
-        port: "7000",
-        ghostMode: false
-    });
-});
+        //port: "7000",
+        ghostMode: false,
+    })
+})
 
 gulp.task('parse-option', function(cb) {
     return exec('ruby create-json-file.rb', {cwd: './util/'}, function(err) {
@@ -131,7 +134,7 @@ gulp.task('build', ['angular-concat', 'js-vendor-concat', 'underscore', 'js-app'
 
 gulp.task('default', function(callback) {
     runSequence('inject', 'serve', 'browser-sync', 'watch', callback)
-          //['inject', 'browser-sync', 'watch']); 
+    //['inject', 'browser-sync', 'watch']); 
 })
 gulp.task('deploy', function(callback) {
     runSequence('build', 'set-production', 'serve', callback)