This package is monorepo of react-scripts@5.0.1
It will create react app using given template without copying over node_modules
, package.json
, package-lock.json
, yarn.lock
, .env.development
and .env
from template folder.
This way developers can work on custom cra templates without worrying about deleting installed packages in template folder for development purposes
yarn create react-app myapp --scripts-version cra-script-nomod
npx create-react-app myapp --scripts-version cra-script-nomod
Customize cra-template template.json
{
"package": {
"dependencies":{
...
},
"devDependencies":{
...
}
},
"env":{
"REACT_APP_API_URL" : "https://example.com/api"
},
"envDevelopment":{
"REACT_APP_DEVELOPMENT_API_URL" : "https://example.com/api"
},
}
This package includes scripts and configuration used by Create React App.
Please refer to its documentation:
- Getting Started – How to create a new app.
- User Guide – How to develop apps bootstrapped with Create React App.
Monorepo created by cloning create-react-app and using
git filter-branch –prune-empty –subdirectory-filter packages/react-scripts main
MIT