https://github.com/koloer-blus/pre-me-cli
A front-end scaffolding that supports Webpack / Vite+TypeScript/JavaScript+React
https://github.com/koloer-blus/pre-me-cli
app autocomplete cli custom generator hooks javascript npm-package pre-me-cli react template typescript vite webpack
Last synced: 12 months ago
JSON representation
A front-end scaffolding that supports Webpack / Vite+TypeScript/JavaScript+React
- Host: GitHub
- URL: https://github.com/koloer-blus/pre-me-cli
- Owner: koloer-blus
- License: mit
- Created: 2021-01-25T14:34:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-08-20T17:20:18.000Z (almost 4 years ago)
- Last Synced: 2025-04-01T17:41:35.572Z (about 1 year ago)
- Topics: app, autocomplete, cli, custom, generator, hooks, javascript, npm-package, pre-me-cli, react, template, typescript, vite, webpack
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/pre-me-cli
- Size: 946 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [pre-me-cli๐](https://github.com/baiziyu-fe/pre-me-cli)
> `#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` and `Vite` are supported as project tools to start, and `Javascript` and `Typescript` are supported.
#### ๐[ไธญๆ๏ฝChinese](./README_zh.md)
## Features ๐
### Really one step in place ๐
1. Both `webpack` and `react` templates now support `sass`, `less`, `stylus`, which can be used directly after the installation is completed;
3. Simplify the `webpack` template configuration, update it to `webpack5` and use the cache function to improve the secondary startup speed;
4. Add `eslint` for code verification and code repair;
5. Use `husky` to add `git commit` detection;
6. Use `npm run commit` to implement canonical command submission;
7. Use `npx` to always keep templates updated or install with `npm` to keep your favorite version in your local repository;
8. Use `yarn` for package management to avoid version problems and dependency errors;
### Highly self-modifying ๐ฏ
1. Expose all configurable items to users to support more pluggable optimization and custom operations.
2. Provide users with an easier-to-use project template.
## use ๐ง
### method one:
- 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;
### Method 2 (to keep your templates always up to date)
- npx install: `npx pre-me-cli init [projectName]`
- webpack-ts
- webpack-js
- vite-ts
- vite-js
### Startup project
- Enter the project and install dependencies: `cd projectName` && `yarn`
- Start the project: `yarn dev` or `npm run dev`
---
#### You are very welcome to provide some feasible suggestions and help, and look forward to your joining~