|
1 | 1 | # ebuild-cli |
2 | 2 |
|
3 | | -### 🚀一键搭建webpack、babel、eslint、less、commitlint、typescript等开发环境 |
| 3 | +### 🚀 One-click build webpack, babel, eslint, less, commitlint, typescript, vue, react and other development environments |
4 | 4 |
|
5 | | -## 1. 安装: |
| 5 | +<p> |
| 6 | + <a href="https://www.npmjs.com/package/ebuild-cli"><img src="https://img.shields.io/npm/v/ebuild-cli.svg" alt="Version"></a> |
| 7 | + <a href="https://npmcharts.com/compare/ebuild-cli?minimal=true"><img src="https://img.shields.io/npm/dm/ebuild-cli.svg" alt="Downloads"></a> |
| 8 | + <a href="https://github.com/theajack/ebuild-cli/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/ebuild-cli.svg" alt="License"></a> |
| 9 | + <a href="https://github.com/theajack/ebuild-cli/search?l=javascript"><img src="https://img.shields.io/github/languages/top/theajack/ebuild-cli.svg" alt="TopLang"></a> |
| 10 | + <a href="https://github.com/theajack/ebuild-cli/issues"><img src="https://img.shields.io/github/issues-closed/theajack/ebuild-cli.svg" alt="issue"></a> |
| 11 | +</p> |
| 12 | + |
| 13 | +[中文](https://github.com/theajack/ebuild-cli/blob/master/README.cn.md) |
| 14 | + |
| 15 | +## 1. Installation: |
6 | 16 |
|
7 | 17 | ``` |
8 | 18 | npm i -g ebuild-cli |
9 | 19 | ``` |
10 | 20 |
|
11 | | -## 2. 初始化 |
| 21 | +## 2. Initialization |
12 | 22 |
|
13 | | -在你希望创建项目的目录下运行一下命令 |
| 23 | +Run the following command in the directory where you want to create the project |
14 | 24 |
|
15 | 25 | ``` |
16 | | -ebuild init <项目名称> |
17 | | -``` |
| 26 | +ebuild init <project name> |
18 | 27 |
|
19 | | -``` |
20 | | -cd <项目名称> |
21 | | -``` |
| 28 | +cd <project name> |
22 | 29 |
|
23 | | -``` |
24 | 30 | npm install |
25 | 31 | ``` |
26 | 32 |
|
27 | | -安装过程中有以下四种模式可供选择 |
| 33 | +There are seven templates to choose from during the installation process |
28 | 34 |
|
29 | | -1. 默认模式:包含webpack、babel、eslint、commitlint |
30 | | -2. css模式:默认模式 + css和less支持 |
31 | | -3. typescript:默认模式 + ts 支持 |
32 | | -4. 原始模式:不推荐 |
| 35 | +1. Default mode: including webpack, babel, eslint, commitlint |
| 36 | +2. css mode: default mode + css and less support |
| 37 | +3. typescript: default mode + ts support |
| 38 | +4. vue: vue2.x + vue-router + vuex |
| 39 | +5. vue3: vue3 + typescript + vue-router4 + vuex4 |
| 40 | +6. react: react17 + typescript + redux + sass |
| 41 | +7. Original mode: not recommended |
33 | 42 |
|
34 | 43 | ---- |
35 | 44 |
|
36 | | -附加功能: 启动一个开发服务器 |
| 45 | +Additional function: start a development server |
37 | 46 |
|
38 | 47 | ``` |
39 | 48 | ebuild run |
40 | 49 | ``` |
41 | 50 |
|
42 | 51 | ## QA |
43 | 52 |
|
44 | | -如在windos上遇到 C:\xxx\Roaming\npm\ebuild.ps1,因为在此系统上禁止运行脚本。 |
| 53 | +If you encounter C:\xxx\Roaming\npm\ebuild.ps1 on windos, it is forbidden to run scripts on this system. |
45 | 54 |
|
46 | | -请CMD执行 set-ExecutionPolicy RemoteSigned |
| 55 | +Please CMD execute set-ExecutionPolicy RemoteSigned |
0 commit comments