Comparing version 1.2.1 to 1.2.2
@@ -13,3 +13,4 @@ #!/usr/bin/env node | ||
.option('-v --vue','创建vue项目') | ||
.option('-k --koa','创建koa项目') | ||
.option('-k --koa','创建koa多进程项目') | ||
.option('-s --server','创建koa单进程项目') | ||
.action(callback); | ||
@@ -24,2 +25,4 @@ | ||
createDemo(dir,'vue-demo'); | ||
}else if(cmd.server){ | ||
createDemo(dir,'server-demo'); | ||
}else{ | ||
@@ -26,0 +29,0 @@ createDemo(dir,'koa-demo'); |
{ | ||
"name": "yu-init", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,8 +9,13 @@ # yu-init | ||
### 安装koa服务器框架 | ||
### 创建koa服务器框架的项目 | ||
``` | ||
yu-init 项目名 -s | ||
``` | ||
### 创建koa多进程服务器框架的项目 | ||
``` | ||
yu-init 项目名 -k | ||
``` | ||
### 安装官方vue构建的项目 | ||
### 创建官方vue构建的项目 | ||
``` | ||
@@ -20,5 +25,5 @@ yu-init 项目名 -v | ||
### 安装webpack4构建的项目 | ||
### 创建webpack4构建的项目 | ||
``` | ||
yu-init 项目名 -w | ||
``` |
@@ -57,3 +57,3 @@ const path = require('path'); | ||
path:path.resolve(__dirname,'../dist/static'), | ||
publicPath:'static' | ||
publicPath:'static/' | ||
}, | ||
@@ -64,3 +64,3 @@ plugins:[ | ||
filename: 'css/[name].[chunkhash].css', | ||
chunkFilename: 'css/[id].css', | ||
chunkFilename: 'css/[name].[id].css', | ||
}), | ||
@@ -67,0 +67,0 @@ new UglifyJSPlugin({ //压缩代码 |
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
752395
78
1339
27
5