Comparing version 1.3.1 to 1.3.2
@@ -8,9 +8,8 @@ #!/usr/bin/env node | ||
program.version('1.0.5'); | ||
program.version('1.3.2'); | ||
program | ||
.arguments('<dir>') | ||
.option('-w --webpack','创建webpack项目') | ||
.option('-v --vue','创建vue项目') | ||
.option('-s --server','创建koa单进程项目') | ||
.option('-k --koa','创建koa多进程项目') | ||
.option('-s --server','创建koa单进程项目') | ||
.action(callback); | ||
@@ -23,4 +22,2 @@ | ||
createDemo(dir,'webpack-demo'); | ||
}else if(cmd.vue){ | ||
createDemo(dir,'vue-demo'); | ||
}else if(cmd.server){ | ||
@@ -51,3 +48,4 @@ createDemo(dir,'server-demo'); | ||
console.log(` 安装npm包:cnpm install\n`); | ||
demoType!='webpack-demo' && console.log(` 安装npm包:cnpm install nodemon -g\n`); | ||
console.log(` 启动项目:cnpm run dev\n`); | ||
} |
{ | ||
"name": "yu-init", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -19,10 +19,5 @@ # yu-init | ||
### 创建官方vue构建的项目 | ||
### 创建webpack4构建的前端项目(已配置vue,less) | ||
``` | ||
yu-init 项目名 -v | ||
``` | ||
### 创建webpack4构建的项目 | ||
``` | ||
yu-init 项目名 -w | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
2
4
710747
46
643
22