From e9966428bdf09ed0e3ea82dae1b430789cb2e29c Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 14 Sep 2014 02:42:36 +0200 Subject: include jshint-stylish dependency --- web/gulpfile.js | 4 ++-- web/package.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'web') diff --git a/web/gulpfile.js b/web/gulpfile.js index 9ec2a0a7..bae4955b 100644 --- a/web/gulpfile.js +++ b/web/gulpfile.js @@ -52,7 +52,7 @@ gulp.task("fonts", function () { function styles(files, dev) { return (gulp.src(files, {base: "src", cwd: "src"}) - .pipe(dont_break_on_errors()) + .pipe(dev ? dont_break_on_errors() : gutil.noop()) .pipe(dev ? sourcemaps.init() : gutil.noop()) .pipe(less()) .pipe(dev ? sourcemaps.write(".", {sourceRoot: "/static"}) : gutil.noop()) @@ -71,7 +71,7 @@ gulp.task("styles-prod", ["styles-app-prod", "styles-vendor-prod"]); function scripts(files, filename, dev) { return gulp.src(files, {base: "src", cwd: "src"}) - .pipe(dont_break_on_errors()) + .pipe(dev ? dont_break_on_errors(): gutil.noop()) .pipe(dev ? sourcemaps.init() : gutil.noop()) .pipe(react({harmony: true})) .pipe(concat(filename)) diff --git a/web/package.json b/web/package.json index aef2c124..7bae0fa5 100644 --- a/web/package.json +++ b/web/package.json @@ -29,6 +29,7 @@ "gulp-sourcemaps": "^1.1.5", "gulp-uglify": "^1.0.1", "gulp-util": "^3.0.1", + "jshint-stylish": "^0.4.0", "react": "", "react-tools": "" } -- cgit v1.2.3