Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yu-init

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yu-init - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

server-demo/appTask/task.js

5

index.js

@@ -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');

2

package.json
{
"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({ //压缩代码

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc