aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
authorChi Kei Chan <chikeichan@gmail.com>2017-10-25 07:56:49 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-10-25 07:56:49 +0800
commit301c737bbc3a484fb49d2e1f868a576cea73e60a (patch)
treef109a25ae1e56dd28da5b259b933a857f0bc1be4 /gulpfile.js
parent3f1ae92bb7d4ca4629995f32dc03f37e6460a864 (diff)
parent1767dceba44f6d173bf3cdb8436d117c7f29b834 (diff)
downloadtangerine-wallet-browser-301c737bbc3a484fb49d2e1f868a576cea73e60a.tar
tangerine-wallet-browser-301c737bbc3a484fb49d2e1f868a576cea73e60a.tar.gz
tangerine-wallet-browser-301c737bbc3a484fb49d2e1f868a576cea73e60a.tar.bz2
tangerine-wallet-browser-301c737bbc3a484fb49d2e1f868a576cea73e60a.tar.lz
tangerine-wallet-browser-301c737bbc3a484fb49d2e1f868a576cea73e60a.tar.xz
tangerine-wallet-browser-301c737bbc3a484fb49d2e1f868a576cea73e60a.tar.zst
tangerine-wallet-browser-301c737bbc3a484fb49d2e1f868a576cea73e60a.zip
Merge branch 'master' into NewUI-flat
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js15
1 files changed, 14 insertions, 1 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 96aada130..620b9b663 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -165,7 +165,20 @@ gulp.task('lint', function () {
// To have the process exit with an error code (1) on
// lint error, return the stream and pipe to failAfterError last.
.pipe(eslint.failAfterError())
-})
+});
+
+gulp.task('lint:fix', function () {
+ return gulp.src(['app/**/*.js', 'ui/**/*.js', 'mascara/src/*.js', 'mascara/server/*.js', '!node_modules/**', '!dist/firefox/**', '!docs/**', '!app/scripts/chromereload.js', '!mascara/test/jquery-3.1.0.min.js'])
+ .pipe(eslint(Object.assign(fs.readFileSync(path.join(__dirname, '.eslintrc')), {fix: true})))
+ .pipe(eslint.format())
+ .pipe(eslint.failAfterError())
+});
+
+/*
+gulp.task('default', ['lint'], function () {
+ // This will only run if the lint task is successful...
+});
+*/
// build js