Install scripts, build app with rollup & configurable mirror app id

This commit is contained in:
Benjamin Dobell
2018-09-20 02:42:50 +10:00
parent c4ed13fb0b
commit 131935507a
24 changed files with 15381 additions and 663 deletions

20
ext/build.js Normal file
View File

@@ -0,0 +1,20 @@
const spawn = require('child_process').spawn;
const argv = require('minimist')(process.argv.slice(2));
const appId = argv.appId || "19A6F4AE";
const child = spawn(
`webpack --env.appId=${appId} `
+ '&& web-ext build '
+ '--overwrite-dest '
+ '--source-dir '
+ '../dist/ext/unpacked '
+ '--artifacts-dir '
+ '../dist/ext '
+ '&& mv ../dist/ext/*.zip ../dist/ext/ext.xpi'
, {
shell: true
}
);
child.stdout.pipe(process.stdout);
child.stderr.pipe(process.stderr);