JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q23407F
  • License MIT

The base template for front-end project.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cra-template-project) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    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

    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