diff --git a/gulpfile.js b/gulpfile.js index ccef6792..69fb36ab 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -10,7 +10,8 @@ browserify = require('browserify'), source = require('vinyl-source-stream'), googleWebFonts = require('gulp-google-webfonts'), - webpack = require('webpack-stream'); + webpack = require('webpack-stream') + jeditor = require("gulp-json-editor"); var paths = {}; paths.dist = './dist/'; @@ -204,6 +205,20 @@ gulp.task('dist', ['build'], function (cb) { cb); }); +gulp.task('dist-firefox', ['dist'], function (cb) { + gulp.src(paths.dist + 'manifest.json') + .pipe(jeditor(function (manifest) { + manifest.applications = { + gecko: { + id: "addon@bitwarden.com", + strict_min_version: "42.0" + } + }; + return manifest; + })) + .pipe(gulp.dest(paths.dist)); +}); + gulp.task('webfonts', function () { return gulp.src('./webfonts.list') .pipe(googleWebFonts({})) diff --git a/package.json b/package.json index 63aa53cd..57f4feb7 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "gulp-google-webfonts": "0.0.14", "ng-infinite-scroll": "1.3.0", "node-forge": "0.7.0", - "webpack-stream": "3.2.0" + "webpack-stream": "3.2.0", + "gulp-json-editor": "2.2.1" } }