Skip to content

Commit

Permalink
Fix xtermjs#1232: Add webpack:watch gulp task
Browse files Browse the repository at this point in the history
  • Loading branch information
parisk committed Feb 5, 2018
1 parent 1462b30 commit d0f45fe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
web: npm start
webpack: npm run webpack:watch
4 changes: 4 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ gulp.task('webpack', ['build'], function() {
.pipe(gulp.dest('demo/dist/'));
});

gulp.task('webpack:watch', ['webpack'], () => {
gulp.watch('./src/*', ['webpack']);
});

/**
* Submit coverage results to coveralls.io
*/
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
"zmodem.js": "^0.1.5"
},
"scripts": {
"prestart": "gulp webpack",
"start": "node demo/app",
"prestart-zmodem": "npm run build",
"start-zmodem": "node build/addons/zmodem/demo/app",
Expand All @@ -86,7 +85,8 @@
"build": "gulp build",
"prepublish": "npm run build",
"coveralls": "gulp coveralls",
"webpack": "gulp webpack"
"webpack": "gulp webpack",
"webpack:watch": "gulp webpack:watch"
},
"dependencies": {}
}

0 comments on commit d0f45fe

Please sign in to comment.