aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-09-14 02:42:36 +0200
committerMaximilian Hils <git@maximilianhils.com>2014-09-14 02:42:36 +0200
commite9966428bdf09ed0e3ea82dae1b430789cb2e29c (patch)
tree11dc10e2e982e3eb56304ebe46888018bfe10ce5 /web
parentff09529ba3a5ec6d8df38a354ca61a6a4d33d3a1 (diff)
downloadmitmproxy-e9966428bdf09ed0e3ea82dae1b430789cb2e29c.tar.gz
mitmproxy-e9966428bdf09ed0e3ea82dae1b430789cb2e29c.tar.bz2
mitmproxy-e9966428bdf09ed0e3ea82dae1b430789cb2e29c.zip
include jshint-stylish dependency
Diffstat (limited to 'web')
-rw-r--r--web/gulpfile.js4
-rw-r--r--web/package.json1
2 files changed, 3 insertions, 2 deletions
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": ""
}