From 168b4c5bc034367912f32bad6706cc91987d1085 Mon Sep 17 00:00:00 2001 From: Kevin Serrano Date: Thu, 1 Sep 2016 15:01:45 -0700 Subject: Install deps. Fix chrome/firefox typo. --- gulpfile.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gulpfile.js') diff --git a/gulpfile.js b/gulpfile.js index dac6cce3e..40ae6f203 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -16,6 +16,8 @@ var eslint = require('gulp-eslint') var fs = require('fs') var path = require('path') var manifest = require('./app/manifest.json') +var gulpif = require('gulp-if') +var replace = require('gulp-replace') // browser reload @@ -72,8 +74,8 @@ gulp.task('copy:root', copyTask({ pattern: '/*', })) -gulp.task('manifest:cleanup', function() { - return gulp.src('./dist/firefox/manifest.json') +gulp.task('manifest:chrome', function() { + return gulp.src('./dist/chrome/manifest.json') .pipe(jsoneditor(function(json) { delete json.applications return json @@ -81,7 +83,7 @@ gulp.task('manifest:cleanup', function() { .pipe(gulp.dest('./dist/chrome', { overwrite: true })) }) -gulp.task('copy', gulp.series(gulp.parallel('copy:locales','copy:images','copy:fonts','copy:reload','copy:root'), 'manifest:cleanup')) +gulp.task('copy', gulp.series(gulp.parallel('copy:locales','copy:images','copy:fonts','copy:reload','copy:root'), 'manifest:chrome')) gulp.task('copy:watch', function(){ gulp.watch(['./app/{_locales,images}/*', './app/scripts/chromereload.js', './app/*.{html,json}'], gulp.series('copy')) }) -- cgit v1.2.3