From 2ad7b83b3348f06f5d6d3da78cb7426d844f1fef Mon Sep 17 00:00:00 2001 From: Damian Mullins Date: Tue, 30 Jan 2018 10:33:50 +0000 Subject: [PATCH] =?UTF-8?q?v7.3.0=20=E2=80=94=20Set=20`bail`=20argument=20?= =?UTF-8?q?to=20`true`=20only=20when=20run=20in=20production.=20(#106)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 9 +++++++++ package.json | 2 +- tasks/copy.js | 3 ++- tasks/javascript.js | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dbc45e9..22e785b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,15 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). + +v7.3.0 +------------------------------ +*January 30, 2018* + +### Changed +- Set `bail` argument to `true` only when run in production. + + v7.2.0 ------------------------------ *January 23, 2018* diff --git a/package.json b/package.json index bf9aab5..64cc1b2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@justeat/gulp-build-fozzie", - "version": "7.2.0", + "version": "7.3.0", "description": "Gulp build tasks for use across Fozzie modules", "main": "index.js", "author": "Damian Mullins (http://www.damianmullins.com)", diff --git a/tasks/copy.js b/tasks/copy.js index ec2177f..5f64d27 100644 --- a/tasks/copy.js +++ b/tasks/copy.js @@ -95,5 +95,6 @@ gulp.task('copy:assets', () => dest: config.assetDistDir, verbose: config.importedAssets.verbose, logger: gutil.log - }).catch(config.gulp.onError) + }) + .catch(config.gulp.onError) ); diff --git a/tasks/javascript.js b/tasks/javascript.js index ca84792..2e33cb0 100644 --- a/tasks/javascript.js +++ b/tasks/javascript.js @@ -63,7 +63,7 @@ gulp.task('scripts:lint', () => gulp.src([`${pathBuilder.jsSrcDir}/**/*.js`, ... const jestTestRun = (args = {}) => jest.runCLI( - Object.assign({ bail: true }, args), + Object.assign({ bail: config.isProduction }, args), [path.resolve(process.cwd())] );