1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-21 16:18:28 +01:00

Added dist-firefox gulp task to add applications section to manifest

This commit is contained in:
Kyle Spearrin 2017-02-22 18:58:31 -05:00
parent b54be3e3d9
commit d06744f739
2 changed files with 18 additions and 2 deletions

View File

@ -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({}))

View File

@ -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"
}
}