node-cli-tester 21.0.19 → 21.0.21
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/README.md +4 -4
- package/bin/node-cli-tester +11 -11
- package/bin/node-cli-tester-debug +11 -11
- package/browser/README.md +24 -24
- package/browser/fesm2022/node-cli-tester-browser.mjs.map +1 -1
- package/browser/package.json +1 -1
- package/browser-prod/README.md +24 -24
- package/browser-prod/fesm2022/node-cli-tester-browser.mjs.map +1 -1
- package/browser-prod/package.json +1 -1
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/package.json +1 -1
- package/lib-prod/base-project-structure.backend.d.ts +13 -0
- package/lib-prod/base-project-structure.backend.js +32 -26
- package/lib-prod/base-project-structure.backend.js.map +1 -0
- package/lib-prod/build-info._auto-generated_.d.ts +24 -0
- package/lib-prod/build-info._auto-generated_.js +10 -6
- package/lib-prod/build-info._auto-generated_.js.map +1 -0
- package/lib-prod/cli-test.backend.d.ts +24 -0
- package/lib-prod/cli-test.backend.js +42 -34
- package/lib-prod/cli-test.backend.js.map +1 -0
- package/lib-prod/env/env.angular-node-app.d.ts +64 -0
- package/lib-prod/env/env.angular-node-app.js +69 -64
- package/lib-prod/env/env.angular-node-app.js.map +1 -0
- package/lib-prod/env/env.docs-webapp.d.ts +64 -0
- package/lib-prod/env/env.docs-webapp.js +69 -64
- package/lib-prod/env/env.docs-webapp.js.map +1 -0
- package/lib-prod/env/env.electron-app.d.ts +64 -0
- package/lib-prod/env/env.electron-app.js +69 -64
- package/lib-prod/env/env.electron-app.js.map +1 -0
- package/lib-prod/env/env.mobile-app.d.ts +64 -0
- package/lib-prod/env/env.mobile-app.js +69 -64
- package/lib-prod/env/env.mobile-app.js.map +1 -0
- package/lib-prod/env/env.npm-lib-and-cli-tool.d.ts +64 -0
- package/lib-prod/env/env.npm-lib-and-cli-tool.js +69 -64
- package/lib-prod/env/env.npm-lib-and-cli-tool.js.map +1 -0
- package/lib-prod/env/env.vscode-plugin.d.ts +64 -0
- package/lib-prod/env/env.vscode-plugin.js +69 -64
- package/lib-prod/env/env.vscode-plugin.js.map +1 -0
- package/lib-prod/env/index.d.ts +6 -0
- package/lib-prod/env/index.js +23 -6
- package/lib-prod/env/index.js.map +1 -0
- package/lib-prod/index._auto-generated_.d.ts +0 -0
- package/lib-prod/index._auto-generated_.js +2 -1
- package/lib-prod/index._auto-generated_.js.map +1 -0
- package/lib-prod/index.d.ts +4 -0
- package/lib-prod/index.js +12 -4
- package/lib-prod/index.js.map +1 -0
- package/lib-prod/meta-content-md.backend.d.ts +42 -0
- package/lib-prod/meta-content-md.backend.js +69 -62
- package/lib-prod/meta-content-md.backend.js.map +1 -0
- package/lib-prod/migrations/index.d.ts +1 -0
- package/lib-prod/migrations/index.js +18 -1
- package/lib-prod/migrations/index.js.map +1 -0
- package/lib-prod/migrations/migrations_index._auto-generated_.d.ts +0 -0
- package/lib-prod/migrations/migrations_index._auto-generated_.js +1 -0
- package/lib-prod/migrations/migrations_index._auto-generated_.js.map +1 -0
- package/lib-prod/node-cli-tester.d.ts +25 -0
- package/lib-prod/node-cli-tester.js +60 -56
- package/lib-prod/node-cli-tester.js.map +1 -0
- package/lib-prod/package.json +1 -1
- package/lib-prod/spec-templates.backend.d.ts +6 -0
- package/lib-prod/spec-templates.backend.js +23 -13
- package/lib-prod/spec-templates.backend.js.map +1 -0
- package/lib-prod/start.backend.d.ts +2 -0
- package/lib-prod/start.backend.js +8 -4
- package/lib-prod/start.backend.js.map +1 -0
- package/package.json +1 -1
- package/websql/README.md +24 -24
- package/websql/fesm2022/node-cli-tester-websql.mjs.map +1 -1
- package/websql/package.json +1 -1
- package/websql-prod/README.md +24 -24
- package/websql-prod/fesm2022/node-cli-tester-websql.mjs.map +1 -1
- package/websql-prod/package.json +1 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export declare const ENV_VSCODE_PLUGIN_WEBSITE_DOMAIN = "node-cli-tester.example.domain.com";
|
|
2
|
+
export declare const ENV_VSCODE_PLUGIN_WEBSITE_TITLE = "Node Cli Tester";
|
|
3
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_TARGET_ARTIFACT = "vscode-plugin";
|
|
4
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_ENV_NAME = "__";
|
|
5
|
+
export declare const ENV_VSCODE_PLUGIN_CONTAINER_ONLY: any;
|
|
6
|
+
export declare const ENV_VSCODE_PLUGIN_CONTAINER_END: any;
|
|
7
|
+
export declare const ENV_VSCODE_PLUGIN_CONTAINER_START: any;
|
|
8
|
+
export declare const ENV_VSCODE_PLUGIN_CONTAINER_SKIP_RELEASED: any;
|
|
9
|
+
export declare const ENV_VSCODE_PLUGIN_CONTAINER_SKIP: any;
|
|
10
|
+
export declare const ENV_VSCODE_PLUGIN_INIT_BRANDING: any;
|
|
11
|
+
export declare const ENV_VSCODE_PLUGIN_INIT_STRUCT: any;
|
|
12
|
+
export declare const ENV_VSCODE_PLUGIN_BUILD_PWA_DISABLE_SERVICE_WORKER: any;
|
|
13
|
+
export declare const ENV_VSCODE_PLUGIN_BUILD_PWA_NAME: any;
|
|
14
|
+
export declare const ENV_VSCODE_PLUGIN_BUILD_PWA_SHORT_NAME: any;
|
|
15
|
+
export declare const ENV_VSCODE_PLUGIN_BUILD_PWA_START_URL: any;
|
|
16
|
+
export declare const ENV_VSCODE_PLUGIN_BUILD_ELECTRON_SHOW_DEV_TOOLS: any;
|
|
17
|
+
export declare const ENV_VSCODE_PLUGIN_BUILD_SSR: any;
|
|
18
|
+
export declare const ENV_VSCODE_PLUGIN_BUILD_WEBSQL: any;
|
|
19
|
+
export declare const ENV_VSCODE_PLUGIN_BUILD_PROD: any;
|
|
20
|
+
export declare const ENV_VSCODE_PLUGIN_BUILD_OVERRIDE_OUTPUT_PATH: any;
|
|
21
|
+
export declare const ENV_VSCODE_PLUGIN_BUILD_BASE_HREF: any;
|
|
22
|
+
export declare const ENV_VSCODE_PLUGIN_BUILD_WATCH: any;
|
|
23
|
+
export declare const ENV_VSCODE_PLUGIN_BUILD_GEN_ONLY_CLIENT_CODE: any;
|
|
24
|
+
export declare const ENV_VSCODE_PLUGIN_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER: any;
|
|
25
|
+
export declare const ENV_VSCODE_PLUGIN_LOADING_PRE_ANGULAR_BOOTSTRAP_BACKGROUND: any;
|
|
26
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_CLI_MINIFY: any;
|
|
27
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_CLI_INCLUDE_NODE_MODULES: any;
|
|
28
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_CLI_UGLIFY: any;
|
|
29
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_CLI_OBSCURE: any;
|
|
30
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_CLI_COMPRESS: any;
|
|
31
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_NODE_BACKEND_APP_MINIFY: any;
|
|
32
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_LIB_REMOVE_DTS: any;
|
|
33
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_LIB_OBSCURE_FILE_BY_FILE: any;
|
|
34
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_LIB_UGLIFY_FILE_BY_FILE: any;
|
|
35
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_LIB_INCLUDE_SOURCE_MAPS: any;
|
|
36
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_LIB_COMPRESS: any;
|
|
37
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_LIB_DO_NOT_INCLUDE_LIB_FILES: any;
|
|
38
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_RESOLVED_NEW_VERSION: any;
|
|
39
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_RELEASE_VERSION_BUMP_TYPE: any;
|
|
40
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_ENV_NUMBER: any;
|
|
41
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_INSTALL_LOCALLY: any;
|
|
42
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_REMOVE_RELEASE_OUTPUT_AFTER_LOCAL_INSTALL: any;
|
|
43
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_RELEASE_TYPE: any;
|
|
44
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_AUTO_RELEASE_USING_CONFIG: any;
|
|
45
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_AUTO_RELEASE_TASK_NAME: any;
|
|
46
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_TAON_INSTANCE_IP: any;
|
|
47
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_SKIP_NPM_PUBLISH: any;
|
|
48
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_SKIP_DEPLOY: any;
|
|
49
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_SKIP_TAG_GIT_PUSH: any;
|
|
50
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_SKIP_RELEASE_QUESTION: any;
|
|
51
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_SKIP_RESOLVING_GIT_CHANGES: any;
|
|
52
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_SKIP_CODE_CUTTING: any;
|
|
53
|
+
export declare const ENV_VSCODE_PLUGIN_RELEASE_SKIP_BUILDING_ARTIFACTS: any;
|
|
54
|
+
export declare const ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_BEFORE_COPY_HOOK: any;
|
|
55
|
+
export declare const ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_COPY_TO_LOCATIONS: any;
|
|
56
|
+
export declare const ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_COPY_TO_PROJECTS: any;
|
|
57
|
+
export declare const ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_SKIP: any;
|
|
58
|
+
export declare const ENV_VSCODE_PLUGIN_WEBSITE_USE_DOMAIN: any;
|
|
59
|
+
export declare const ENV_VSCODE_PLUGIN_PURPOSE: any;
|
|
60
|
+
export declare const ENV_VSCODE_PLUGIN_RECURSIVE_ACTION: any;
|
|
61
|
+
export declare const ENV_VSCODE_PLUGIN_IS_CI_PROCESS: any;
|
|
62
|
+
export declare const ENV_VSCODE_PLUGIN_DOCKER_ADDITIONAL_CONTAINER: any;
|
|
63
|
+
export declare const ENV_VSCODE_PLUGIN_DOCKER_SKIP_START_IN_ORDER: any;
|
|
64
|
+
export declare const ENV_VSCODE_PLUGIN_DOCKER_SKIP_USING_MYSQL_DB: any;
|
|
@@ -1,66 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_SKIP_RELEASE_QUESTION = exports.ENV_VSCODE_PLUGIN_RELEASE_SKIP_TAG_GIT_PUSH = exports.ENV_VSCODE_PLUGIN_RELEASE_SKIP_DEPLOY = exports.ENV_VSCODE_PLUGIN_RELEASE_SKIP_NPM_PUBLISH = exports.ENV_VSCODE_PLUGIN_RELEASE_TAON_INSTANCE_IP = exports.ENV_VSCODE_PLUGIN_RELEASE_AUTO_RELEASE_TASK_NAME = exports.ENV_VSCODE_PLUGIN_RELEASE_AUTO_RELEASE_USING_CONFIG = exports.ENV_VSCODE_PLUGIN_RELEASE_RELEASE_TYPE = exports.ENV_VSCODE_PLUGIN_RELEASE_REMOVE_RELEASE_OUTPUT_AFTER_LOCAL_INSTALL = exports.ENV_VSCODE_PLUGIN_RELEASE_INSTALL_LOCALLY = exports.ENV_VSCODE_PLUGIN_RELEASE_ENV_NUMBER = exports.ENV_VSCODE_PLUGIN_RELEASE_RELEASE_VERSION_BUMP_TYPE = exports.ENV_VSCODE_PLUGIN_RELEASE_RESOLVED_NEW_VERSION = exports.ENV_VSCODE_PLUGIN_RELEASE_LIB_DO_NOT_INCLUDE_LIB_FILES = exports.ENV_VSCODE_PLUGIN_RELEASE_LIB_COMPRESS = exports.ENV_VSCODE_PLUGIN_RELEASE_LIB_INCLUDE_SOURCE_MAPS = exports.ENV_VSCODE_PLUGIN_RELEASE_LIB_UGLIFY_FILE_BY_FILE = exports.ENV_VSCODE_PLUGIN_RELEASE_LIB_OBSCURE_FILE_BY_FILE = exports.ENV_VSCODE_PLUGIN_RELEASE_LIB_REMOVE_DTS = exports.ENV_VSCODE_PLUGIN_RELEASE_NODE_BACKEND_APP_MINIFY = exports.ENV_VSCODE_PLUGIN_RELEASE_CLI_COMPRESS = exports.ENV_VSCODE_PLUGIN_RELEASE_CLI_OBSCURE = exports.ENV_VSCODE_PLUGIN_RELEASE_CLI_UGLIFY = exports.ENV_VSCODE_PLUGIN_RELEASE_CLI_INCLUDE_NODE_MODULES = exports.ENV_VSCODE_PLUGIN_RELEASE_CLI_MINIFY = exports.ENV_VSCODE_PLUGIN_LOADING_PRE_ANGULAR_BOOTSTRAP_BACKGROUND = exports.ENV_VSCODE_PLUGIN_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER = exports.ENV_VSCODE_PLUGIN_BUILD_GEN_ONLY_CLIENT_CODE = exports.ENV_VSCODE_PLUGIN_BUILD_WATCH = exports.ENV_VSCODE_PLUGIN_BUILD_BASE_HREF = exports.ENV_VSCODE_PLUGIN_BUILD_OVERRIDE_OUTPUT_PATH = exports.ENV_VSCODE_PLUGIN_BUILD_PROD = exports.ENV_VSCODE_PLUGIN_BUILD_WEBSQL = exports.ENV_VSCODE_PLUGIN_BUILD_SSR = exports.ENV_VSCODE_PLUGIN_BUILD_ELECTRON_SHOW_DEV_TOOLS = exports.ENV_VSCODE_PLUGIN_BUILD_PWA_START_URL = exports.ENV_VSCODE_PLUGIN_BUILD_PWA_SHORT_NAME = exports.ENV_VSCODE_PLUGIN_BUILD_PWA_NAME = exports.ENV_VSCODE_PLUGIN_BUILD_PWA_DISABLE_SERVICE_WORKER = exports.ENV_VSCODE_PLUGIN_INIT_STRUCT = exports.ENV_VSCODE_PLUGIN_INIT_BRANDING = exports.ENV_VSCODE_PLUGIN_CONTAINER_SKIP = exports.ENV_VSCODE_PLUGIN_CONTAINER_SKIP_RELEASED = exports.ENV_VSCODE_PLUGIN_CONTAINER_START = exports.ENV_VSCODE_PLUGIN_CONTAINER_END = exports.ENV_VSCODE_PLUGIN_CONTAINER_ONLY = exports.ENV_VSCODE_PLUGIN_RELEASE_ENV_NAME = exports.ENV_VSCODE_PLUGIN_RELEASE_TARGET_ARTIFACT = exports.ENV_VSCODE_PLUGIN_WEBSITE_TITLE = exports.ENV_VSCODE_PLUGIN_WEBSITE_DOMAIN = void 0;
|
|
4
|
+
exports.ENV_VSCODE_PLUGIN_DOCKER_SKIP_USING_MYSQL_DB = exports.ENV_VSCODE_PLUGIN_DOCKER_SKIP_START_IN_ORDER = exports.ENV_VSCODE_PLUGIN_DOCKER_ADDITIONAL_CONTAINER = exports.ENV_VSCODE_PLUGIN_IS_CI_PROCESS = exports.ENV_VSCODE_PLUGIN_RECURSIVE_ACTION = exports.ENV_VSCODE_PLUGIN_PURPOSE = exports.ENV_VSCODE_PLUGIN_WEBSITE_USE_DOMAIN = exports.ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_SKIP = exports.ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_COPY_TO_PROJECTS = exports.ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_COPY_TO_LOCATIONS = exports.ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_BEFORE_COPY_HOOK = exports.ENV_VSCODE_PLUGIN_RELEASE_SKIP_BUILDING_ARTIFACTS = exports.ENV_VSCODE_PLUGIN_RELEASE_SKIP_CODE_CUTTING = exports.ENV_VSCODE_PLUGIN_RELEASE_SKIP_RESOLVING_GIT_CHANGES = void 0;
|
|
1
5
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
6
|
+
exports.ENV_VSCODE_PLUGIN_WEBSITE_DOMAIN = 'node-cli-tester.example.domain.com';
|
|
7
|
+
exports.ENV_VSCODE_PLUGIN_WEBSITE_TITLE = 'Node Cli Tester';
|
|
8
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_TARGET_ARTIFACT = 'vscode-plugin';
|
|
9
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_ENV_NAME = '__';
|
|
10
|
+
exports.ENV_VSCODE_PLUGIN_CONTAINER_ONLY = undefined;
|
|
11
|
+
exports.ENV_VSCODE_PLUGIN_CONTAINER_END = undefined;
|
|
12
|
+
exports.ENV_VSCODE_PLUGIN_CONTAINER_START = undefined;
|
|
13
|
+
exports.ENV_VSCODE_PLUGIN_CONTAINER_SKIP_RELEASED = undefined;
|
|
14
|
+
exports.ENV_VSCODE_PLUGIN_CONTAINER_SKIP = undefined;
|
|
15
|
+
exports.ENV_VSCODE_PLUGIN_INIT_BRANDING = undefined;
|
|
16
|
+
exports.ENV_VSCODE_PLUGIN_INIT_STRUCT = undefined;
|
|
17
|
+
exports.ENV_VSCODE_PLUGIN_BUILD_PWA_DISABLE_SERVICE_WORKER = undefined;
|
|
18
|
+
exports.ENV_VSCODE_PLUGIN_BUILD_PWA_NAME = undefined;
|
|
19
|
+
exports.ENV_VSCODE_PLUGIN_BUILD_PWA_SHORT_NAME = undefined;
|
|
20
|
+
exports.ENV_VSCODE_PLUGIN_BUILD_PWA_START_URL = undefined;
|
|
21
|
+
exports.ENV_VSCODE_PLUGIN_BUILD_ELECTRON_SHOW_DEV_TOOLS = undefined;
|
|
22
|
+
exports.ENV_VSCODE_PLUGIN_BUILD_SSR = undefined;
|
|
23
|
+
exports.ENV_VSCODE_PLUGIN_BUILD_WEBSQL = undefined;
|
|
24
|
+
exports.ENV_VSCODE_PLUGIN_BUILD_PROD = undefined;
|
|
25
|
+
exports.ENV_VSCODE_PLUGIN_BUILD_OVERRIDE_OUTPUT_PATH = undefined;
|
|
26
|
+
exports.ENV_VSCODE_PLUGIN_BUILD_BASE_HREF = undefined;
|
|
27
|
+
exports.ENV_VSCODE_PLUGIN_BUILD_WATCH = undefined;
|
|
28
|
+
exports.ENV_VSCODE_PLUGIN_BUILD_GEN_ONLY_CLIENT_CODE = undefined;
|
|
29
|
+
exports.ENV_VSCODE_PLUGIN_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER = undefined;
|
|
30
|
+
exports.ENV_VSCODE_PLUGIN_LOADING_PRE_ANGULAR_BOOTSTRAP_BACKGROUND = undefined;
|
|
31
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_CLI_MINIFY = undefined;
|
|
32
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_CLI_INCLUDE_NODE_MODULES = undefined;
|
|
33
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_CLI_UGLIFY = undefined;
|
|
34
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_CLI_OBSCURE = undefined;
|
|
35
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_CLI_COMPRESS = undefined;
|
|
36
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_NODE_BACKEND_APP_MINIFY = undefined;
|
|
37
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_LIB_REMOVE_DTS = undefined;
|
|
38
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_LIB_OBSCURE_FILE_BY_FILE = undefined;
|
|
39
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_LIB_UGLIFY_FILE_BY_FILE = undefined;
|
|
40
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_LIB_INCLUDE_SOURCE_MAPS = undefined;
|
|
41
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_LIB_COMPRESS = undefined;
|
|
42
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_LIB_DO_NOT_INCLUDE_LIB_FILES = undefined;
|
|
43
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_RESOLVED_NEW_VERSION = undefined;
|
|
44
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_RELEASE_VERSION_BUMP_TYPE = undefined;
|
|
45
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_ENV_NUMBER = undefined;
|
|
46
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_INSTALL_LOCALLY = undefined;
|
|
47
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_REMOVE_RELEASE_OUTPUT_AFTER_LOCAL_INSTALL = undefined;
|
|
48
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_RELEASE_TYPE = undefined;
|
|
49
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_AUTO_RELEASE_USING_CONFIG = undefined;
|
|
50
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_AUTO_RELEASE_TASK_NAME = undefined;
|
|
51
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_TAON_INSTANCE_IP = undefined;
|
|
52
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_SKIP_NPM_PUBLISH = undefined;
|
|
53
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_SKIP_DEPLOY = undefined;
|
|
54
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_SKIP_TAG_GIT_PUSH = undefined;
|
|
55
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_SKIP_RELEASE_QUESTION = undefined;
|
|
56
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_SKIP_RESOLVING_GIT_CHANGES = undefined;
|
|
57
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_SKIP_CODE_CUTTING = undefined;
|
|
58
|
+
exports.ENV_VSCODE_PLUGIN_RELEASE_SKIP_BUILDING_ARTIFACTS = undefined;
|
|
59
|
+
exports.ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_BEFORE_COPY_HOOK = undefined;
|
|
60
|
+
exports.ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_COPY_TO_LOCATIONS = undefined;
|
|
61
|
+
exports.ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_COPY_TO_PROJECTS = undefined;
|
|
62
|
+
exports.ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_SKIP = undefined;
|
|
63
|
+
exports.ENV_VSCODE_PLUGIN_WEBSITE_USE_DOMAIN = undefined;
|
|
64
|
+
exports.ENV_VSCODE_PLUGIN_PURPOSE = undefined;
|
|
65
|
+
exports.ENV_VSCODE_PLUGIN_RECURSIVE_ACTION = undefined;
|
|
66
|
+
exports.ENV_VSCODE_PLUGIN_IS_CI_PROCESS = undefined;
|
|
67
|
+
exports.ENV_VSCODE_PLUGIN_DOCKER_ADDITIONAL_CONTAINER = undefined;
|
|
68
|
+
exports.ENV_VSCODE_PLUGIN_DOCKER_SKIP_START_IN_ORDER = undefined;
|
|
69
|
+
exports.ENV_VSCODE_PLUGIN_DOCKER_SKIP_USING_MYSQL_DB = undefined;
|
|
66
70
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
71
|
+
//# sourceMappingURL=env.vscode-plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.vscode-plugin.js","sourceRoot":"","sources":[""],"names":[],"mappings":"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"}
|
package/lib-prod/env/index.js
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./env.angular-node-app"), exports);
|
|
18
|
+
__exportStar(require("./env.docs-webapp"), exports);
|
|
19
|
+
__exportStar(require("./env.electron-app"), exports);
|
|
20
|
+
__exportStar(require("./env.mobile-app"), exports);
|
|
21
|
+
__exportStar(require("./env.npm-lib-and-cli-tool"), exports);
|
|
22
|
+
__exportStar(require("./env.vscode-plugin"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,oDAAkC;AAClC,qDAAmC;AACnC,mDAAiC;AACjC,6DAA2C;AAC3C,sDAAoC"}
|
|
File without changes
|
|
@@ -2,4 +2,5 @@
|
|
|
2
2
|
// This file is auto-generated during init process. Do not modify.
|
|
3
3
|
// This is only placeholder.
|
|
4
4
|
// Use property "shouldGenerateAutogenIndexFile: true"
|
|
5
|
-
// in taon.jsonc to enable ts exports auto generation.
|
|
5
|
+
// in taon.jsonc to enable ts exports auto generation.
|
|
6
|
+
//# sourceMappingURL=index._auto-generated_.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index._auto-generated_.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,cAAc;AACd,kEAAkE;AAClE,4BAA4B;AAC5B,uDAAuD;AACvD,uDAAuD"}
|
package/lib-prod/index.js
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.run = exports.CliTest = exports.TestTemplates = exports.NodeCliTester = void 0;
|
|
4
|
+
var node_cli_tester_1 = require("./node-cli-tester");
|
|
5
|
+
Object.defineProperty(exports, "NodeCliTester", { enumerable: true, get: function () { return node_cli_tester_1.NodeCliTester; } });
|
|
2
6
|
//#region @backend
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
var spec_templates_backend_1 = require("./spec-templates.backend");
|
|
8
|
+
Object.defineProperty(exports, "TestTemplates", { enumerable: true, get: function () { return spec_templates_backend_1.TestTemplates; } });
|
|
9
|
+
var cli_test_backend_1 = require("./cli-test.backend");
|
|
10
|
+
Object.defineProperty(exports, "CliTest", { enumerable: true, get: function () { return cli_test_backend_1.CliTest; } });
|
|
11
|
+
var start_backend_1 = require("./start.backend");
|
|
12
|
+
Object.defineProperty(exports, "run", { enumerable: true, get: function () { return start_backend_1.run; } });
|
|
6
13
|
//#endregion
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,qDAAkD;AAAzC,gHAAA,aAAa,OAAA;AACtB,kBAAkB;AAClB,mEAAyD;AAAhD,uHAAA,aAAa,OAAA;AACtB,uDAA6C;AAApC,2GAAA,OAAO,OAAA;AAChB,iDAAsC;AAA7B,oGAAA,GAAG,OAAA;AACZ,YAAY"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { BaseProject as Project } from 'tnp-helpers/lib-prod';
|
|
2
|
+
export interface MetaMdJSONProject {
|
|
3
|
+
githash?: string;
|
|
4
|
+
name?: MetaMdJSONProjects;
|
|
5
|
+
baseStructureHash?: string;
|
|
6
|
+
}
|
|
7
|
+
export type MetaMdJSONProjects = {
|
|
8
|
+
[projPath: string]: MetaMdJSONProject;
|
|
9
|
+
};
|
|
10
|
+
export interface MetaMdJSON {
|
|
11
|
+
orgFileBasenames: string[];
|
|
12
|
+
orgRelativePathes: string[];
|
|
13
|
+
timeHash: string;
|
|
14
|
+
firstProjectBasename: string;
|
|
15
|
+
projects: MetaMdJSONProjects;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Special forma of .md for keeping metadata, testfile, and test template for file
|
|
19
|
+
*/
|
|
20
|
+
export declare class MetaMd {
|
|
21
|
+
readonly filePath: string;
|
|
22
|
+
static readonly JSON_PART = "@jsonPart";
|
|
23
|
+
static readonly FILE_CONTENT_PART = "@fileContentPart";
|
|
24
|
+
static readonly TEST_PART = "@testPart";
|
|
25
|
+
static create(json: MetaMdJSON, fileContent: string[], testContent?: string): Promise<string>;
|
|
26
|
+
static preserveFiles(originalAnyTypeFiles: string[], destinationFolder: string, editorCwd: string, foundProjectsFn: (projects: Project[]) => Project[], baseProjectsStructurePath: string, // navi-cli folder or current folder,
|
|
27
|
+
overrideThisFileName?: string, overrideTimehash?: any): Promise<void>;
|
|
28
|
+
addFiles(newFilesPathes: string[], destinationFolder: string, editorCwd?: string, foundProjectFn?: (projects: Project[]) => Project[], baseProjectsStructurePath?: string): Promise<void>;
|
|
29
|
+
static instanceFrom(filePath: string): MetaMd;
|
|
30
|
+
static allInstancesFrom(folderPath: string): MetaMd[];
|
|
31
|
+
private get json();
|
|
32
|
+
get readonlyMetaJson(): Readonly<MetaMdJSON>;
|
|
33
|
+
fileContentByIndex(i: number): string;
|
|
34
|
+
get basename(): string;
|
|
35
|
+
get dirname(): string;
|
|
36
|
+
constructor(filePath: string);
|
|
37
|
+
/**
|
|
38
|
+
* recate original files before any unit/intergration test
|
|
39
|
+
*/
|
|
40
|
+
recreate(testCwd: string, cwdProj: string, ProjectClass?: typeof Project, onlyIfNotExists?: boolean): void;
|
|
41
|
+
}
|
|
42
|
+
export declare function extract(content: string, PARTS_TO_FIND: string): string[];
|
|
@@ -1,41 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MetaMd = void 0;
|
|
4
|
+
exports.extract = extract;
|
|
1
5
|
//#region imports
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
const glob = require("glob");
|
|
7
|
+
const lib_prod_1 = require("tnp-core/lib-prod");
|
|
8
|
+
const lib_prod_2 = require("tnp-core/lib-prod");
|
|
9
|
+
const lib_prod_3 = require("tnp-helpers/lib-prod");
|
|
10
|
+
const lib_prod_4 = require("typescript-class-helpers/lib-prod");
|
|
11
|
+
const base_project_structure_backend_1 = require("./base-project-structure.backend");
|
|
8
12
|
//#endregion
|
|
9
13
|
/**
|
|
10
14
|
* Special forma of .md for keeping metadata, testfile, and test template for file
|
|
11
15
|
*/
|
|
12
|
-
|
|
16
|
+
class MetaMd {
|
|
17
|
+
filePath;
|
|
13
18
|
//#region static fields
|
|
14
|
-
static
|
|
15
|
-
static
|
|
16
|
-
static
|
|
19
|
+
static JSON_PART = '@jsonPart';
|
|
20
|
+
static FILE_CONTENT_PART = '@fileContentPart';
|
|
21
|
+
static TEST_PART = '@testPart';
|
|
17
22
|
//#region static fields / create
|
|
18
23
|
static async create(json, fileContent, testContent) {
|
|
19
|
-
return await create((___NS__isObject(json) ? Helpers__NS__stringify(json) : json), fileContent, testContent);
|
|
24
|
+
return await create(((0, lib_prod_1.___NS__isObject)(json) ? (0, lib_prod_3.Helpers__NS__stringify)(json) : json), fileContent, testContent);
|
|
20
25
|
}
|
|
21
26
|
//#endregion
|
|
22
27
|
//#region static fields / preserve file
|
|
23
28
|
static async preserveFiles(originalAnyTypeFiles, destinationFolder, editorCwd, foundProjectsFn = (a) => a, baseProjectsStructurePath, // navi-cli folder or current folder,
|
|
24
29
|
overrideThisFileName = void 0, overrideTimehash = void 0) {
|
|
25
30
|
const properDestName = overrideThisFileName ? overrideThisFileName :
|
|
26
|
-
`${path.basename(___NS__first(originalAnyTypeFiles))}.${config.file.meta_config_md}`; // TODO later menu to confirm name
|
|
27
|
-
if (!Helpers__NS__isFolder(destinationFolder)) {
|
|
28
|
-
Helpers__NS__error(`[tnp-helpers][meta-content-md] Destination folder "${destinationFolder}"
|
|
31
|
+
`${lib_prod_1.path.basename((0, lib_prod_1.___NS__first)(originalAnyTypeFiles))}.${lib_prod_2.config.file.meta_config_md}`; // TODO later menu to confirm name
|
|
32
|
+
if (!(0, lib_prod_3.Helpers__NS__isFolder)(destinationFolder)) {
|
|
33
|
+
(0, lib_prod_3.Helpers__NS__error)(`[tnp-helpers][meta-content-md] Destination folder "${destinationFolder}"
|
|
29
34
|
is not a folder`, false, true);
|
|
30
35
|
}
|
|
31
36
|
let foundedProjectsInPath = resolveFoundedProject(originalAnyTypeFiles, editorCwd, foundProjectsFn);
|
|
32
|
-
const mostBaseLocationFound = ___NS__minBy(foundedProjectsInPath, p => p.location.length).location;
|
|
37
|
+
const mostBaseLocationFound = (0, lib_prod_1.___NS__minBy)(foundedProjectsInPath, p => p.location.length).location;
|
|
33
38
|
// console.log(foundedProjectsInPath.map(p => p.location))
|
|
34
39
|
const projects = foundedProjectsInPath
|
|
35
40
|
.reduce((a, b) => {
|
|
36
|
-
const baseStructureHash = BaseProjectStructure.generate(b).insideIfNotExists(baseProjectsStructurePath);
|
|
37
|
-
return ___NS__merge(a, {
|
|
38
|
-
[path.join(path.basename(mostBaseLocationFound), b.location.replace(mostBaseLocationFound, ''))]: {
|
|
41
|
+
const baseStructureHash = base_project_structure_backend_1.BaseProjectStructure.generate(b).insideIfNotExists(baseProjectsStructurePath);
|
|
42
|
+
return (0, lib_prod_1.___NS__merge)(a, {
|
|
43
|
+
[lib_prod_1.path.join(lib_prod_1.path.basename(mostBaseLocationFound), b.location.replace(mostBaseLocationFound, ''))]: {
|
|
39
44
|
githash: b.git.lastCommitHash(),
|
|
40
45
|
name: b.name,
|
|
41
46
|
baseStructureHash,
|
|
@@ -44,39 +49,39 @@ export class MetaMd {
|
|
|
44
49
|
}, {});
|
|
45
50
|
const timeHash = overrideTimehash ? overrideTimehash : (+new Date).toString(36);
|
|
46
51
|
const c = await MetaMd.create({
|
|
47
|
-
orgFileBasenames: originalAnyTypeFiles.map(a => path.basename(a)),
|
|
52
|
+
orgFileBasenames: originalAnyTypeFiles.map(a => lib_prod_1.path.basename(a)),
|
|
48
53
|
orgRelativePathes: originalAnyTypeFiles.map(a => {
|
|
49
|
-
return path.join(path.basename(mostBaseLocationFound), a.replace(mostBaseLocationFound, ''));
|
|
54
|
+
return lib_prod_1.path.join(lib_prod_1.path.basename(mostBaseLocationFound), a.replace(mostBaseLocationFound, ''));
|
|
50
55
|
}),
|
|
51
56
|
projects,
|
|
52
|
-
firstProjectBasename: path.basename(mostBaseLocationFound),
|
|
57
|
+
firstProjectBasename: lib_prod_1.path.basename(mostBaseLocationFound),
|
|
53
58
|
timeHash,
|
|
54
|
-
}, originalAnyTypeFiles.map(a => Helpers__NS__readFile(a)));
|
|
55
|
-
Helpers__NS__writeFile(path.join(destinationFolder, properDestName), c);
|
|
59
|
+
}, originalAnyTypeFiles.map(a => (0, lib_prod_3.Helpers__NS__readFile)(a)));
|
|
60
|
+
(0, lib_prod_3.Helpers__NS__writeFile)(lib_prod_1.path.join(destinationFolder, properDestName), c);
|
|
56
61
|
}
|
|
57
62
|
//#endregion
|
|
58
63
|
async addFiles(newFilesPathes, destinationFolder, editorCwd, foundProjectFn = void 0, baseProjectsStructurePath) {
|
|
59
64
|
let foundedProjectsInPath = resolveFoundedProject(newFilesPathes, editorCwd, foundProjectFn);
|
|
60
|
-
const mostBaseLocationFound = ___NS__minBy(foundedProjectsInPath, p => p.location.length).location;
|
|
61
|
-
newFilesPathes = Utils__NS__uniqArray([
|
|
65
|
+
const mostBaseLocationFound = (0, lib_prod_1.___NS__minBy)(foundedProjectsInPath, p => p.location.length).location;
|
|
66
|
+
newFilesPathes = (0, lib_prod_1.Utils__NS__uniqArray)([
|
|
62
67
|
...newFilesPathes,
|
|
63
68
|
...this.readonlyMetaJson.orgRelativePathes.map(a => {
|
|
64
|
-
return path.join(path.dirname(mostBaseLocationFound), a);
|
|
69
|
+
return lib_prod_1.path.join(lib_prod_1.path.dirname(mostBaseLocationFound), a);
|
|
65
70
|
}),
|
|
66
71
|
]);
|
|
67
72
|
newFilesPathes.forEach(f => {
|
|
68
|
-
if (!Helpers__NS__exists(f)) {
|
|
69
|
-
Helpers__NS__error(`File doesn't exists`, false, true);
|
|
73
|
+
if (!(0, lib_prod_3.Helpers__NS__exists)(f)) {
|
|
74
|
+
(0, lib_prod_3.Helpers__NS__error)(`File doesn't exists`, false, true);
|
|
70
75
|
}
|
|
71
76
|
});
|
|
72
|
-
await MetaMd.preserveFiles(newFilesPathes, destinationFolder, editorCwd, foundProjectFn, baseProjectsStructurePath, path.basename(this.filePath), this.readonlyMetaJson.timeHash);
|
|
77
|
+
await MetaMd.preserveFiles(newFilesPathes, destinationFolder, editorCwd, foundProjectFn, baseProjectsStructurePath, lib_prod_1.path.basename(this.filePath), this.readonlyMetaJson.timeHash);
|
|
73
78
|
}
|
|
74
79
|
//#region static fields / handle instance from meta-content.md file
|
|
75
80
|
static instanceFrom(filePath) {
|
|
76
81
|
return new MetaMd(filePath);
|
|
77
82
|
}
|
|
78
83
|
static allInstancesFrom(folderPath) {
|
|
79
|
-
return glob.sync(`${folderPath}/*.${config.file.meta_config_md}`).map(f => {
|
|
84
|
+
return glob.sync(`${folderPath}/*.${lib_prod_2.config.file.meta_config_md}`).map(f => {
|
|
80
85
|
return MetaMd.instanceFrom(f);
|
|
81
86
|
});
|
|
82
87
|
}
|
|
@@ -84,10 +89,10 @@ export class MetaMd {
|
|
|
84
89
|
//#endregion
|
|
85
90
|
//#region getters
|
|
86
91
|
get json() {
|
|
87
|
-
const content = Helpers__NS__readFile(this.filePath) || '';
|
|
92
|
+
const content = (0, lib_prod_3.Helpers__NS__readFile)(this.filePath) || '';
|
|
88
93
|
try {
|
|
89
|
-
const extracted = ___NS__first(extract(content, MetaMd.JSON_PART));
|
|
90
|
-
const parsed = Helpers__NS__parse(extracted, true);
|
|
94
|
+
const extracted = (0, lib_prod_1.___NS__first)(extract(content, MetaMd.JSON_PART));
|
|
95
|
+
const parsed = (0, lib_prod_3.Helpers__NS__parse)(extracted, true);
|
|
91
96
|
return parsed;
|
|
92
97
|
}
|
|
93
98
|
catch (error) {
|
|
@@ -98,15 +103,15 @@ export class MetaMd {
|
|
|
98
103
|
return Object.freeze(this.json);
|
|
99
104
|
}
|
|
100
105
|
fileContentByIndex(i) {
|
|
101
|
-
const content = Helpers__NS__readFile(this.filePath) || '';
|
|
106
|
+
const content = (0, lib_prod_3.Helpers__NS__readFile)(this.filePath) || '';
|
|
102
107
|
const extracted = extract(content, MetaMd.FILE_CONTENT_PART)[i];
|
|
103
108
|
return extracted;
|
|
104
109
|
}
|
|
105
110
|
get basename() {
|
|
106
|
-
return path.basename(this.filePath);
|
|
111
|
+
return lib_prod_1.path.basename(this.filePath);
|
|
107
112
|
}
|
|
108
113
|
get dirname() {
|
|
109
|
-
return path.dirname(this.filePath);
|
|
114
|
+
return lib_prod_1.path.dirname(this.filePath);
|
|
110
115
|
}
|
|
111
116
|
//#endregion
|
|
112
117
|
//#region constructor
|
|
@@ -118,64 +123,65 @@ export class MetaMd {
|
|
|
118
123
|
/**
|
|
119
124
|
* recate original files before any unit/intergration test
|
|
120
125
|
*/
|
|
121
|
-
recreate(testCwd, cwdProj, ProjectClass =
|
|
126
|
+
recreate(testCwd, cwdProj, ProjectClass = lib_prod_3.BaseProject, onlyIfNotExists = false) {
|
|
122
127
|
// recreat whole structure
|
|
123
|
-
const hashDir = path.join(testCwd, this.json.timeHash);
|
|
124
|
-
if (onlyIfNotExists && Helpers__NS__exists(hashDir)) {
|
|
128
|
+
const hashDir = lib_prod_1.path.join(testCwd, this.json.timeHash);
|
|
129
|
+
if (onlyIfNotExists && (0, lib_prod_3.Helpers__NS__exists)(hashDir)) {
|
|
125
130
|
return;
|
|
126
131
|
}
|
|
127
|
-
Helpers__NS__removeFolderIfExists(hashDir);
|
|
128
|
-
Helpers__NS__mkdirp(hashDir);
|
|
132
|
+
(0, lib_prod_3.Helpers__NS__removeFolderIfExists)(hashDir);
|
|
133
|
+
(0, lib_prod_3.Helpers__NS__mkdirp)(hashDir);
|
|
129
134
|
const firstToFind = this.json.projects[this.json.firstProjectBasename].baseStructureHash;
|
|
130
|
-
const allBaseStructures = BaseProjectStructure.allBaseStructures(cwdProj);
|
|
135
|
+
const allBaseStructures = base_project_structure_backend_1.BaseProjectStructure.allBaseStructures(cwdProj);
|
|
131
136
|
const baseStructure = allBaseStructures.find(p => p.baseStructureHash === firstToFind);
|
|
132
137
|
if (!baseStructure) {
|
|
133
|
-
Helpers__NS__error(`[node-cli-test][regenerate] base structure was not generated for ${firstToFind}`, false, true);
|
|
138
|
+
(0, lib_prod_3.Helpers__NS__error)(`[node-cli-test][regenerate] base structure was not generated for ${firstToFind}`, false, true);
|
|
134
139
|
}
|
|
135
140
|
baseStructure.copyto(hashDir);
|
|
136
|
-
___NS__keys(this.json.projects)
|
|
141
|
+
(0, lib_prod_1.___NS__keys)(this.json.projects)
|
|
137
142
|
.filter(key => key !== this.json.firstProjectBasename)
|
|
138
143
|
.map(key => {
|
|
139
144
|
const baseStructureHashChild = this.json.projects[key].baseStructureHash;
|
|
140
145
|
const childBaseStruct = allBaseStructures.find(p => p.baseStructureHash === baseStructureHashChild);
|
|
141
146
|
if (childBaseStruct) {
|
|
142
|
-
childBaseStruct.copyto(path.join(hashDir, path.dirname(key)), path.basename(key));
|
|
147
|
+
childBaseStruct.copyto(lib_prod_1.path.join(hashDir, lib_prod_1.path.dirname(key)), lib_prod_1.path.basename(key));
|
|
143
148
|
}
|
|
144
149
|
});
|
|
145
150
|
this.readonlyMetaJson.orgRelativePathes.forEach((f, i) => {
|
|
146
|
-
const fileToWritePath = path.join(hashDir, f);
|
|
147
|
-
Helpers__NS__writeFile(fileToWritePath, this.fileContentByIndex(i));
|
|
151
|
+
const fileToWritePath = lib_prod_1.path.join(hashDir, f);
|
|
152
|
+
(0, lib_prod_3.Helpers__NS__writeFile)(fileToWritePath, this.fileContentByIndex(i));
|
|
148
153
|
});
|
|
149
|
-
const proj = ProjectClass.ins.From(path.join(hashDir, this.readonlyMetaJson.firstProjectBasename));
|
|
154
|
+
const proj = ProjectClass.ins.From(lib_prod_1.path.join(hashDir, this.readonlyMetaJson.firstProjectBasename));
|
|
150
155
|
const linksToLInk = []; // proj?.forEmptyStructure().filter(f => !!f.relativeLinkFrom) || [];
|
|
151
156
|
linksToLInk.forEach(l => {
|
|
152
|
-
const source = path.resolve(path.join(proj.location, l.relativeLinkFrom));
|
|
153
|
-
if (Helpers__NS__exists(source)) {
|
|
154
|
-
const dest = path.resolve(path.join(proj.location, l.relativePath));
|
|
155
|
-
Helpers__NS__createSymLink(source, dest);
|
|
157
|
+
const source = lib_prod_1.path.resolve(lib_prod_1.path.join(proj.location, l.relativeLinkFrom));
|
|
158
|
+
if ((0, lib_prod_3.Helpers__NS__exists)(source)) {
|
|
159
|
+
const dest = lib_prod_1.path.resolve(lib_prod_1.path.join(proj.location, l.relativePath));
|
|
160
|
+
(0, lib_prod_3.Helpers__NS__createSymLink)(source, dest);
|
|
156
161
|
}
|
|
157
162
|
else {
|
|
158
|
-
Helpers__NS__log(`[cli-tester][recreate-env] not exist ${source}`);
|
|
163
|
+
(0, lib_prod_3.Helpers__NS__log)(`[cli-tester][recreate-env] not exist ${source}`);
|
|
159
164
|
}
|
|
160
165
|
});
|
|
161
166
|
}
|
|
162
167
|
}
|
|
168
|
+
exports.MetaMd = MetaMd;
|
|
163
169
|
//#region create
|
|
164
170
|
async function create(json5string, fileContents, testContent) {
|
|
165
|
-
const metadataJSON = Helpers__NS__parse(json5string, true);
|
|
171
|
+
const metadataJSON = (0, lib_prod_3.Helpers__NS__parse)(json5string, true);
|
|
166
172
|
// Helpers__NS__log(`metadataJSON.orgFileBasename: ${metadataJSON.orgFileBasename}`)
|
|
167
173
|
if (!testContent) {
|
|
168
|
-
const projPath = ___NS__maxBy(___NS__keys(metadataJSON.projects).map(projRelPath => {
|
|
174
|
+
const projPath = (0, lib_prod_1.___NS__maxBy)((0, lib_prod_1.___NS__keys)(metadataJSON.projects).map(projRelPath => {
|
|
169
175
|
return { path: projRelPath, length: projRelPath.length };
|
|
170
176
|
}), c => c.length)?.path || '';
|
|
171
|
-
let TestTemplatesClass = CLASS.getBy('TestTemplates');
|
|
177
|
+
let TestTemplatesClass = lib_prod_4.CLASS.getBy('TestTemplates');
|
|
172
178
|
if (!TestTemplatesClass) {
|
|
173
|
-
TestTemplatesClass = await (await
|
|
179
|
+
TestTemplatesClass = await (await Promise.resolve().then(() => require('./spec-templates.backend'))).TestTemplates;
|
|
174
180
|
}
|
|
175
181
|
testContent = TestTemplatesClass.testPart(metadataJSON.orgRelativePathes, projPath, metadataJSON.timeHash);
|
|
176
182
|
}
|
|
177
183
|
const filesContestString = fileContents.map((fileContent, i) => {
|
|
178
|
-
const ext = path.extname(metadataJSON.orgFileBasenames[i]).replace(/^\./, '');
|
|
184
|
+
const ext = lib_prod_1.path.extname(metadataJSON.orgFileBasenames[i]).replace(/^\./, '');
|
|
179
185
|
return `\`\`\`${ext} ${MetaMd.FILE_CONTENT_PART}
|
|
180
186
|
${fileContent}
|
|
181
187
|
\`\`\``;
|
|
@@ -196,7 +202,7 @@ ${filesContestString}
|
|
|
196
202
|
}
|
|
197
203
|
//#endregion
|
|
198
204
|
//#region extract data parts from content md file
|
|
199
|
-
|
|
205
|
+
function extract(content, PARTS_TO_FIND) {
|
|
200
206
|
if (!content) {
|
|
201
207
|
return;
|
|
202
208
|
}
|
|
@@ -230,14 +236,15 @@ function resolveFoundedProject(originalAnyTypeFiles, editorCwd, foundProjectFn)
|
|
|
230
236
|
const fileAbsPath = originalAnyTypeFiles[index];
|
|
231
237
|
foundedProjectsInPath = [
|
|
232
238
|
...foundedProjectsInPath,
|
|
233
|
-
...
|
|
239
|
+
...lib_prod_3.BaseProject.ins.allProjectFrom(fileAbsPath, editorCwd)
|
|
234
240
|
];
|
|
235
241
|
if (foundProjectFn) {
|
|
236
|
-
foundedProjectsInPath = foundProjectFn(Utils__NS__uniqArray(foundedProjectsInPath, 'location'));
|
|
242
|
+
foundedProjectsInPath = foundProjectFn((0, lib_prod_1.Utils__NS__uniqArray)(foundedProjectsInPath, 'location'));
|
|
237
243
|
}
|
|
238
244
|
}
|
|
239
|
-
foundedProjectsInPath = Utils__NS__uniqArray(foundedProjectsInPath, 'location');
|
|
245
|
+
foundedProjectsInPath = (0, lib_prod_1.Utils__NS__uniqArray)(foundedProjectsInPath, 'location');
|
|
240
246
|
return foundedProjectsInPath;
|
|
241
247
|
}
|
|
242
248
|
//#endregion
|
|
243
249
|
//#endregion
|
|
250
|
+
//# sourceMappingURL=meta-content-md.backend.js.map
|