I know the web-ext tool can be used from the command line, but I’d like to build it into our Gulp task process. We have some devs that aren’t as familiar with the command line and running node commands. So we would like to stream line the process a bit and give them simple gulp task to run.
I’ve gotten as far as:
var webext = require('web-ext');
webext.main();
I looked in the web-ext node directory at the src/program.js
file
the .main() function takes
absolutePackageDir: string,
{
getVersion = defaultVersionGetter, commands = defaultCommands, argv,
runOptions = {},
}
So I passed an absolute path to the dist/
directory and fiddled around with trying to pass different parameters, but to no avail. I’m not sure how to properly pass different arguments to it such as run, build, sign and their sub arguments such as changing the source directory to dist/ and setting it to run in Firefox Dev Edition and things like that.
Any ideas?