Chrome Extension, TypeScript and Visual Studio Code
- node + npm (Current Version)
- 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
npm install
npm run build
Navigate to chrome://extensions/
, toggle "Developer mode" on. Click on "Load unpacked" then navigate to the repo and "Select". Toggle the "Lattice labs" extension on.
While developing, you can run npm run watch
and reload via chrome://extensions/
to watch your changes
...
npm run build
npm run watch
Run watch mode.
type Ctrl + Shift + B
Load dist
directory
npx jest
or npm run test