serverless

This commit is contained in:
ap 2021-03-08 00:28:43 +08:00
parent a4ff691bfd
commit 8fe9fac4be
2 changed files with 17 additions and 2 deletions

6
f.yml Normal file
View File

@ -0,0 +1,6 @@
service: cool-admin ## 应用发布到云平台的名字,一般指应用名
provider:
name: aliyun ## 发布的云平台aliyuntencent 等
deployType: egg ## 部署的应用类型

View File

@ -52,7 +52,8 @@
"lint:fix": "mwts fix", "lint:fix": "mwts fix",
"ci": "npm run cov", "ci": "npm run cov",
"build": "midway-bin build -c", "build": "midway-bin build -c",
"check": "luckyeye" "check": "luckyeye",
"deploy": "midway-bin deploy"
}, },
"midway-bin-clean": [ "midway-bin-clean": [
".vscode/.tsbuildinfo", ".vscode/.tsbuildinfo",
@ -63,10 +64,18 @@
"midway_v2" "midway_v2"
] ]
}, },
"midway-integration": {
"lifecycle": {
"before:package:cleanup": "npm run build"
}
},
"egg": {
"framework": "@midwayjs/web"
},
"repository": { "repository": {
"type": "git", "type": "git",
"url": "" "url": ""
}, },
"author": "", "author": "cool-js.com",
"license": "MIT" "license": "MIT"
} }