cra-template-tailwind-enzyme-ts
v1.1.2
Published
The base template for Create React App using TypeScript with Tailwind CSS, PostCSS, and Autoprefixer. Now with Enzyme testing.
Downloads
9
Maintainers
Readme
cra-template-tailwind-enzyme-ts
My own custom Create React App template for React 17 with TypeScript 4.2 which uses:
To use and setup, run these commands:
npx create-react-app my-cool-app --template tailwind-enzyme-ts
cd my-cool-app
npm run setup
Individual setup commands are:
setup:css
- Installs Tailwind, PostCSS and CLI, and Autoprefixersetup:test
- Install Enzyme, Enzyme Adapter 17, and React Test Renderersetup:misc
- Install GH-Pages
To setup eslint, run this command:
npm run eslint
Notes:
- Don't forget to run
npm start
before coding so the Tailwind CSS files are setup! - Also don't forget to add
/src/assets/main.css
to .gitignore since it's usually a huge generated asset.