cra-template-danie12345-react_basic-2
v1.0.0
Published
Repo to multiple react app templates. Feel free to add your own.
Downloads
2
Readme
Create React App Templates
Repo to multiple react app templates. Feel free to add your own.
Like the repo? Leave a 🎇, it helps ;)
Want your own template?
Create a new branch with the name
cra-USER-TEMPLATE_USE-VERSION
(eg.cra-danie12345-react_basic-1
)Modify what you need. Here is a sample of what you can do
To test that your template works:
- First run:
npx create-react-app my-app --template file:.
- Second run
cd my-app
- Then run
npm i
(install the right dependencies, cannot skip this step) - Finally run
npm start
- First run:
To publish your template:
- Change the
"name"
property inpackage.json
(Not the one inmy-app/package.json
) - Use a similar naming system to the branch you're in
- Run:
npm publish
Create your own branch with your username (eg.
danie12345
), and in it as many branches as you need, but DO NOT create PR's. You can fork instead.- Change the
To create your react app run
npx create-react-app my-app --template your-template-name
in the directory you want your project to be in.
The following are dependencies in main, which you can delete in your own branch if needed. These can be found in
template.json
.
Dependencies in Main
@testing-library/[email protected]
@testing-library/[email protected]
@testing-library/[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
DevDependencies in Main
@babel/[email protected]
@babel/[email protected]
@babel/[email protected]
@babel/[email protected]
@babel/[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
The original repo can be found here.
Note: this repo is NOT for substituting ihaback's repository, but rather to go wild with as many different templates as one can want for different projects.