Added dist-firefox gulp task to add applications section to manifest
This commit is contained in:
parent
b54be3e3d9
commit
d06744f739
17
gulpfile.js
17
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({}))
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue