Skip to content

Commit

Permalink
use cross-spawn to fix spawn on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
joelanman committed Nov 2, 2016
1 parent ffe5770 commit db31aa2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"body-parser": "^1.14.1",
"browser-sync": "^2.11.1",
"consolidate": "0.x",
"cross-spawn": "^5.0.0",
"express": "4.13.3",
"express-session": "^1.13.0",
"express-writer": "0.0.4",
Expand Down
4 changes: 2 additions & 2 deletions start.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ if (!fs.existsSync(path.join(__dirname, '/node_modules'))) {

// run gulp

var child = require('child_process')
var spawn = require('cross-spawn')

process.env['FORCE_COLOR'] = 1
var gulp = child.spawn('gulp')
var gulp = spawn('gulp')
gulp.stdout.pipe(process.stdout)
gulp.stderr.pipe(process.stderr)
process.stdin.pipe(gulp.stdin)
Expand Down

0 comments on commit db31aa2

Please sign in to comment.