npm.io
1.0.3 • Published 2 years ago

cra-template-project

Licence
MIT
Version
1.0.3
Deps
0
Size
61 kB
Vulns
0
Weekly
0

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

  1. Make the copy of the template
npx create-react-app my-app --scripts-version rueis-react-scripts --template cra-template-project
  1. Check the format function
cd my-app
npm run lint
  1. Change the project name in package.json
  2. 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
  1. Run dev server
npm run start
  1. Building for production
npm run build
Develop
  1. Clone the repo
    git clone https://github.com/BeseyeOrg/cra-template-project.git
  2. 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