commit 917afad078dba71116e58dd42a5b0e87c9f72b87
parent c69ffc11432ebdb1294a5f4d3bb02bd4d99dec41
Author: Konstantin Tarkus <hello@tarkus.me>
Date: Mon, 22 Dec 2014 09:20:33 +0300
Tweak JSHint script in package.json
Diffstat:
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/gulpfile.js b/gulpfile.js
@@ -170,7 +170,9 @@ gulp.task('bundle', function(cb) {
throw new $.util.PluginError('webpack', err);
}
- !!argv.verbose && $.util.log('[webpack]', stats.toString({colors: true}));
+ if (argv.verbose) {
+ $.util.log('[webpack]', stats.toString({colors: true}));
+ }
if (!started) {
started = true;
diff --git a/package.json b/package.json
@@ -64,7 +64,8 @@
},
"scripts": {
"start": "gulp",
- "test": "jshint ./src && jest",
+ "test": "jshint && jest",
+ "jshint": "jshint ./src gulpfile.js",
"preupdate-webdriver": "npm install",
"update-webdriver": "webdriver-manager update"
}