@serverless-devs/s 0.0.44 → 0.1.4-18cdd23b
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/LICENSE +201 -21
- package/OWNERS +33 -0
- package/_config.yml +1 -0
- package/bin/s +1 -1
- package/lib/daemon/lib.js +327 -0
- package/lib/daemon/report.js +50 -0
- package/lib/daemon/update-cli.js +20 -0
- package/lib/daemon/update-component.js +21 -0
- package/lib/daemon/update-templates.js +19 -0
- package/lib/index.js +1732 -0
- package/package.json +73 -61
- package/readme.md +127 -0
- package/.eslintrc +0 -75
- package/README.md +0 -65
- package/bin/s-config +0 -2
- package/bin/s-config-add +0 -2
- package/bin/s-config-delete +0 -2
- package/bin/s-config-get +0 -3
- package/bin/s-config-update +0 -3
- package/bin/s-deploy +0 -2
- package/bin/s-gui +0 -2
- package/bin/s-init +0 -2
- package/bin/s-platform +0 -2
- package/bin/s-platform-delete +0 -2
- package/bin/s-platform-init +0 -2
- package/bin/s-platform-login +0 -2
- package/bin/s-platform-publish +0 -2
- package/bin/s-remove +0 -2
- package/bin/s-search +0 -2
- package/bin/s-set +0 -2
- package/bin/s-set-analysis +0 -2
- package/bin/s-set-language +0 -2
- package/bin/s-set-output-color +0 -2
- package/compile.tsconfig.json +0 -12
- package/configs/base.tsconfig.json +0 -25
- package/lib/command/command-manager.d.ts +0 -12
- package/lib/command/command-manager.d.ts.map +0 -1
- package/lib/command/command-manager.js +0 -144
- package/lib/command/command-manager.js.map +0 -1
- package/lib/command/index.d.ts +0 -2
- package/lib/command/index.d.ts.map +0 -1
- package/lib/command/index.js +0 -41
- package/lib/command/index.js.map +0 -1
- package/lib/component/hook.d.ts +0 -17
- package/lib/component/hook.d.ts.map +0 -1
- package/lib/component/hook.js +0 -201
- package/lib/component/hook.js.map +0 -1
- package/lib/component/index.d.ts +0 -53
- package/lib/component/index.d.ts.map +0 -1
- package/lib/component/index.js +0 -577
- package/lib/component/index.js.map +0 -1
- package/lib/config/add/add-manager.d.ts +0 -23
- package/lib/config/add/add-manager.d.ts.map +0 -1
- package/lib/config/add/add-manager.js +0 -282
- package/lib/config/add/add-manager.js.map +0 -1
- package/lib/config/add/index.d.ts +0 -2
- package/lib/config/add/index.d.ts.map +0 -1
- package/lib/config/add/index.js +0 -77
- package/lib/config/add/index.js.map +0 -1
- package/lib/config/common/common.d.ts +0 -7
- package/lib/config/common/common.d.ts.map +0 -1
- package/lib/config/common/common.js +0 -175
- package/lib/config/common/common.js.map +0 -1
- package/lib/config/delete/delete-manager.d.ts +0 -11
- package/lib/config/delete/delete-manager.d.ts.map +0 -1
- package/lib/config/delete/delete-manager.js +0 -133
- package/lib/config/delete/delete-manager.js.map +0 -1
- package/lib/config/delete/index.d.ts +0 -2
- package/lib/config/delete/index.d.ts.map +0 -1
- package/lib/config/delete/index.js +0 -77
- package/lib/config/delete/index.js.map +0 -1
- package/lib/config/get/get-manager.d.ts +0 -14
- package/lib/config/get/get-manager.d.ts.map +0 -1
- package/lib/config/get/get-manager.js +0 -205
- package/lib/config/get/get-manager.js.map +0 -1
- package/lib/config/get/index.d.ts +0 -2
- package/lib/config/get/index.d.ts.map +0 -1
- package/lib/config/get/index.js +0 -86
- package/lib/config/get/index.js.map +0 -1
- package/lib/config/index.d.ts +0 -2
- package/lib/config/index.d.ts.map +0 -1
- package/lib/config/index.js +0 -15
- package/lib/config/index.js.map +0 -1
- package/lib/config/update/index.d.ts +0 -2
- package/lib/config/update/index.d.ts.map +0 -1
- package/lib/config/update/index.js +0 -83
- package/lib/config/update/index.js.map +0 -1
- package/lib/config/update/update-manager.d.ts +0 -23
- package/lib/config/update/update-manager.d.ts.map +0 -1
- package/lib/config/update/update-manager.js +0 -208
- package/lib/config/update/update-manager.js.map +0 -1
- package/lib/constants/static-variable.d.ts +0 -12
- package/lib/constants/static-variable.d.ts.map +0 -1
- package/lib/constants/static-variable.js +0 -15
- package/lib/constants/static-variable.js.map +0 -1
- package/lib/entity.d.ts +0 -11
- package/lib/entity.d.ts.map +0 -1
- package/lib/entity.js +0 -3
- package/lib/entity.js.map +0 -1
- package/lib/error/command-error.d.ts +0 -5
- package/lib/error/command-error.d.ts.map +0 -1
- package/lib/error/command-error.js +0 -26
- package/lib/error/command-error.js.map +0 -1
- package/lib/error/config-delete-error.d.ts +0 -5
- package/lib/error/config-delete-error.d.ts.map +0 -1
- package/lib/error/config-delete-error.js +0 -26
- package/lib/error/config-delete-error.js.map +0 -1
- package/lib/error/config-error.d.ts +0 -5
- package/lib/error/config-error.d.ts.map +0 -1
- package/lib/error/config-error.js +0 -26
- package/lib/error/config-error.js.map +0 -1
- package/lib/error/config-get-error.d.ts +0 -5
- package/lib/error/config-get-error.d.ts.map +0 -1
- package/lib/error/config-get-error.js +0 -26
- package/lib/error/config-get-error.js.map +0 -1
- package/lib/error/config-update-error.d.ts +0 -5
- package/lib/error/config-update-error.d.ts.map +0 -1
- package/lib/error/config-update-error.js +0 -26
- package/lib/error/config-update-error.js.map +0 -1
- package/lib/error/init-error.d.ts +0 -5
- package/lib/error/init-error.d.ts.map +0 -1
- package/lib/error/init-error.js +0 -26
- package/lib/error/init-error.js.map +0 -1
- package/lib/error/login-error.d.ts +0 -5
- package/lib/error/login-error.d.ts.map +0 -1
- package/lib/error/login-error.js +0 -26
- package/lib/error/login-error.js.map +0 -1
- package/lib/error/platform-delete-error.d.ts +0 -5
- package/lib/error/platform-delete-error.d.ts.map +0 -1
- package/lib/error/platform-delete-error.js +0 -26
- package/lib/error/platform-delete-error.js.map +0 -1
- package/lib/error/platform-init-error.d.ts +0 -5
- package/lib/error/platform-init-error.d.ts.map +0 -1
- package/lib/error/platform-init-error.js +0 -26
- package/lib/error/platform-init-error.js.map +0 -1
- package/lib/error/platform-publish-error.d.ts +0 -5
- package/lib/error/platform-publish-error.d.ts.map +0 -1
- package/lib/error/platform-publish-error.js +0 -26
- package/lib/error/platform-publish-error.js.map +0 -1
- package/lib/error/search-error.d.ts +0 -5
- package/lib/error/search-error.d.ts.map +0 -1
- package/lib/error/search-error.js +0 -26
- package/lib/error/search-error.js.map +0 -1
- package/lib/error/serverless-error.d.ts +0 -4
- package/lib/error/serverless-error.d.ts.map +0 -1
- package/lib/error/serverless-error.js +0 -20
- package/lib/error/serverless-error.js.map +0 -1
- package/lib/error/set-analysis-error.d.ts +0 -5
- package/lib/error/set-analysis-error.d.ts.map +0 -1
- package/lib/error/set-analysis-error.js +0 -26
- package/lib/error/set-analysis-error.js.map +0 -1
- package/lib/error/set-language-error.d.ts +0 -5
- package/lib/error/set-language-error.d.ts.map +0 -1
- package/lib/error/set-language-error.js +0 -26
- package/lib/error/set-language-error.js.map +0 -1
- package/lib/gui/gui-service.d.ts +0 -11
- package/lib/gui/gui-service.d.ts.map +0 -1
- package/lib/gui/gui-service.js +0 -276
- package/lib/gui/gui-service.js.map +0 -1
- package/lib/gui/index.d.ts +0 -2
- package/lib/gui/index.d.ts.map +0 -1
- package/lib/gui/index.js +0 -67
- package/lib/gui/index.js.map +0 -1
- package/lib/init/init-manager.d.ts +0 -9
- package/lib/init/init-manager.d.ts.map +0 -1
- package/lib/init/init-manager.js +0 -171
- package/lib/init/init-manager.js.map +0 -1
- package/lib/init/init-message.d.ts +0 -6
- package/lib/init/init-message.d.ts.map +0 -1
- package/lib/init/init-message.js +0 -9
- package/lib/init/init-message.js.map +0 -1
- package/lib/init/init.d.ts +0 -2
- package/lib/init/init.d.ts.map +0 -1
- package/lib/init/init.js +0 -87
- package/lib/init/init.js.map +0 -1
- package/lib/platform/delete/index.d.ts +0 -2
- package/lib/platform/delete/index.d.ts.map +0 -1
- package/lib/platform/delete/index.js +0 -89
- package/lib/platform/delete/index.js.map +0 -1
- package/lib/platform/delete/platform-delete-manager.d.ts +0 -4
- package/lib/platform/delete/platform-delete-manager.d.ts.map +0 -1
- package/lib/platform/delete/platform-delete-manager.js +0 -100
- package/lib/platform/delete/platform-delete-manager.js.map +0 -1
- package/lib/platform/index.d.ts +0 -2
- package/lib/platform/index.d.ts.map +0 -1
- package/lib/platform/index.js +0 -25
- package/lib/platform/index.js.map +0 -1
- package/lib/platform/init/index.d.ts +0 -2
- package/lib/platform/init/index.d.ts.map +0 -1
- package/lib/platform/init/index.js +0 -70
- package/lib/platform/init/index.js.map +0 -1
- package/lib/platform/init/platform-init-manager.d.ts +0 -4
- package/lib/platform/init/platform-init-manager.d.ts.map +0 -1
- package/lib/platform/init/platform-init-manager.js +0 -24
- package/lib/platform/init/platform-init-manager.js.map +0 -1
- package/lib/platform/login/index.d.ts +0 -2
- package/lib/platform/login/index.d.ts.map +0 -1
- package/lib/platform/login/index.js +0 -68
- package/lib/platform/login/index.js.map +0 -1
- package/lib/platform/login/login-manager.d.ts +0 -15
- package/lib/platform/login/login-manager.d.ts.map +0 -1
- package/lib/platform/login/login-manager.js +0 -176
- package/lib/platform/login/login-manager.js.map +0 -1
- package/lib/platform/publish/index.d.ts +0 -2
- package/lib/platform/publish/index.d.ts.map +0 -1
- package/lib/platform/publish/index.js +0 -93
- package/lib/platform/publish/index.js.map +0 -1
- package/lib/platform/publish/platform-publish-manager.d.ts +0 -5
- package/lib/platform/publish/platform-publish-manager.d.ts.map +0 -1
- package/lib/platform/publish/platform-publish-manager.js +0 -115
- package/lib/platform/publish/platform-publish-manager.js.map +0 -1
- package/lib/plugin/index.d.ts +0 -20
- package/lib/plugin/index.d.ts.map +0 -1
- package/lib/plugin/index.js +0 -175
- package/lib/plugin/index.js.map +0 -1
- package/lib/s.d.ts +0 -2
- package/lib/s.d.ts.map +0 -1
- package/lib/s.js +0 -134
- package/lib/s.js.map +0 -1
- package/lib/search/search.d.ts +0 -2
- package/lib/search/search.d.ts.map +0 -1
- package/lib/search/search.js +0 -233
- package/lib/search/search.js.map +0 -1
- package/lib/set/analysis/index.d.ts +0 -2
- package/lib/set/analysis/index.d.ts.map +0 -1
- package/lib/set/analysis/index.js +0 -84
- package/lib/set/analysis/index.js.map +0 -1
- package/lib/set/index.d.ts +0 -2
- package/lib/set/index.d.ts.map +0 -1
- package/lib/set/index.js +0 -16
- package/lib/set/index.js.map +0 -1
- package/lib/set/language/index.d.ts +0 -2
- package/lib/set/language/index.d.ts.map +0 -1
- package/lib/set/language/index.js +0 -73
- package/lib/set/language/index.js.map +0 -1
- package/lib/set/output-color/index.d.ts +0 -2
- package/lib/set/output-color/index.d.ts.map +0 -1
- package/lib/set/output-color/index.js +0 -87
- package/lib/set/output-color/index.js.map +0 -1
- package/lib/utils/analysis.d.ts +0 -12
- package/lib/utils/analysis.d.ts.map +0 -1
- package/lib/utils/analysis.js +0 -42
- package/lib/utils/analysis.js.map +0 -1
- package/lib/utils/check-version.d.ts +0 -13
- package/lib/utils/check-version.d.ts.map +0 -1
- package/lib/utils/check-version.js +0 -241
- package/lib/utils/check-version.js.map +0 -1
- package/lib/utils/command.d.ts +0 -14
- package/lib/utils/command.d.ts.map +0 -1
- package/lib/utils/command.js +0 -251
- package/lib/utils/command.js.map +0 -1
- package/lib/utils/common.d.ts +0 -4
- package/lib/utils/common.d.ts.map +0 -1
- package/lib/utils/common.js +0 -50
- package/lib/utils/common.js.map +0 -1
- package/lib/utils/download-manager.d.ts +0 -23
- package/lib/utils/download-manager.d.ts.map +0 -1
- package/lib/utils/download-manager.js +0 -302
- package/lib/utils/download-manager.js.map +0 -1
- package/lib/utils/handler-set-config.d.ts +0 -14
- package/lib/utils/handler-set-config.d.ts.map +0 -1
- package/lib/utils/handler-set-config.js +0 -122
- package/lib/utils/handler-set-config.js.map +0 -1
- package/lib/utils/i18n.d.ts +0 -3
- package/lib/utils/i18n.d.ts.map +0 -1
- package/lib/utils/i18n.js +0 -21
- package/lib/utils/i18n.js.map +0 -1
- package/lib/utils/locales/en.json +0 -9
- package/lib/utils/locales/zh.json +0 -203
- package/lib/utils/logger.d.ts +0 -18
- package/lib/utils/logger.d.ts.map +0 -1
- package/lib/utils/logger.js +0 -196
- package/lib/utils/logger.js.map +0 -1
- package/lib/utils/package-type.d.ts +0 -6
- package/lib/utils/package-type.d.ts.map +0 -1
- package/lib/utils/package-type.js +0 -10
- package/lib/utils/package-type.js.map +0 -1
- package/lib/utils/parse.d.ts +0 -26
- package/lib/utils/parse.d.ts.map +0 -1
- package/lib/utils/parse.js +0 -229
- package/lib/utils/parse.js.map +0 -1
- package/lib/utils/repo-template-entity.d.ts +0 -12
- package/lib/utils/repo-template-entity.d.ts.map +0 -1
- package/lib/utils/repo-template-entity.js +0 -3
- package/lib/utils/repo-template-entity.js.map +0 -1
- package/lib/utils/start-service.d.ts +0 -22
- package/lib/utils/start-service.d.ts.map +0 -1
- package/lib/utils/start-service.js +0 -97
- package/lib/utils/start-service.js.map +0 -1
- package/lib/utils/storage.d.ts +0 -3
- package/lib/utils/storage.d.ts.map +0 -1
- package/lib/utils/storage.js +0 -23
- package/lib/utils/storage.js.map +0 -1
- package/lib/utils/url-parser.d.ts +0 -8
- package/lib/utils/url-parser.d.ts.map +0 -1
- package/lib/utils/url-parser.js +0 -58
- package/lib/utils/url-parser.js.map +0 -1
- package/scripts/tests/deploy/parse.ts +0 -0
- package/scripts/tests/download-manager-test.ts +0 -135
- package/scripts/tests/init-manager-test.ts +0 -232
- package/scripts/tests/url-parser-test.ts +0 -44
- package/src/command/command-manager.ts +0 -83
- package/src/command/index.ts +0 -42
- package/src/component/hook.ts +0 -88
- package/src/component/index.ts +0 -433
- package/src/config/add/add-manager.ts +0 -207
- package/src/config/add/index.ts +0 -45
- package/src/config/common/common.ts +0 -186
- package/src/config/delete/delete-manager.ts +0 -51
- package/src/config/delete/index.ts +0 -38
- package/src/config/get/get-manager.ts +0 -148
- package/src/config/get/index.ts +0 -49
- package/src/config/index.ts +0 -13
- package/src/config/update/index.ts +0 -46
- package/src/config/update/update-manager.ts +0 -120
- package/src/constants/static-variable.ts +0 -12
- package/src/entity.ts +0 -10
- package/src/error/command-error.ts +0 -7
- package/src/error/config-delete-error.ts +0 -7
- package/src/error/config-error.ts +0 -7
- package/src/error/config-get-error.ts +0 -7
- package/src/error/config-update-error.ts +0 -7
- package/src/error/init-error.ts +0 -7
- package/src/error/login-error.ts +0 -7
- package/src/error/platform-delete-error.ts +0 -7
- package/src/error/platform-init-error.ts +0 -7
- package/src/error/platform-publish-error.ts +0 -7
- package/src/error/search-error.ts +0 -7
- package/src/error/serverless-error.ts +0 -17
- package/src/error/set-analysis-error.ts +0 -7
- package/src/error/set-language-error.ts +0 -7
- package/src/gui/gui-service.ts +0 -183
- package/src/gui/index.ts +0 -26
- package/src/init/init-manager.ts +0 -104
- package/src/init/init-message.ts +0 -8
- package/src/init/init.ts +0 -56
- package/src/platform/delete/index.ts +0 -46
- package/src/platform/delete/platform-delete-manager.ts +0 -46
- package/src/platform/index.ts +0 -26
- package/src/platform/init/index.ts +0 -33
- package/src/platform/init/platform-init-manager.ts +0 -17
- package/src/platform/login/index.ts +0 -25
- package/src/platform/login/login-manager.ts +0 -121
- package/src/platform/publish/index.ts +0 -52
- package/src/platform/publish/platform-publish-manager.ts +0 -69
- package/src/plugin/index.ts +0 -96
- package/src/s.ts +0 -83
- package/src/search/search.ts +0 -127
- package/src/set/analysis/index.ts +0 -45
- package/src/set/index.ts +0 -19
- package/src/set/language/index.ts +0 -39
- package/src/set/output-color/index.ts +0 -49
- package/src/utils/analysis.ts +0 -36
- package/src/utils/check-version.ts +0 -139
- package/src/utils/command.ts +0 -123
- package/src/utils/common.ts +0 -47
- package/src/utils/download-manager.ts +0 -197
- package/src/utils/handler-set-config.ts +0 -83
- package/src/utils/i18n.ts +0 -21
- package/src/utils/locales/en.json +0 -9
- package/src/utils/locales/zh.json +0 -228
- package/src/utils/logger.ts +0 -84
- package/src/utils/package-type.ts +0 -3
- package/src/utils/parse.ts +0 -176
- package/src/utils/repo-template-entity.ts +0 -14
- package/src/utils/start-service.ts +0 -64
- package/src/utils/storage.ts +0 -20
- package/src/utils/url-parser.ts +0 -60
- package/templates/application/common/publish.yaml +0 -16
- package/templates/application/common/readme.md +0 -99
- package/templates/application/common/src/index.js +0 -13
- package/templates/application/common/src/template.yaml +0 -16
- package/templates/component/common/publish.yaml +0 -24
- package/templates/component/common/readme.md +0 -386
- package/templates/component/common/src/index.js +0 -18
- package/templates/component/common/src/package.json +0 -7
- package/templates/plugin/common/publish.yaml +0 -9
- package/templates/plugin/common/readme.md +0 -128
- package/templates/plugin/common/src/index.js +0 -9
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
var yaml = require('js-yaml');
|
|
40
|
-
var parse_1 = require("../utils/parse");
|
|
41
|
-
var analysis_1 = require("../utils/analysis");
|
|
42
|
-
var common_1 = require("../utils/common");
|
|
43
|
-
var i18n_1 = require("../utils/i18n");
|
|
44
|
-
var static_variable_1 = require("../constants/static-variable");
|
|
45
|
-
// eslint-disable-next-line no-unused-vars
|
|
46
|
-
var component_1 = require("../component");
|
|
47
|
-
var logger = require("../utils/logger");
|
|
48
|
-
var CommandManager = /** @class */ (function () {
|
|
49
|
-
function CommandManager(templateFile, method, customerCommandName, params) {
|
|
50
|
-
this.templateFile = templateFile;
|
|
51
|
-
this.method = method;
|
|
52
|
-
this.customerCommandName = customerCommandName;
|
|
53
|
-
this.deployParams = params;
|
|
54
|
-
}
|
|
55
|
-
CommandManager.prototype.assemblyProjectConfig = function (parse, projectName, parsedObj) {
|
|
56
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
57
|
-
var realVariables, projectConfig;
|
|
58
|
-
return __generator(this, function (_a) {
|
|
59
|
-
switch (_a.label) {
|
|
60
|
-
case 0: return [4 /*yield*/, parse.getRealVariables(parsedObj)];
|
|
61
|
-
case 1:
|
|
62
|
-
realVariables = _a.sent();
|
|
63
|
-
projectConfig = realVariables[projectName];
|
|
64
|
-
projectConfig.ProjectName = projectName;
|
|
65
|
-
if (this.deployParams) {
|
|
66
|
-
projectConfig.Params = this.deployParams;
|
|
67
|
-
}
|
|
68
|
-
return [2 /*return*/, projectConfig];
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
};
|
|
73
|
-
CommandManager.prototype.init = function () {
|
|
74
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
75
|
-
var templateFile, outPutData, parse, parsedObj, projectConfig, componentExecute, tempResult, params, realVariables, analysis, executeOrderList, componentList, tempResult, item, outResult, e_1;
|
|
76
|
-
return __generator(this, function (_a) {
|
|
77
|
-
switch (_a.label) {
|
|
78
|
-
case 0:
|
|
79
|
-
_a.trys.push([0, 9, , 10]);
|
|
80
|
-
logger.info(i18n_1.default.__('Start ......'));
|
|
81
|
-
templateFile = common_1.checkTemplateFile(this.templateFile);
|
|
82
|
-
if (!templateFile) return [3 /*break*/, 7];
|
|
83
|
-
outPutData = {};
|
|
84
|
-
parse = new parse_1.Parse(templateFile);
|
|
85
|
-
parsedObj = parse.getOriginalParsedObj();
|
|
86
|
-
if (!this.customerCommandName) return [3 /*break*/, 3];
|
|
87
|
-
return [4 /*yield*/, this.assemblyProjectConfig(parse, this.customerCommandName, parsedObj)];
|
|
88
|
-
case 1:
|
|
89
|
-
projectConfig = _a.sent();
|
|
90
|
-
componentExecute = new component_1.ComponentExeCute(projectConfig, this.method);
|
|
91
|
-
return [4 /*yield*/, componentExecute.init()];
|
|
92
|
-
case 2:
|
|
93
|
-
tempResult = _a.sent();
|
|
94
|
-
if (tempResult) {
|
|
95
|
-
outPutData[projectConfig.ProjectName] = tempResult;
|
|
96
|
-
}
|
|
97
|
-
return [3 /*break*/, 6];
|
|
98
|
-
case 3:
|
|
99
|
-
params = this.deployParams || '';
|
|
100
|
-
return [4 /*yield*/, parse.getRealVariables(parsedObj)];
|
|
101
|
-
case 4:
|
|
102
|
-
realVariables = _a.sent();
|
|
103
|
-
analysis = new analysis_1.Analysis(realVariables, parse.dependenciesMap);
|
|
104
|
-
executeOrderList = analysis.getProjectOrder();
|
|
105
|
-
logger.info(i18n_1.default.__('It is detected that your project has the following project/projects < {{projects}} > to be execute', { projects: executeOrderList.join(',') }));
|
|
106
|
-
componentList = component_1.generateSynchronizeComponentExeList({ list: executeOrderList, parse: parse, parsedObj: parsedObj, method: this.method, params: params }, this.assemblyProjectConfig.bind(this));
|
|
107
|
-
return [4 /*yield*/, component_1.synchronizeExecuteComponentList(componentList)];
|
|
108
|
-
case 5:
|
|
109
|
-
tempResult = _a.sent();
|
|
110
|
-
for (item in tempResult) {
|
|
111
|
-
if (executeOrderList.includes(item) && tempResult[item]) {
|
|
112
|
-
outPutData[item] = tempResult[item];
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
_a.label = 6;
|
|
116
|
-
case 6:
|
|
117
|
-
outResult = void 0;
|
|
118
|
-
try {
|
|
119
|
-
outResult = yaml.safeDump(JSON.parse(JSON.stringify(outPutData)));
|
|
120
|
-
}
|
|
121
|
-
catch (ex) {
|
|
122
|
-
logger.error(ex);
|
|
123
|
-
logger.warning('Unable to format the output, the system will display the original output of the component:');
|
|
124
|
-
outResult = JSON.stringify(outPutData, null, ' ');
|
|
125
|
-
}
|
|
126
|
-
logger.success(Object.keys(outPutData).length === 0 ? i18n_1.default.__('End of method: {{method}}', { method: this.method }) : outResult);
|
|
127
|
-
return [3 /*break*/, 8];
|
|
128
|
-
case 7:
|
|
129
|
-
logger.error(i18n_1.default.__('Cannot find {{template}} file, please check the directory {{filepath}}', { template: static_variable_1.TEMPLATE_FILE, filepath: this.templateFile }));
|
|
130
|
-
_a.label = 8;
|
|
131
|
-
case 8: return [3 /*break*/, 10];
|
|
132
|
-
case 9:
|
|
133
|
-
e_1 = _a.sent();
|
|
134
|
-
logger.error(e_1.message);
|
|
135
|
-
return [3 /*break*/, 10];
|
|
136
|
-
case 10: return [2 /*return*/];
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
});
|
|
140
|
-
};
|
|
141
|
-
return CommandManager;
|
|
142
|
-
}());
|
|
143
|
-
exports.default = CommandManager;
|
|
144
|
-
//# sourceMappingURL=command-manager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-manager.js","sourceRoot":"","sources":["../../src/command/command-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAM,IAAI,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAChC,wCAAuC;AACvC,8CAA6C;AAC7C,0CAAoD;AACpD,sCAAiC;AACjC,gEAA6D;AAC7D,0CAA0C;AAC1C,0CAAuI;AACvI,wCAA0C;AAG1C;IAEE,wBAAsB,YAAoB,EAAY,MAAc,EAAY,mBAA4B,EAAE,MAAY;QAApG,iBAAY,GAAZ,YAAY,CAAQ;QAAY,WAAM,GAAN,MAAM,CAAQ;QAAY,wBAAmB,GAAnB,mBAAmB,CAAS;QAC1G,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC;IAC7B,CAAC;IAEK,8CAAqB,GAA3B,UAA4B,KAAY,EAAE,WAAmB,EAAE,SAAc;;;;;4BACrD,qBAAM,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,EAAA;;wBAAvD,aAAa,GAAG,SAAuC;wBACvD,aAAa,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC;wBACjD,aAAa,CAAC,WAAW,GAAG,WAAW,CAAC;wBACxC,IAAI,IAAI,CAAC,YAAY,EAAE;4BACrB,aAAa,CAAC,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC;yBAC1C;wBACD,sB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,EAAE,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;;;;;wBAG5J,MAAM,CAAC,KAAK,CAAC,GAAC,CAAC,OAAO,CAAC,CAAC;;;;;;KAG3B;IAGH,qBAAC;AAAD,CAAC,AApED,IAoEC"}
|
package/lib/command/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/command/index.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,mBAAmB,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,OAmCjG"}
|
package/lib/command/index.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var Command = require('commander').Command;
|
|
4
|
-
var command_manager_1 = require("./command-manager");
|
|
5
|
-
var static_variable_1 = require("../constants/static-variable");
|
|
6
|
-
function create(command, customerCommandName, description) {
|
|
7
|
-
var params = [];
|
|
8
|
-
var _command = new Command(command);
|
|
9
|
-
var processArgv = [];
|
|
10
|
-
var start = false;
|
|
11
|
-
for (var i = 0; i < process.argv.length; i++) {
|
|
12
|
-
if (!start) {
|
|
13
|
-
processArgv.push(process.argv[i]);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
params.push(process.argv[i]);
|
|
17
|
-
}
|
|
18
|
-
if (process.argv[i] === command) {
|
|
19
|
-
start = true;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
if (params.length !== 0) {
|
|
23
|
-
process.env.temp_params = params.join(' ');
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
params = process.env.temp_params ? process.env.temp_params.split(' ') : [];
|
|
27
|
-
}
|
|
28
|
-
process.argv = processArgv;
|
|
29
|
-
_command
|
|
30
|
-
.description(description || '')
|
|
31
|
-
.action(function () {
|
|
32
|
-
var template = process['env'][static_variable_1.PROCESS_ENV_TEMPLATE_NAME];
|
|
33
|
-
if (template) {
|
|
34
|
-
var commandManager = new command_manager_1.default(template, command, customerCommandName, params.join(' '));
|
|
35
|
-
commandManager.init();
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
return _command;
|
|
39
|
-
}
|
|
40
|
-
exports.default = create;
|
|
41
|
-
//# sourceMappingURL=index.js.map
|
package/lib/command/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/command/index.ts"],"names":[],"mappings":";;AAAQ,IAAA,OAAO,GAAK,OAAO,CAAC,WAAW,CAAC,QAAzB,CAA0B;AACzC,qDAA+C;AAC/C,gEAAyE;AAGzE,SAAwB,MAAM,CAAC,OAAe,EAAE,mBAA4B,EAAE,WAAoB;IAChG,IAAI,MAAM,GAAkB,EAAE,CAAC;IAC/B,IAAM,QAAQ,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IACtC,IAAI,WAAW,GAAkB,EAAE,CAAC;IACpC,IAAI,KAAK,GAAG,KAAK,CAAC;IAElB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QAC5C,IAAI,CAAC,KAAK,EAAE;YACV,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;SACnC;aAAM;YACL,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;SAC9B;QACD,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,OAAO,EAAE;YAC/B,KAAK,GAAG,IAAI,CAAC;SACd;KACF;IAED,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;QACvB,OAAO,CAAC,GAAG,CAAC,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC5C;SAAM;QACL,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KAC5E;IAED,OAAO,CAAC,IAAI,GAAG,WAAW,CAAC;IAE3B,QAAQ;SACL,WAAW,CAAC,WAAW,IAAI,EAAE,CAAC;SAC9B,MAAM,CAAC;QACN,IAAM,QAAQ,GAAuB,OAAO,CAAC,KAAK,CAAC,CAAC,2CAAyB,CAAC,CAAC;QAC/E,IAAI,QAAQ,EAAE;YACZ,IAAM,cAAc,GAAG,IAAI,yBAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;YACpG,cAAc,CAAC,IAAI,EAAE,CAAC;SACvB;IACH,CAAC,CAAC,CAAC;IACL,OAAO,QAAQ,CAAC;AAClB,CAAC;AAnCD,yBAmCC"}
|
package/lib/component/hook.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface HookConfig {
|
|
2
|
-
Pre: boolean;
|
|
3
|
-
Plugin?: string;
|
|
4
|
-
Hook?: string;
|
|
5
|
-
Path?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare class Hook {
|
|
8
|
-
preHooks: Array<HookConfig>;
|
|
9
|
-
afterHooks: Array<HookConfig>;
|
|
10
|
-
constructor(extendsParams?: Array<HookConfig>);
|
|
11
|
-
executePreHook(): Promise<void>;
|
|
12
|
-
executeAfterHook(): Promise<void>;
|
|
13
|
-
commandExecute(command: string, executePath: string | undefined): Promise<void>;
|
|
14
|
-
pluginExecute(name: string): Promise<void>;
|
|
15
|
-
executeByConfig(hookConfig: HookConfig): Promise<void>;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=hook.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../src/component/hook.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,OAAO,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AACD,qBAAa,IAAI;IACf,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC,CAAM;IACjC,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,CAAM;gBACvB,aAAa,GAAE,KAAK,CAAC,UAAU,CAAM;IAU3C,cAAc;IAed,gBAAgB;IAiBhB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,SAAS;IAe/D,aAAa,CAAC,IAAI,EAAE,MAAM;IAO1B,eAAe,CAAC,UAAU,EAAE,UAAU;CAO7C"}
|
package/lib/component/hook.js
DELETED
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.Hook = void 0;
|
|
40
|
-
var path = require('path');
|
|
41
|
-
var fs = require('fs');
|
|
42
|
-
var util = require('util');
|
|
43
|
-
var i18n_1 = require("../utils/i18n");
|
|
44
|
-
var exec = util.promisify(require('child_process').exec);
|
|
45
|
-
var plugin_1 = require("../plugin");
|
|
46
|
-
var logger = require("../utils/logger");
|
|
47
|
-
var Hook = /** @class */ (function () {
|
|
48
|
-
function Hook(extendsParams) {
|
|
49
|
-
var _this = this;
|
|
50
|
-
if (extendsParams === void 0) { extendsParams = []; }
|
|
51
|
-
this.preHooks = [];
|
|
52
|
-
this.afterHooks = [];
|
|
53
|
-
extendsParams.forEach(function (_extend) {
|
|
54
|
-
if (_extend.Pre) {
|
|
55
|
-
_this.preHooks.push(_extend);
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
_this.afterHooks.push(_extend);
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
Hook.prototype.executePreHook = function () {
|
|
63
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
64
|
-
var i, ex_1;
|
|
65
|
-
return __generator(this, function (_a) {
|
|
66
|
-
switch (_a.label) {
|
|
67
|
-
case 0:
|
|
68
|
-
if (!(this.preHooks.length > 0)) return [3 /*break*/, 7];
|
|
69
|
-
logger.info(i18n_1.default.__('Start the pre-hook'));
|
|
70
|
-
i = 0;
|
|
71
|
-
_a.label = 1;
|
|
72
|
-
case 1:
|
|
73
|
-
if (!(i < this.preHooks.length)) return [3 /*break*/, 6];
|
|
74
|
-
logger.info("[Hook / Plugin] " + (this.preHooks[i]['Hook'] || this.preHooks[i]['Plugin']));
|
|
75
|
-
_a.label = 2;
|
|
76
|
-
case 2:
|
|
77
|
-
_a.trys.push([2, 4, , 5]);
|
|
78
|
-
return [4 /*yield*/, this.executeByConfig(this.preHooks[i])];
|
|
79
|
-
case 3:
|
|
80
|
-
_a.sent();
|
|
81
|
-
return [3 /*break*/, 5];
|
|
82
|
-
case 4:
|
|
83
|
-
ex_1 = _a.sent();
|
|
84
|
-
logger.error("[Hook / Plugin] [Error]: " + (ex_1.stdout || ex_1.stderr));
|
|
85
|
-
return [3 /*break*/, 5];
|
|
86
|
-
case 5:
|
|
87
|
-
i++;
|
|
88
|
-
return [3 /*break*/, 1];
|
|
89
|
-
case 6:
|
|
90
|
-
logger.info(i18n_1.default.__('End the pre-hook'));
|
|
91
|
-
_a.label = 7;
|
|
92
|
-
case 7: return [2 /*return*/];
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
});
|
|
96
|
-
};
|
|
97
|
-
Hook.prototype.executeAfterHook = function () {
|
|
98
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
99
|
-
var i, ex_2;
|
|
100
|
-
return __generator(this, function (_a) {
|
|
101
|
-
switch (_a.label) {
|
|
102
|
-
case 0:
|
|
103
|
-
if (!(this.afterHooks.length > 0)) return [3 /*break*/, 7];
|
|
104
|
-
logger.info(i18n_1.default.__('Start the after-hook'));
|
|
105
|
-
i = 0;
|
|
106
|
-
_a.label = 1;
|
|
107
|
-
case 1:
|
|
108
|
-
if (!(i < this.afterHooks.length)) return [3 /*break*/, 6];
|
|
109
|
-
logger.info("[Hook / Plugin] " + (this.afterHooks[i]['Hook'] || this.afterHooks[i]['Plugin']));
|
|
110
|
-
_a.label = 2;
|
|
111
|
-
case 2:
|
|
112
|
-
_a.trys.push([2, 4, , 5]);
|
|
113
|
-
return [4 /*yield*/, this.executeByConfig(this.afterHooks[i])];
|
|
114
|
-
case 3:
|
|
115
|
-
_a.sent();
|
|
116
|
-
return [3 /*break*/, 5];
|
|
117
|
-
case 4:
|
|
118
|
-
ex_2 = _a.sent();
|
|
119
|
-
logger.error("[Hook / Plugin] [Error]: " + (ex_2.stdout || ex_2.stderr));
|
|
120
|
-
return [3 /*break*/, 5];
|
|
121
|
-
case 5:
|
|
122
|
-
i++;
|
|
123
|
-
return [3 /*break*/, 1];
|
|
124
|
-
case 6:
|
|
125
|
-
logger.info(i18n_1.default.__('End the after-hook'));
|
|
126
|
-
_a.label = 7;
|
|
127
|
-
case 7: return [2 /*return*/];
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
});
|
|
131
|
-
};
|
|
132
|
-
Hook.prototype.commandExecute = function (command, executePath) {
|
|
133
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
134
|
-
var currentDir, cwdPath, _a, stdout, stderr;
|
|
135
|
-
return __generator(this, function (_b) {
|
|
136
|
-
switch (_b.label) {
|
|
137
|
-
case 0:
|
|
138
|
-
currentDir = process.cwd();
|
|
139
|
-
cwdPath = executePath ? path.resolve(currentDir, executePath) : currentDir;
|
|
140
|
-
if (!(fs.existsSync(cwdPath) && fs.lstatSync(cwdPath).isDirectory())) return [3 /*break*/, 2];
|
|
141
|
-
process.env['next-command-execute-flag'] = 'true';
|
|
142
|
-
logger.info(i18n_1.default.__('Executing ...'));
|
|
143
|
-
return [4 /*yield*/, exec(command, { cwd: cwdPath })];
|
|
144
|
-
case 1:
|
|
145
|
-
_a = _b.sent(), stdout = _a.stdout, stderr = _a.stderr;
|
|
146
|
-
if (stderr) {
|
|
147
|
-
logger.error(i18n_1.default.__('Execute:'), stderr);
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
logger.info(i18n_1.default.__('Execute:'), stdout);
|
|
151
|
-
}
|
|
152
|
-
_b.label = 2;
|
|
153
|
-
case 2: return [2 /*return*/];
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
});
|
|
157
|
-
};
|
|
158
|
-
Hook.prototype.pluginExecute = function (name) {
|
|
159
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
160
|
-
var pluginInstance, pluginModule;
|
|
161
|
-
return __generator(this, function (_a) {
|
|
162
|
-
switch (_a.label) {
|
|
163
|
-
case 0:
|
|
164
|
-
pluginInstance = new plugin_1.PluginExeCute({ name: name });
|
|
165
|
-
return [4 /*yield*/, pluginInstance.init()];
|
|
166
|
-
case 1:
|
|
167
|
-
_a.sent();
|
|
168
|
-
return [4 /*yield*/, pluginInstance.loadPlugin()];
|
|
169
|
-
case 2:
|
|
170
|
-
pluginModule = _a.sent();
|
|
171
|
-
pluginModule.apply(null, []);
|
|
172
|
-
return [2 /*return*/];
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
});
|
|
176
|
-
};
|
|
177
|
-
Hook.prototype.executeByConfig = function (hookConfig) {
|
|
178
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
179
|
-
return __generator(this, function (_a) {
|
|
180
|
-
switch (_a.label) {
|
|
181
|
-
case 0:
|
|
182
|
-
if (!hookConfig.Hook) return [3 /*break*/, 2];
|
|
183
|
-
return [4 /*yield*/, this.commandExecute(hookConfig.Hook, hookConfig.Path)];
|
|
184
|
-
case 1:
|
|
185
|
-
_a.sent();
|
|
186
|
-
return [3 /*break*/, 4];
|
|
187
|
-
case 2:
|
|
188
|
-
if (!hookConfig.Plugin) return [3 /*break*/, 4];
|
|
189
|
-
return [4 /*yield*/, this.pluginExecute(hookConfig.Plugin)];
|
|
190
|
-
case 3:
|
|
191
|
-
_a.sent();
|
|
192
|
-
_a.label = 4;
|
|
193
|
-
case 4: return [2 /*return*/];
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
});
|
|
197
|
-
};
|
|
198
|
-
return Hook;
|
|
199
|
-
}());
|
|
200
|
-
exports.Hook = Hook;
|
|
201
|
-
//# sourceMappingURL=hook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hook.js","sourceRoot":"","sources":["../../src/component/hook.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7B,IAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AACzB,IAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7B,sCAAiC;AACjC,IAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,CAAC;AAC3D,oCAA0C;AAC1C,wCAA0C;AAO1C;IAGE,cAAY,aAAqC;QAAjD,i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M,IAAI,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,EAAA;;wBAA1D,KAAqB,SAAqC,EAAxD,MAAM,YAAA,EAAE,MAAM,YAAA;wBACtB,IAAI,MAAM,EAAE;4BACV,MAAM,CAAC,KAAK,CAAC,cAAI,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,CAAC;yBAC3C;6BAAM;4BACL,MAAM,CAAC,IAAI,CAAC,cAAI,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,CAAC;yBAC1C;;;;;;KAEJ;IAEK,4BAAa,GAAnB,UAAoB,IAAY;;;;;;wBACxB,cAAc,GAAG,IAAI,sBAAa,CAAC,EAAE,IAAI,MAAA,EAAE,CAAC,CAAC;wBACnD,qBAAM,cAAc,CAAC,IAAI,EAAE,EAAA;;wBAA3B,SAA2B,CAAC;wBACP,qBAAM,cAAc,CAAC,UAAU,EAAE,EAAA;;wBAAhD,YAAY,GAAG,SAAiC;wBACtD,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;;;;;KAC9B;IAEK,8BAAe,GAArB,UAAsB,UAAsB;;;;;6BACtC,UAAU,CAAC,IAAI,EAAf,wBAAe;wBACjB,qBAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,EAAA;;wBAA3D,SAA2D,CAAC;;;6BACnD,UAAU,CAAC,MAAM,EAAjB,wBAAiB;wBAC1B,qBAAM,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,EAAA;;wBAA3C,SAA2C,CAAC;;;;;;KAE/C;IACH,WAAC;AAAD,CAAC,AA1ED,IA0EC;AA1EY,oBAAI"}
|
package/lib/component/index.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { PackageType } from '../utils/package-type';
|
|
2
|
-
import { Hook } from './hook';
|
|
3
|
-
import { Parse } from '../utils/parse';
|
|
4
|
-
export interface ComponentConfig {
|
|
5
|
-
Component: string;
|
|
6
|
-
Provider: string;
|
|
7
|
-
Access?: string;
|
|
8
|
-
Extends: any;
|
|
9
|
-
Properties: {
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
};
|
|
12
|
-
Params: any;
|
|
13
|
-
ProjectName: string;
|
|
14
|
-
}
|
|
15
|
-
export interface VersionCheckParams {
|
|
16
|
-
name: string;
|
|
17
|
-
type: PackageType;
|
|
18
|
-
provider: string;
|
|
19
|
-
}
|
|
20
|
-
export interface GenerateComponentExeParams {
|
|
21
|
-
list: Array<string>;
|
|
22
|
-
parse: Parse;
|
|
23
|
-
parsedObj: any;
|
|
24
|
-
method: string;
|
|
25
|
-
params: string;
|
|
26
|
-
}
|
|
27
|
-
export declare function synchronizeExecuteComponentList(list?: any, index?: any, initData?: any): Promise<any>;
|
|
28
|
-
export declare function generateSynchronizeComponentExeList({ list, parse, parsedObj, method, params }: GenerateComponentExeParams, equipment: (parse: Parse, projectName: string, parsedObj: any) => Promise<ComponentConfig>): Array<any>;
|
|
29
|
-
export declare class ComponentExeCute {
|
|
30
|
-
protected componentConfig: ComponentConfig;
|
|
31
|
-
protected method: string;
|
|
32
|
-
protected componentPath: string;
|
|
33
|
-
protected credentials: any;
|
|
34
|
-
protected isPackageProject: boolean;
|
|
35
|
-
constructor(componentConfig: ComponentConfig, method: string);
|
|
36
|
-
init(): Promise<any>;
|
|
37
|
-
getCredentials(): Promise<any>;
|
|
38
|
-
setCredentials(provider: any): Promise<any>;
|
|
39
|
-
componentExist(): boolean;
|
|
40
|
-
getRemoteComponentVersion({ name, provider, type }: VersionCheckParams): Promise<any>;
|
|
41
|
-
getLocalComponentVersion(): string | null;
|
|
42
|
-
private preLoadNodeModules;
|
|
43
|
-
downLoadAndUnCompressComponent(type: PackageType, name: string, provider: string): Promise<void>;
|
|
44
|
-
downLoadAndUnCompressComponentV2(type: PackageType, name: string, provider: string, version: string): Promise<void>;
|
|
45
|
-
private loadExtends;
|
|
46
|
-
loadPreExtends(extend: Hook | null): Promise<void>;
|
|
47
|
-
loadAfterExtend(extend: Hook | null): Promise<void>;
|
|
48
|
-
loadComponent(): Promise<any>;
|
|
49
|
-
invokeMethod(ComponentClass: any, method: string, data: any): Promise<unknown>;
|
|
50
|
-
executeCommand(): Promise<any>;
|
|
51
|
-
startExecute(): Promise<any>;
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/component/index.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAUvC,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,GAAG,CAAC;IACb,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACnC,MAAM,EAAE,GAAG,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;CACrB;AACD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,GAAG,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAsB,+BAA+B,CACnD,IAAI,GAAE,GAAQ,EACd,KAAK,GAAE,GAAO,EACd,QAAQ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