File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,23 @@ cd <项目名称>
2424npm install
2525```
2626
27+ 安装过程中有以下四种模式可供选择
28+
29+ 1 . 默认模式:包含webpack、babel、eslint、commitlint
30+ 2 . css模式:默认模式 + css和less支持
31+ 3 . typescript:默认模式 + ts 支持
32+ 4 . 原始模式:不推荐
33+
2734----
2835
2936附加功能: 启动一个开发服务器
3037
3138```
3239ebuild run
33- ```
40+ ```
41+
42+ ## QA
43+
44+ 如在windos上遇到 C:\xxx\Roaming\npm\ebuild.ps1,因为在此系统上禁止运行脚本。
45+
46+ 请CMD执行 set-ExecutionPolicy RemoteSigned
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ function downloadProject(answers) {
115115
116116 render ( 'package.json' , answers ) ;
117117
118- if ( mode !== 'origin' ) {
118+ if ( answers . mode !== 'origin' ) {
119119 render ( 'webpack-config/build.js' , answers ) ;
120120 }
121121
Original file line number Diff line number Diff line change 11{
22 "name" : " ebuild-cli" ,
3- "version" : " 0.0.5 " ,
3+ "version" : " 0.0.6 " ,
44 "description" : " A project for build a project easily" ,
55 "main" : " index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments