mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-25 04:28:15 +00:00
Remove plumber so that gulp script dies when failure occurs
This commit is contained in:
+6
-9
@@ -16,18 +16,16 @@ import watch from 'gulp-watch';
|
||||
const $ = gulpLoadPlugins();
|
||||
const browserSync = require('browser-sync').create();
|
||||
const isProduction = process.env.NODE_ENV === 'production';
|
||||
const onError = (err) => {
|
||||
console.log(err);
|
||||
}
|
||||
console.log('&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&')
|
||||
console.log(process.env)
|
||||
console.log('&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&')
|
||||
|
||||
process.on('SIGINT', () => {
|
||||
console.log('Caught SIGINT, exiting');
|
||||
process.on('SIGINT', (err) => {
|
||||
console.log('Caught SIGINT, exiting', '\r\n', err);
|
||||
process.exit(0);
|
||||
});
|
||||
|
||||
process.on('uncaughtException', (err) => {
|
||||
console.log('Uncaught Exception, exiting', '\r\n', err);
|
||||
process.exit(1);
|
||||
});
|
||||
// --
|
||||
gulp.task('dev', ['build-dev'], () => {
|
||||
gulp.start('init-watch');
|
||||
@@ -103,7 +101,6 @@ gulp.task('sass', () => {
|
||||
return gulp.src([
|
||||
'src/sass/**/*.scss'
|
||||
])
|
||||
.pipe($.plumber({ errorHandler: onError }))
|
||||
.pipe($.sassLint())
|
||||
.pipe($.sassLint.format())
|
||||
.pipe($.sass({ precision: 5, importer: tildeImporter }))
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
"gulp-imagemin": "^4.1.0",
|
||||
"gulp-load-plugins": "^1.5.0",
|
||||
"gulp-newer": "^1.3.0",
|
||||
"gulp-plumber": "^1.1.0",
|
||||
"gulp-sass": "^3.1.0",
|
||||
"gulp-sass-lint": "^1.3.2",
|
||||
"gulp-size": "^3.0.0",
|
||||
|
||||
Reference in New Issue
Block a user