🖥️ A Chrome Extension starter kit built with React, TypeScript, SCSS, Storybook, EsLint, Jest, Bootstrap, & Webpack.
Getting Started
- Run the following commands to install dependencies and
yarn install
yarn dev
- Open up chrome://extensions in your browser. Make sure the
Developer Modecheckbox in the upper-right corner is turned on. ClickLoad unpackedand select thedistdirectory in this repository - your extension should now be loaded.
Scripts
yarn dev- runwebpackinwatchmodeyarn storybook- runs the Storybook serveryarn build- builds the production-ready unpacked extensionyarn test -u- runs Jest + updates test snapshotsyarn lint- runs EsLintyarn prettify- runs Prettier
Notes
-
Includes ESLint configured to work with TypeScript and Prettier.
-
Includes tests with Jest - note that the
babel.config.jsand associated dependencies are only necessary for Jest to work with TypeScript. -
Recommended to use
Visual Studio Codewith theFormat on Savesetting turned on. -
Example icons courtesy of FontAwesome.
-
Includes Storybook configured to work with React + TypeScript. Note that it maintains its own
webpack.config.jsandtsconfig.jsonfiles. See example story insrc/components/hello/__tests__/hello.stories.tsx
Built with
Misc. References
- Chrome Extension Developer Guide
- https://dev.to/robertcoopercode/using-eslint-and-prettier-in-a-typescript-project-53jb
ToDos
- Build out
README.md- Description of tech used
- Document directory structure
- Add icons for tech used
Add screenshots of StorybookAdd screenshots of example extensionAdd links to Chrome Extension dev docsAdd component with JS script injection exampleAddEsLintAdd Bootstrap + SCSSAddStorybookfor more controlled component developmentAddSCSSsupportAddmanifest.jsonAddpopup.htmlAddpopupReact componentAddJest+ snapshot testsAdd example icons


