cra-template-project
v1.0.3
Published
The base template for front-end project.
Downloads
8
Maintainers
Readme
cra-template-project
About The Project
This is a custom React.js template built on "create-react-app." It offers React Router, TypeScript, Ant Design, ESLint, and Stylelint for efficient project setup and development.
Built With
Project Structure
See custom templates
Getting Started
Prerequisites
- nvm
- node >= 16
Usage
- Make the copy of the template
npx create-react-app my-app --scripts-version rueis-react-scripts --template cra-template-project
- Check the format function
cd my-app
npm run lint
- Change the project name in package.json
- Add version control
- Create a repository on GitHub
- Initialize git
git checkout -b dev
git remote add origin https://github.com/xxxxxx/xxxx.git
git branch -M dev
git add .
git commit -m "chore: init project"
git push --set-upstream origin dev
- Run dev server
npm run start
- Building for production
npm run build
Develop
- Clone the repo
git clone https://github.com/BeseyeOrg/cra-template-project.git
- Testing this template locally
npx create-react-app my-app --scripts-version rueis-react-scripts --template file:../path/to/your/template/cra-template-project
Deploy
This project has been published on npm. How to publish on npm