@serverless-devs/s 2.0.97-beta.2 → 2.0.97-beta.9

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 (86) hide show
  1. package/Makefile +23 -0
  2. package/lib/clean/index.js +33 -31
  3. package/lib/cli/cli-manager.js +10 -10
  4. package/lib/cli/index.js +52 -52
  5. package/lib/component/index.js +49 -144
  6. package/lib/config/add/index.js +40 -38
  7. package/lib/config/delete/index.js +47 -47
  8. package/lib/config/get/index.js +39 -37
  9. package/lib/config/index.js +34 -32
  10. package/lib/core/command/command-manager.js +8 -7
  11. package/lib/core/component/hook.js +4 -4
  12. package/lib/core/component/index.js +9 -9
  13. package/lib/error/human-error.js +5 -5
  14. package/lib/error/human-warning.js +4 -4
  15. package/lib/error/index.js +35 -34
  16. package/lib/index.js +106 -135
  17. package/lib/init/index.js +90 -103
  18. package/lib/init/init-manager.js +66 -19
  19. package/lib/onboarding/index.js +5 -5
  20. package/lib/set/analysis/index.js +36 -34
  21. package/lib/set/index.js +34 -32
  22. package/lib/set/locale/index.js +50 -50
  23. package/lib/set/registry/index.js +49 -49
  24. package/lib/set/workspace/index.js +37 -35
  25. package/lib/specification/parse.js +10 -10
  26. package/lib/update-notifier/index.js +19 -19
  27. package/lib/utils/command-util.js +74 -57
  28. package/lib/utils/common.js +61 -13
  29. package/lib/utils/index.js +3 -3
  30. package/package.json +5 -4
  31. package/.eslintrc.json +0 -112
  32. package/.prettierrc.json +0 -11
  33. package/lib/clean/index.d.ts +0 -1
  34. package/lib/cli/cli-manager.d.ts +0 -13
  35. package/lib/cli/index.d.ts +0 -2
  36. package/lib/component/index.d.ts +0 -1
  37. package/lib/config/add/index.d.ts +0 -1
  38. package/lib/config/common/common.d.ts +0 -46
  39. package/lib/config/delete/index.d.ts +0 -2
  40. package/lib/config/get/index.d.ts +0 -1
  41. package/lib/config/index.d.ts +0 -2
  42. package/lib/constants/index.d.ts +0 -0
  43. package/lib/constants/static-variable.d.ts +0 -4
  44. package/lib/core/command/command-manager.d.ts +0 -12
  45. package/lib/core/component/hook.d.ts +0 -17
  46. package/lib/core/component/index.d.ts +0 -53
  47. package/lib/core/index.d.ts +0 -2
  48. package/lib/core/plugin/index.d.ts +0 -13
  49. package/lib/entiry/cli.d.ts +0 -27
  50. package/lib/entiry/index.d.ts +0 -2
  51. package/lib/error/command-error.d.ts +0 -5
  52. package/lib/error/config-delete-error.d.ts +0 -5
  53. package/lib/error/config-error.d.ts +0 -5
  54. package/lib/error/config-get-error.d.ts +0 -5
  55. package/lib/error/human-error.d.ts +0 -13
  56. package/lib/error/human-warning.d.ts +0 -8
  57. package/lib/error/index.d.ts +0 -17
  58. package/lib/error/init-error.d.ts +0 -5
  59. package/lib/error/serverless-error.d.ts +0 -4
  60. package/lib/execDaemon.d.ts +0 -6
  61. package/lib/index.d.ts +0 -2
  62. package/lib/init/index.d.ts +0 -2
  63. package/lib/init/init-config.d.ts +0 -43
  64. package/lib/init/init-manager.d.ts +0 -17
  65. package/lib/onboarding/index.d.ts +0 -2
  66. package/lib/set/analysis/index.d.ts +0 -1
  67. package/lib/set/index.d.ts +0 -1
  68. package/lib/set/locale/index.d.ts +0 -1
  69. package/lib/set/registry/index.d.ts +0 -10
  70. package/lib/set/workspace/index.d.ts +0 -1
  71. package/lib/specification/analysis.d.ts +0 -12
  72. package/lib/specification/index.d.ts +0 -4
  73. package/lib/specification/parse.d.ts +0 -24
  74. package/lib/specification/version.d.ts +0 -35
  75. package/lib/update-notifier/index.d.ts +0 -10
  76. package/lib/utils/command-util.d.ts +0 -18
  77. package/lib/utils/common.d.ts +0 -28
  78. package/lib/utils/core.d.ts +0 -3
  79. package/lib/utils/handler-set-config.d.ts +0 -19
  80. package/lib/utils/i18n/en.d.ts +0 -44
  81. package/lib/utils/i18n/index.d.ts +0 -2
  82. package/lib/utils/i18n/zh.d.ts +0 -44
  83. package/lib/utils/index.d.ts +0 -9
  84. package/lib/utils/logger.d.ts +0 -11
  85. package/lib/utils/storage.d.ts +0 -8
  86. package/lib/utils/url-parser.d.ts +0 -15
@@ -1,44 +0,0 @@
1
- declare const _default: {
2
- clean_up_the_environment: string;
3
- display_help_for_command: string;
4
- remove_components: string;
5
- delete_the_file_under_the_cache: string;
6
- record_your_log_information: string;
7
- init_pproject_deploy_tip: string;
8
- tip_for_a_serverless_project: string;
9
- create_a_new_project: string;
10
- en: string;
11
- zh: string;
12
- select_current_language: string;
13
- 'app-tip': string;
14
- 'template-tip': string;
15
- 'fc-runtime-starter': string;
16
- 'fc-custom-container-stater': string;
17
- web: string;
18
- 'static-site': string;
19
- 'best-practice': string;
20
- 'devs-template': string;
21
- 'fc-http-nodejs': string;
22
- 'fc-http-python': string;
23
- 'fc-http-java': string;
24
- 'fc-custom-container-event-python3': string;
25
- 'fc-custom-container-event-cpp': string;
26
- 'fc-custom-container-http-springboot': string;
27
- 'fc-custom-container-http-aspdotnetcore': string;
28
- 'express-starter': string;
29
- 'koa-starter': string;
30
- 'nuxtjs-starter': string;
31
- 'eggjs-starter': string;
32
- 'flask-starter': string;
33
- 'SpringBoot-starter': string;
34
- 'Zblog-starter': string;
35
- 'website-starter': string;
36
- 'react-starter': string;
37
- 'vue-starter': string;
38
- puppeteer: string;
39
- ffmpeg: string;
40
- pdf2Img: string;
41
- tensorflow: string;
42
- todoList: string;
43
- };
44
- export default _default;
@@ -1,9 +0,0 @@
1
- /** @format */
2
- export { default as common } from './common';
3
- export { default as configSet } from './handler-set-config';
4
- export { default as storage } from './storage';
5
- export { default as urlParser } from './url-parser';
6
- export { default as registerAction } from './command-util';
7
- export { default as logger } from './logger';
8
- export { default as i18n } from './i18n';
9
- export declare const getYamlPath: (prePath: string, name: string) => string;
@@ -1,11 +0,0 @@
1
- /** @format */
2
- export default class ServerlessDevsCliLogger {
3
- static log(m: any): void;
4
- static info(m: any): void;
5
- static debug(m: any): void;
6
- static error(m: any): void;
7
- static warning(m: any): void;
8
- static success(m: any): void;
9
- static spinner(info: any): any;
10
- static output(info: any): any;
11
- }
@@ -1,8 +0,0 @@
1
- /** @format */
2
- export declare function getHomeDir(): string;
3
- export declare function getHistoryFile(): string;
4
- declare const _default: {
5
- getHomeDir: typeof getHomeDir;
6
- getHistoryFile: typeof getHistoryFile;
7
- };
8
- export default _default;
@@ -1,15 +0,0 @@
1
- /** @format */
2
- /// <reference types="node" />
3
- import URL from 'url';
4
- import { GitRepoTemplate } from '../entiry';
5
- export declare function parse(url: string): URL.Url;
6
- export declare function getProjectNameFromUrl(url: string): string;
7
- export declare function isUrlFormat(url: string): boolean;
8
- export declare function extractTemplateInfo(url: URL.Url): GitRepoTemplate;
9
- declare const _default: {
10
- extractTemplateInfo: typeof extractTemplateInfo;
11
- getProjectNameFromUrl: typeof getProjectNameFromUrl;
12
- isUrlFormat: typeof isUrlFormat;
13
- parse: typeof parse;
14
- };
15
- export default _default;