https://github.com/capricorncd/dev3cli
Quickly build command line interface for Web front-end development environment. Vite/Vue3.x/React/TypeScript, Webpack/Vue2.x/React/Typescript
https://github.com/capricorncd/dev3cli
cli frontend react typescript vite vue vue3 webpack
Last synced: 3 months ago
JSON representation
Quickly build command line interface for Web front-end development environment. Vite/Vue3.x/React/TypeScript, Webpack/Vue2.x/React/Typescript
- Host: GitHub
- URL: https://github.com/capricorncd/dev3cli
- Owner: capricorncd
- Created: 2020-12-17T09:20:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-28T09:50:27.000Z (over 4 years ago)
- Last Synced: 2025-09-12T23:41:30.158Z (11 months ago)
- Topics: cli, frontend, react, typescript, vite, vue, vue3, webpack
- Language: JavaScript
- Homepage:
- Size: 149 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dev3cli
自己用的Web前端工程初始化工具,支持`vite vue3.x/react`(eslint/prettier/typescript), `webpack es6/vue2.x/react/typescript`(eslint)。
Quickly build command line interface for Web front end development environment.
Build by webpack, vue/react/typescript and babel/eslint/sass/scss
When using vite/vue3, execute the command: `dev3cli init ProjectName vite`
When using vite/react, execute the width command: `dev3cli init ProjectName vite react`
## Install
```shell script
# npm
npm install -g dev3cli
# or
npm i -g dev3cli
# yarn
yarn global add dev3cli
```
## Create a New Project
```shell script
dev3cli init project-name
```
### use vite/vue3.x
```shell script
dev3cli init project-name vite
```
### use vite/react
```shell script
dev3cli init project-name vite react
```
### use React(webpack)
```shell script
dev3cli init project-name react
# use typescript
dev3cli init project-name react ts
```
### use Vue2.x(webpack)
```shell script
dev3cli init project-name vue
# use typescript
dev3cli init project-name vue ts
```
### use typescript only(webpack)
```shell script
dev3cli init project-name typescript
# or
dev3cli init project-name ts
```
## Run the project
```shell script
# cd project-name
npm run dev
```
The project will run at `http://0.0.0.0:4000/` or `http://localhost:4000/`