cra-template-project

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i cra-template-project

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

62.7 kB

Total Files

37

Last publish

Collaborators

  • rueiwang