Skip to content

Commit

Permalink
Add a gulp plumber.
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Oct 25, 2017
1 parent 9b3d217 commit 6fd17e3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions client/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ var babel = require('gulp-babel');
var sourcemaps = require('gulp-sourcemaps');
var uglify = require('gulp-uglify');
var cached = require('gulp-cached');
var plumber = require('gulp-plumber');

var paths = {
node_modules: './node_modules',
Expand Down Expand Up @@ -37,6 +38,7 @@ var paths = {

gulp.task('scripts', function() {
return gulp.src(paths.scripts)
.pipe(plumber())
.pipe(cached('scripts'))
.pipe(sourcemaps.init())
.pipe(babel())
Expand Down
1 change: 1 addition & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"gulp": "^3.9.1",
"gulp-babel": "^7.0.0",
"gulp-cached": "^1.1.1",
"gulp-plumber": "^1.1.0",
"gulp-sourcemaps": "^2.5.1",
"gulp-uglify": "^3.0.0",
"gulp-watch": "^4.3.11",
Expand Down
11 changes: 9 additions & 2 deletions client/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2218,6 +2218,13 @@ gulp-cached@^1.1.1:
lodash.defaults "^4.2.0"
through2 "^2.0.1"

gulp-plumber@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/gulp-plumber/-/gulp-plumber-1.1.0.tgz#f12176c2d0422f60306c242fff6a01a394faba09"
dependencies:
gulp-util "^3"
through2 "^2"

gulp-sourcemaps@^2.5.1:
version "2.6.1"
resolved "https://registry.yarnpkg.com/gulp-sourcemaps/-/gulp-sourcemaps-2.6.1.tgz#833a4e28f0b8f4661075032cd782417f7cd8fb0b"
Expand Down Expand Up @@ -2247,7 +2254,7 @@ gulp-uglify@^3.0.0:
uglify-js "^3.0.5"
vinyl-sourcemaps-apply "^0.2.0"

gulp-util@^3.0.0, gulp-util@^3.0.7:
gulp-util@^3, gulp-util@^3.0.0, gulp-util@^3.0.7:
version "3.0.8"
resolved "https://registry.yarnpkg.com/gulp-util/-/gulp-util-3.0.8.tgz#0054e1e744502e27c04c187c3ecc505dd54bbb4f"
dependencies:
Expand Down Expand Up @@ -4630,7 +4637,7 @@ tar@^2.2.1:
fstream "^1.0.2"
inherits "2"

through2@2.X, through2@^2.0.0, through2@^2.0.1, through2@^2.0.3:
through2@2.X, through2@^2, through2@^2.0.0, through2@^2.0.1, through2@^2.0.3:
version "2.0.3"
resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.3.tgz#0004569b37c7c74ba39c43f3ced78d1ad94140be"
dependencies:
Expand Down

0 comments on commit 6fd17e3

Please sign in to comment.