diff --git a/.gitignore b/.gitignore index 263e049..c4ad32a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,3 @@ -*-update/* -*.DS_Store node_modules src/content-script.js -src/.amo-upload-uuid -src/web-ext-artifacts +*web-ext-artifacts/* diff --git a/README.md b/README.md index e5790ac..bda948c 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,14 @@ MetamorPOV includes Node packages for verb conjugation. You'll need [Node](https # Install project dependencies npm install -# Bundles replace-words.js and its dependencies into content-script.js +# Bundle replace-words.js and its dependencies into content-script.js npm run build # Open a browser instance with the extension installed npm run test + +# Generate a .zip that can be loaded in a browser +npm run package ``` When running the extension with the `test` script, it will be updated automatically as source files are modified. This excludes `content-script.js`, which has to be bundled manually by running the `build` script. diff --git a/package.json b/package.json index 5cbd5f5..65c4efc 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "license": "GPL-3.0-or-later", "scripts": { "build": "npx rollup -c", - "test": "npx web-ext run -s src" + "test": "npx web-ext run -s src", + "package": "npx web-ext build -s src" }, "devDependencies": { "@rollup/plugin-commonjs": "28.0.2",