@serverless-devs/s 2.0.99-beta.1 → 2.0.100-beta.11

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.
Files changed (49) hide show
  1. package/a.yaml +38 -0
  2. package/bin/s-verify +2 -0
  3. package/lib/clean/index.js +26 -42
  4. package/lib/cli/index.js +49 -62
  5. package/lib/component/index.js +44 -40
  6. package/lib/config/add/index.js +43 -39
  7. package/lib/config/delete/index.js +45 -53
  8. package/lib/config/get/index.js +51 -47
  9. package/lib/config/index.js +26 -42
  10. package/lib/constant.js +7 -0
  11. package/lib/error/index.js +60 -24
  12. package/lib/help/index.js +135 -0
  13. package/lib/index.js +97 -106
  14. package/lib/init/index.js +81 -90
  15. package/lib/init/init-config.js +4 -4
  16. package/lib/init/init-manager.js +26 -222
  17. package/lib/onboarding/index.js +16 -8
  18. package/lib/set/analysis/index.js +46 -42
  19. package/lib/set/index.js +27 -43
  20. package/lib/set/locale/index.js +47 -55
  21. package/lib/set/registry/index.js +46 -54
  22. package/lib/set/workspace/index.js +47 -43
  23. package/lib/special-commad/index.js +121 -0
  24. package/lib/update-notifier/index.js +19 -19
  25. package/lib/utils/common.js +97 -186
  26. package/lib/utils/core.js +23 -4
  27. package/lib/utils/handler-set-config.js +2 -8
  28. package/lib/utils/index.js +27 -24
  29. package/lib/utils/logger.js +4 -32
  30. package/lib/verify/index.js +78 -0
  31. package/package.json +7 -18
  32. package/shell/postbuild.sh +2 -0
  33. package/lib/cli/cli-manager.js +0 -215
  34. package/lib/constants/index.js +0 -1
  35. package/lib/constants/static-variable.js +0 -8
  36. package/lib/core/command/command-manager.js +0 -184
  37. package/lib/core/component/hook.js +0 -182
  38. package/lib/core/component/index.js +0 -354
  39. package/lib/core/index.js +0 -7
  40. package/lib/core/plugin/index.js +0 -102
  41. package/lib/entiry/cli.js +0 -11
  42. package/lib/entiry/index.js +0 -7
  43. package/lib/specification/analysis.js +0 -45
  44. package/lib/specification/index.js +0 -14
  45. package/lib/specification/parse.js +0 -252
  46. package/lib/specification/version.js +0 -151
  47. package/lib/utils/command-util.js +0 -331
  48. package/lib/utils/storage.js +0 -31
  49. 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
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ require('../lib/verify');