#quick react project generator
A highly integrated
React
project generation scaffold, so that you don't have to worry about installing dependencies, and you don't have to repeatedly modify configuration files for custom configuration. Currently,Webpack
andVite
are supported as project tools to start, andJavascript
andTypescript
are supported.
- Both
webpack
andreact
templates now supportsass
,less
,stylus
, which can be used directly after the installation is completed; - Simplify the
webpack
template configuration, update it towebpack5
and use the cache function to improve the secondary startup speed; - Add
eslint
for code verification and code repair; - Use
husky
to addgit commit
detection; - Use
npm run commit
to implement canonical command submission; - Use
npx
to always keep templates updated or install withnpm
to keep your favorite version in your local repository; - Use
yarn
for package management to avoid version problems and dependency errors;
- Expose all configurable items to users to support more pluggable optimization and custom operations.
- Provide users with an easier-to-use project template.
- Install globally:
npm install pre-me-cli -g
- Create a project template with the command:
Create project
pre-me-cli init [projectName]
webpack-ts
: typescript project with webpack as a tool;webpack-js
: javascript project with webpack as a tool;vite-ts
: vite is a typescript project for tools;vite-js
: a javascript project with vite as a tool;
-
npx install:
npx pre-me-cli init [projectName]
- webpack-ts
- webpack-js
- vite-ts
- vite-js
- Enter the project and install dependencies:
cd projectName
&&yarn
- Start the project:
yarn dev
ornpm run dev