@serverless-devs/s 2.0.99 → 2.0.100-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/a.yaml +38 -0
- package/bin/s-verify +2 -0
- package/lib/clean/index.js +25 -41
- package/lib/cli/index.js +49 -62
- package/lib/component/index.js +44 -40
- package/lib/config/add/index.js +43 -39
- package/lib/config/delete/index.js +45 -53
- package/lib/config/get/index.js +51 -47
- package/lib/config/index.js +26 -42
- package/lib/constant.js +7 -0
- package/lib/error/index.js +60 -24
- package/lib/help/index.js +135 -0
- package/lib/index.js +97 -106
- package/lib/init/index.js +81 -90
- package/lib/init/init-config.js +4 -4
- package/lib/init/init-manager.js +26 -222
- package/lib/onboarding/index.js +16 -8
- package/lib/set/analysis/index.js +46 -42
- package/lib/set/index.js +27 -43
- package/lib/set/locale/index.js +47 -55
- package/lib/set/registry/index.js +46 -54
- package/lib/set/workspace/index.js +47 -43
- package/lib/special-commad/index.js +121 -0
- package/lib/update-notifier/index.js +19 -19
- package/lib/utils/common.js +102 -187
- package/lib/utils/core.js +27 -4
- package/lib/utils/handler-set-config.js +2 -8
- package/lib/utils/index.js +31 -24
- package/lib/utils/logger.js +4 -32
- package/lib/verify/index.js +78 -0
- package/package.json +7 -18
- package/readme.md +8 -2
- package/shell/postbuild.sh +2 -0
- package/lib/cli/cli-manager.js +0 -215
- package/lib/constants/index.js +0 -1
- package/lib/constants/static-variable.js +0 -8
- package/lib/core/command/command-manager.js +0 -184
- package/lib/core/component/hook.js +0 -182
- package/lib/core/component/index.js +0 -354
- package/lib/core/index.js +0 -7
- package/lib/core/plugin/index.js +0 -102
- package/lib/entiry/cli.js +0 -11
- package/lib/entiry/index.js +0 -7
- package/lib/specification/analysis.js +0 -45
- package/lib/specification/index.js +0 -14
- package/lib/specification/parse.js +0 -252
- package/lib/specification/version.js +0 -151
- package/lib/utils/command-util.js +0 -331
- package/lib/utils/storage.js +0 -31
- package/lib/utils/url-parser.js +0 -50
package/a.yaml
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
edition: 1.0.0 # 命令行YAML规范版本,遵循语义化版本(Semantic Versioning)规范
|
|
2
|
+
name: fcDeployApp # 项目名称
|
|
3
|
+
access: 'sub' # 秘钥别名
|
|
4
|
+
|
|
5
|
+
services:
|
|
6
|
+
fc-deploy-test: # 服务名称
|
|
7
|
+
component: devsapp/fc # 组件名称
|
|
8
|
+
props: # 组件的属性值
|
|
9
|
+
region: cn-hangzhou
|
|
10
|
+
service:
|
|
11
|
+
name: fc-deploy-service
|
|
12
|
+
description: 'demo for fc-deploy component'
|
|
13
|
+
internetAccess: true
|
|
14
|
+
function:
|
|
15
|
+
name: http-trigger-nodejs12
|
|
16
|
+
description: this is a test
|
|
17
|
+
runtime: nodejs12
|
|
18
|
+
codeUri: ./test/start-fc-http-nodejs12/code
|
|
19
|
+
# ossBucket:
|
|
20
|
+
# ossKey: # conflict with codeUri
|
|
21
|
+
handler: index.handler
|
|
22
|
+
memorySize: 128
|
|
23
|
+
timeout: 60
|
|
24
|
+
triggers:
|
|
25
|
+
- name: httpTrigger
|
|
26
|
+
type: http
|
|
27
|
+
config:
|
|
28
|
+
authType: anonymous
|
|
29
|
+
methods:
|
|
30
|
+
- GET
|
|
31
|
+
customDomains:
|
|
32
|
+
- domainName: auto
|
|
33
|
+
protocol: HTTP
|
|
34
|
+
routeConfigs:
|
|
35
|
+
- path: /*
|
|
36
|
+
methods:
|
|
37
|
+
- GET
|
|
38
|
+
# 函数计算FC组件文档参考地址:https://github.com/devsapp/fc
|
package/bin/s-verify
ADDED