How to use the web-ext.cmd function in web-ext

To help you get started, we’ve selected a few web-ext examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mozilla-lockwise / lockwise-addon / test / integration / driver.js View on Github external
async initialize() {
    if (this.webext) {
      return this.webext;
    }

    const sourceDir = PATH.dirname(this.manifest);
    const artifactsDir = PATH.resolve(sourceDir, "../addons");
    const info = await WebExtUtil.cmd.build({
      sourceDir,
      artifactsDir,
      overwriteDest: true,
    });

    this.webext = info;

    return this;
  }
github AdguardTeam / AdguardBrowserExtension / tasks / browser-firefox-amo.js View on Github external
const createWebExt = (done) => {
    if (BRANCH !== BRANCH_BETA && BRANCH !== BRANCH_RELEASE) {
        return done();
    }

    return webExt.cmd.build({
        sourceDir: paths.dest,
        artifactsDir: dest.buildDir,
        overwriteDest: true
    }).then((file) => {
        fs.renameSync(file.extensionPath, dest.webext);
        done();
    });
};

web-ext

A command line tool to help build, run, and test web extensions

MPL-2.0
Latest version published 6 days ago

Package Health Score

83 / 100
Full package analysis