This repo builds and deploys a simple chrome and firefox extension for searching braid components.
This project is powered by sku, braid and built with React.
First of all, make sure you've installed Yarn.
Then, install dependencies:
$ yarn
Start a local development server:
$ yarn start
Run unit tests:
$ yarn test
Lint and format code:
$ yarn lint
$ yarn format
Build assets for production:
$ yarn build
Zip folders to be uploaded to chrome and firefox:
$ yarn build-zip
yarn
yarn build
yarn set-version <version-number>
yarn zip:chrome
To create signed xpi file.
- Requires Mozilla API key and secret.
- Requires node and yarn and nvm
- Run
nvm use
yarn
yarn build
yarn web-ext sign --api-key $MOZILLA_SECRET_KEY --api-secret $MOZILLA_SECRET_VALUE --channel unlisted -s dist
xpi file should be in web-ext-artifacts/braid_lookup_extension-....xpi