Chrome Extension, TypeScript and Visual Studio Code
- TypeScript
- Webpack
- React
- Jest
- Example Code
- Chrome Storage
- Options Version 2
- content script
- count up badge number
- background
- src/typescript: TypeScript source files
- src/assets: static files
- dist: Chrome Extension directory
- dist/js: Generated JavaScript files
Repo has to have the following secrets for automatic publishing to work:
GOOGLE_CLIENT_ID=XXXXXX
GOOGLE_CLIENT_SECRET=XXXXXX
GOOGLE_REFRESH_TOKEN=XXXXXX
[email protected]
FIREFOX_PASSWORD=XXXXXX
FIREFOX_TOTP_SECRET=XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX
Addon slug and extension ID also have to be included in the .releaserc.json
config file for Firefox and Chrome, respectively.
yarn
...
yarn build
yarn watch
Run watch mode.
type Ctrl + Shift + B
Load dist
directory
npx jest
or yarn test