🖥️ 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 Mode
checkbox in the upper-right corner is turned on. ClickLoad unpacked
and select thedist
directory in this repository - your extension should now be loaded.
Scripts
yarn dev
- runwebpack
inwatch
modeyarn 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.js
and associated dependencies are only necessary for Jest to work with TypeScript. -
Recommended to use
Visual Studio Code
with theFormat on Save
setting turned on. -
Example icons courtesy of FontAwesome.
-
Includes Storybook configured to work with React + TypeScript. Note that it maintains its own
webpack.config.js
andtsconfig.json
files. 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 exampleAddEsLint
Add Bootstrap + SCSSAddStorybook
for more controlled component developmentAddSCSS
supportAddmanifest.json
Addpopup.html
Addpopup
React componentAddJest
+ snapshot testsAdd example icons