Before you begin installing this project you need NodeJS and npm installed on your machine. Make sure to install the latest version of node.
# clone the git repo
$ git clone https://gitlab.com/cbackas/posterizer-extension.git
# Install dependencies
$ npm install
- Run script
# build files to './dev'
# and launches the web ext in a new chrome instance, watches for changes and updates
$ npm run start:chrome
# launches in firefox
$ npm run start:firefox
# runs storybook
$ npm run storybook
- If you want to load your unpacked extension by yourself, then run
npm run dev
. This will create the extension inside an dev folder indevelopment
mode and will watch thesrc
folder for changes. - Load unpacked extensions with
./dev
folder. Though you have to reload the extension by yourself every time the./dev
folder updates.
These assets are copied as it is to the build folder, just like the /src/lib
folder.
# build files to './extension'
$ npm run build