Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.17 KB

development.md

File metadata and controls

37 lines (27 loc) · 1.17 KB

Installation

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

Development

  • 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 in development mode and will watch the src 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

# build files to './extension'
$ npm run build