cra-template-chrome-extension-essentials
v0.0.1
Published
Template for Create React App with essentials tools to develop chrome extensions.
Downloads
3
Maintainers
Readme
cra-template-chrome-extension-essentials
This is an unofficial template for Create React App to develop chrome extensions.
To use this template, add --template chrome-extension-essentials
when creating a new app.
For example:
npx create-react-app my-app --template chrome-extension-essentials
# or
yarn create react-app my-app --template chrome-extension-essentials
Additional Scripts
This template comes with husky, prettier and lint-staged pre-installed to enhance your workflow.
You can setup this workflow run the following command:
npm run husky:setup
Install husky and create a pre-commit file which execute npx lint-staged
before commiting files to github.
Lint-staged will execute a routine to do, for now it will format all the files using prettier.
You can modify this routine by editing the file .lintstagedrc
located at the root of the project.
About this template
Code a chrome extension in no time with those packages:
- Typescript, for clean typed code 👽
- Husky, Lint-Staged and Prettier, for well formatted code ✨
- Tailwindcss, utility-first css to fast designing your extension 💅
- React Lottie, integrate cool animations in your extensions ✌️
For more information, please refer to:
- Getting Started – How to create a chrome extension.
- API Reference – API Reference to build chrome extension.
- Create React App Guide – How to develop apps bootstrapped with Create React App.
- TypeScript – TypeScript documentation.
- Prettier – Prettier documentation.
- Husky – Husky documentation.
- Lint-staged – Lint-staged documentation.