README
cra-templates
Packages
- cra-template scripts
- template-stocky37
- cra-template-stocky37 (generated)
Scripts
build:fresh
As build fails if run when the generated template workspaces do not exist yet,
this script aims to run a build that should always succeed.
Templates
cra-template-stocky37
This is my own personal template and includes the following on top of the base cra-template:
react-routerv6 for routingreact-queryfor fetching datajson-serverfor mocking JSON APIs locally- allow absolute imports from the
srcdirectory Dockerfiles for both development and production use- can pull envvars from
window.env(set in/config.js) orprocess.env eslintconfigured with airbnb base and sane defaultsprettierconfigured with my own preferred configurationpretty-package-jsonconfigured with defaults for keepingpackage.jsons prettified and deterministically orderedhusky&lint-stagedconfigured to runeslint,prettierandpretty-package-jsonin a pre-commit hook@welldone-software/why-did-you-renderfor helping debug rerender issues in development