2.0.0 • Published 2 years ago
cra-template-please v2.0.0
cra-template-please
My personal template for Create React App.
Read about the features of this template here.
This template is useful for creating:
✓ React web apps
✓ Non-React web apps
✓ Web-based experiments
✓ Testing grounds for new libraries
Usage
This assumes I have already configured my computer.
To scaffold an app, use:
cra {name_of_app}
To create an app in the current directory, use:
cra .
New App Checklist
When building an application, there are a couple of things I need to do after installing the template.
- Search for the string
~~TEMPLATE~~
and change those values. - Add a favicon. I typically use this app.
Configuring My Computer
Create an alias for cra
:
alias cra="npx create-react-app --template cra-template-please"
Developing
I can test changes to this template without publishing using this command:
npx create-react-app --template file:./cra-template-please my-app
Learn More
For more information, please refer to:
- Getting Started – How to create a new app.
- User Guide – How to develop apps bootstrapped with Create React App.
Notes
- Everything is a
dependency
intemplate.json
because Create React App templates do not supportdevDependencies
as of July 2020.