Skip to content

Commit

Permalink
docs: explain how to build with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgarel committed Aug 18, 2022
1 parent ee30941 commit 8e510b6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# webext created files
web-ext-artifacts/

# Windows image file caches
Thumbs.db
ehthumbs.db
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,16 @@ The extension is now installed, and will appear at the top right, if you are log
* Menu "load a temporary module" > pick the file generated from the `web-ext build` command
* redo this operation each time you want to use it

* Note: if you want to do the "build" method above without installing npm, you might use docker:
* go to the project directory
* launch `docker run --rm -ti -v $(pwd):/home/node node:lts-slim bash`
* within the container run the following:
```bash
cd /home/node
npm install --global web-ext
web-ext build
exit
```
* the extension will be inside the `web-ext-artifacts` folder

The extension is now installed, and will appear at the top right, if you are logged into your account, in the form of a red button with a white pencil

0 comments on commit 8e510b6

Please sign in to comment.