tnp-core 18.0.45 → 18.0.47
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 +20 -20
- package/assets/shared/shared_folder_info.txt +1 -1
- package/browser/README.md +24 -24
- package/browser/esm2022/lib/core-imports.mjs +1 -6
- package/browser/esm2022/lib/core-models.mjs +50 -1
- package/browser/esm2022/lib/helpers.mjs +13 -5
- package/browser/esm2022/lib/utils.mjs +141 -11
- package/browser/fesm2022/tnp-core.mjs +201 -15
- package/browser/fesm2022/tnp-core.mjs.map +1 -1
- package/browser/lib/core-models.d.ts +65 -3
- package/browser/lib/utils.d.ts +61 -34
- package/cli.backend.js +2 -2
- package/client/README.md +24 -24
- package/client/esm2022/lib/core-imports.mjs +1 -6
- package/client/esm2022/lib/core-models.mjs +50 -1
- package/client/esm2022/lib/helpers.mjs +13 -5
- package/client/esm2022/lib/utils.mjs +141 -11
- package/client/fesm2022/tnp-core.mjs +201 -15
- package/client/fesm2022/tnp-core.mjs.map +1 -1
- package/client/lib/core-models.d.ts +65 -3
- package/client/lib/utils.d.ts +61 -34
- package/lib/core-cli.js +1 -1
- package/lib/core-cli.js.map +1 -1
- package/lib/core-imports.d.ts +1 -6
- package/lib/core-imports.js +1 -3
- package/lib/core-imports.js.map +1 -1
- package/lib/core-models.d.ts +65 -3
- package/lib/core-models.js +49 -0
- package/lib/core-models.js.map +1 -1
- package/lib/helpers.js +8 -7
- package/lib/helpers.js.map +1 -1
- package/lib/node-chalk-mock.js +2 -2
- package/lib/node-path-mock.js +2 -2
- package/lib/utils.d.ts +73 -34
- package/lib/utils.js +182 -33
- package/lib/utils.js.map +1 -1
- package/package.json +2 -4
- package/taon.jsonc +64 -65
- package/tmp-environment.json +30 -31
- package/websql/README.md +24 -24
- package/websql/esm2022/lib/core-imports.mjs +1 -6
- package/websql/esm2022/lib/core-models.mjs +50 -1
- package/websql/esm2022/lib/helpers.mjs +13 -5
- package/websql/esm2022/lib/utils.mjs +141 -11
- package/websql/fesm2022/tnp-core.mjs +201 -15
- package/websql/fesm2022/tnp-core.mjs.map +1 -1
- package/websql/lib/core-models.d.ts +65 -3
- package/websql/lib/utils.d.ts +61 -34
@@ -36,9 +36,68 @@ export declare namespace CoreModels {
|
|
36
36
|
export const InstalationTypeArr: string[];
|
37
37
|
export type PackageJsonDependencyObj = 'dependencies' | 'devDependencies' | 'peerDependencies' | 'resolutions';
|
38
38
|
export const PackageJsonDependencyObjArr: PackageJsonDependencyObj[];
|
39
|
-
export type
|
40
|
-
|
41
|
-
|
39
|
+
export type ReleaseProcessType = 'manual' | 'local' | 'cloud';
|
40
|
+
/**
|
41
|
+
* All possible release types for taon
|
42
|
+
* for MANUAL/CLOUD release
|
43
|
+
*/
|
44
|
+
export type ReleaseArtifactTaon = 'angular-electron-app' | 'angular-frontend-webapp' | 'angular-ionic-app' | 'mkdocs-docs-webapp' | 'nodejs-backend-server' | 'npm-lib-pkg-and-cli-tool' | 'vscode-extension';
|
45
|
+
export const ReleaseArtifactTaonNames: Readonly<{
|
46
|
+
ANGULAR_ELECTRON_APP: ReleaseArtifactTaon;
|
47
|
+
/**
|
48
|
+
* Angular frontend webapp (pwa) inside docker
|
49
|
+
*/
|
50
|
+
ANGULAR_FRONTEND_WEBAPP: ReleaseArtifactTaon;
|
51
|
+
/**
|
52
|
+
* Angular + Ionic
|
53
|
+
*/
|
54
|
+
ANGULAR_IONIC_APP: ReleaseArtifactTaon;
|
55
|
+
/**
|
56
|
+
* MkDocs documentation webapp (pwa) inside docker
|
57
|
+
*/
|
58
|
+
MKDOCS_DOCS_WEBAPP: ReleaseArtifactTaon;
|
59
|
+
/**
|
60
|
+
* Nodejs backend server inside docker
|
61
|
+
* (could be backend or frontend or microservice)
|
62
|
+
*/
|
63
|
+
NODEJS_BACKEND_SERVER: ReleaseArtifactTaon;
|
64
|
+
/**
|
65
|
+
* Npm lib package and global cli tool
|
66
|
+
*/
|
67
|
+
NPM_LIB_PKG_AND_CLI_TOOL: ReleaseArtifactTaon;
|
68
|
+
/**
|
69
|
+
* Visual Studio Code extension
|
70
|
+
*/
|
71
|
+
VSCODE_EXTENSION: ReleaseArtifactTaon;
|
72
|
+
}>;
|
73
|
+
export const ReleaseArtifactTaonNamesArr: ReleaseArtifactTaon[];
|
74
|
+
/**
|
75
|
+
* All possible local release types for taon
|
76
|
+
* for LOCAL release
|
77
|
+
*/
|
78
|
+
export type LocalReleaseArtifactTaon = 'docker-backend-frontend-app' | 'global-cli-tool' | 'vscode-extension';
|
79
|
+
/**
|
80
|
+
* Object with all possible local release types for taon
|
81
|
+
* inside LOCAL release
|
82
|
+
*/
|
83
|
+
export const LocalReleaseArtifactTaonNames: Readonly<{
|
84
|
+
DOCKER_BACKEND_FRONTEND_APP: LocalReleaseArtifactTaon;
|
85
|
+
/**
|
86
|
+
* Global CLI tool
|
87
|
+
*/
|
88
|
+
GLOBAL_CLI_TOOL: LocalReleaseArtifactTaon;
|
89
|
+
/**
|
90
|
+
* Visual Studio Code extension
|
91
|
+
*/
|
92
|
+
VSCODE_EXTENSION: LocalReleaseArtifactTaon;
|
93
|
+
}>;
|
94
|
+
/**
|
95
|
+
* Array with all possible local release types for taon
|
96
|
+
* inside LOCAL release
|
97
|
+
*/
|
98
|
+
export const LocalReleaseArtifactTaonNamesArr: LocalReleaseArtifactTaon[];
|
99
|
+
export type ReleaseVersionType = 'major' | 'minor' | 'patch';
|
100
|
+
export type PreReleaseVersionTag = 'alpha' | 'beta' | 'rc' | 'next';
|
42
101
|
export const NpmSpecialVersions: string[];
|
43
102
|
export type PROGRESS_DATA_TYPE = 'info' | 'error' | 'warning' | 'event';
|
44
103
|
export type EnvironmentName = 'local' | 'static' | 'dev' | 'stage' | 'prod' | 'online' | 'test' | 'qa' | 'custom';
|
@@ -57,6 +116,9 @@ export declare namespace CoreModels {
|
|
57
116
|
export type TsUsage = 'import' | 'export';
|
58
117
|
export type BaseProjectType = 'typescript' | 'angular' | 'angular-lib' | 'unknow' | 'unknow-npm-project';
|
59
118
|
export const BaseProjectTypeArr: string[];
|
119
|
+
/**
|
120
|
+
* @deprecated there will be only one lib type "isomorphic-lib"
|
121
|
+
*/
|
60
122
|
export type LibType = BaseProjectType | 'isomorphic-lib' | 'container' | 'docker' | 'vscode-ext' | 'chrome-ext' | 'unknow-npm-project';
|
61
123
|
/**
|
62
124
|
* @deprecated
|
package/client/lib/utils.d.ts
CHANGED
@@ -12,7 +12,6 @@ export declare namespace Utils {
|
|
12
12
|
export const fullDate: () => any;
|
13
13
|
export const getFreePort: (options?: {
|
14
14
|
startFrom?: number;
|
15
|
-
howManyFreePortsAfterThatPort?: number;
|
16
15
|
}) => Promise<number>;
|
17
16
|
interface AttrJsoncProp {
|
18
17
|
name: string;
|
@@ -90,7 +89,21 @@ export declare namespace Utils {
|
|
90
89
|
export {};
|
91
90
|
}
|
92
91
|
export declare namespace UtilsProcess {
|
93
|
-
interface
|
92
|
+
interface ResolvePromiseMsg {
|
93
|
+
/**
|
94
|
+
* until this string is in output of stdout
|
95
|
+
*/
|
96
|
+
stdout?: string | string[];
|
97
|
+
/**
|
98
|
+
* until this string is in output of stderr
|
99
|
+
*/
|
100
|
+
stderr?: string | string[];
|
101
|
+
/**
|
102
|
+
* by default only resolve when exit code is 0
|
103
|
+
*/
|
104
|
+
resolveAfterAnyExitCode?: boolean;
|
105
|
+
}
|
106
|
+
export interface ProcessStartOptions {
|
94
107
|
/**
|
95
108
|
* by default is process.cwd();
|
96
109
|
*/
|
@@ -103,20 +116,7 @@ export declare namespace UtilsProcess {
|
|
103
116
|
* Modify output line by line
|
104
117
|
*/
|
105
118
|
outputLineReplace?: (outputLineStderOrStdout: string) => string;
|
106
|
-
resolvePromiseMsg?:
|
107
|
-
/**
|
108
|
-
* until this string is in output of stdout
|
109
|
-
*/
|
110
|
-
stdout?: string | string[];
|
111
|
-
/**
|
112
|
-
* until this string is in output of stderr
|
113
|
-
*/
|
114
|
-
stderr?: string | string[];
|
115
|
-
/**
|
116
|
-
* by default only resolve when exit code is 0
|
117
|
-
*/
|
118
|
-
resolveAfterAnyExitCode?: boolean;
|
119
|
-
};
|
119
|
+
resolvePromiseMsg?: ResolvePromiseMsg;
|
120
120
|
/**
|
121
121
|
* Prefix messages output from child_process
|
122
122
|
*/
|
@@ -141,18 +141,28 @@ export declare namespace UtilsProcess {
|
|
141
141
|
* TODO IMPLEMENT
|
142
142
|
* start async node process
|
143
143
|
*/
|
144
|
-
function startAsync(command: string, options?: ProcessStartOptions): Promise<void>;
|
145
144
|
/**
|
146
|
-
*
|
145
|
+
* This let you start child process and resolve promise when some
|
146
|
+
* condition is met. It is useful for example when you want to start
|
147
|
+
* process and wait until some output is in stdout or stderr.
|
147
148
|
*/
|
148
|
-
|
149
|
-
|
149
|
+
export const startAsyncChildProcessCommandUntil: (command: string, options: {
|
150
|
+
/**
|
151
|
+
* tels when to resolve promise
|
152
|
+
*/
|
153
|
+
untilOptions: ResolvePromiseMsg;
|
154
|
+
displayOutputInParentProcess?: boolean;
|
155
|
+
resolveAfterAnyExitCode?: boolean;
|
156
|
+
cwd?: string;
|
157
|
+
}) => Promise<void>;
|
158
|
+
export const getGitBashPath: () => any;
|
150
159
|
/**
|
151
160
|
* TODO IMPLEMENT
|
152
161
|
* start async node process
|
153
162
|
*/
|
154
|
-
const startInNewTerminalWindow: (command: string, options?: Pick<ProcessStartOptions, "cwd" | "hideOutput">) => any;
|
155
|
-
const getBashOrShellName: () => "browser" | "cmd" | "powershell" | "gitbash" | "cygwin" | "unknown" | "bash" | "zsh" | "fish" | "sh";
|
163
|
+
export const startInNewTerminalWindow: (command: string, options?: Pick<ProcessStartOptions, "cwd" | "hideOutput">) => any;
|
164
|
+
export const getBashOrShellName: () => "browser" | "cmd" | "powershell" | "gitbash" | "cygwin" | "unknown" | "bash" | "zsh" | "fish" | "sh";
|
165
|
+
export {};
|
156
166
|
}
|
157
167
|
export declare namespace UtilsOs {
|
158
168
|
/**
|
@@ -219,11 +229,29 @@ export declare namespace UtilsMigrations {
|
|
219
229
|
const isValidTimestamp: (value: any) => boolean;
|
220
230
|
}
|
221
231
|
export declare namespace UtilsTerminal {
|
232
|
+
type SelectActionChoice = {
|
233
|
+
[choice: string]: {
|
234
|
+
/**
|
235
|
+
* Title of the choice
|
236
|
+
*/
|
237
|
+
name: string;
|
238
|
+
/**
|
239
|
+
* Action to execute
|
240
|
+
*/
|
241
|
+
action?: () => any;
|
242
|
+
/**
|
243
|
+
* If choice is visible
|
244
|
+
* default: true
|
245
|
+
*/
|
246
|
+
visible?: boolean;
|
247
|
+
};
|
248
|
+
};
|
222
249
|
export const clearConsole: () => void;
|
223
250
|
export const multiselect: <T = string>(options: {
|
224
251
|
question: string;
|
225
252
|
/**
|
226
253
|
* If true, then only one choice can be selected
|
254
|
+
* @deprecated use select instead
|
227
255
|
*/
|
228
256
|
onlyOneChoice?: boolean;
|
229
257
|
choices: {
|
@@ -237,18 +265,17 @@ export declare namespace UtilsTerminal {
|
|
237
265
|
autocomplete?: boolean;
|
238
266
|
defaultSelected?: string[];
|
239
267
|
}) => Promise<T[]>;
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
};
|
268
|
+
/**
|
269
|
+
* Similar to select but executes action if provided
|
270
|
+
* @returns selected and executed value
|
271
|
+
*/
|
272
|
+
export const multiselectActionAndExecute: <CHOICE extends SelectActionChoice = SelectActionChoice>(choices: CHOICE, options?: {
|
273
|
+
question?: string;
|
274
|
+
autocomplete?: boolean;
|
275
|
+
defaultSelected?: string;
|
276
|
+
hint?: string;
|
277
|
+
executeActionsOnDefault?: boolean;
|
278
|
+
}) => Promise<any>;
|
252
279
|
/**
|
253
280
|
* Similar to select but executes action if provided
|
254
281
|
* @returns selected and executed value
|
package/lib/core-cli.js
CHANGED
@@ -35,7 +35,7 @@ var CLI = /** @class */ (function () {
|
|
35
35
|
})
|
36
36
|
.join(' ');
|
37
37
|
index_1.Helpers.info('Installing missing dependencies...');
|
38
|
-
var cmd = "npm install -g ".concat(toInstall);
|
38
|
+
var cmd = "npm install -g -f ".concat(toInstall);
|
39
39
|
index_1.Helpers.run(cmd, { output: (framework_name_1.frameworkName === 'tnp'), biggerBuffer: true }).sync();
|
40
40
|
}
|
41
41
|
index_1.Helpers.info("[taon-cli] INSTALLING GLOBAL ENVIRONMENT FOR TAON...done");
|
package/lib/core-cli.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"core-cli.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;;AAAA,+CAAuC;AACvC,iCAAkC;AAClC,mDAAiD;AACjD,kBAAkB;AAElB,+CAA+C;AAE/C,mDAA4D;AAE5D,IAAM,iBAAiB,GAAG,yCAAwB,CAAC;AACnD,IAAM,KAAK,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;AAC5C,aAAa;AACb,2CAAqC;AACrC,+EAAgE;AAChE,YAAY;AAGZ;IAAA;IAyGA,CAAC;IAhGC,kBAAkB;IACJ,sBAAkB,GAAhC,UAAiC,kBAAyC;QAAzC,mCAAA,EAAA,qBAA2B,6CAAc;QACxE,eAAO,CAAC,IAAI,CAAC,iFAAiF,CAAC,CAAA;QAC/F,IAAM,UAAU,GAAU,EAAE,CAAC;QAC7B,kBAAkB,CAAC,GAAG,CAAC,OAAO,CAAC,UAAA,GAAG;YAChC,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;gBACjC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;YACtB,CAAC;QACH,CAAC,CAAC,CAAA;QAEF,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAE1B,IAAM,SAAS,GAAG,UAAU;iBACzB,GAAG,CAAC,UAAA,GAAG;gBACN,IAAM,CAAC,GAAG,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC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AK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;oBAChC,OAAO,CAAC,KAAK,CAAC,CAAC;oBACf,OAAO;gBACT,CAAC;qBAAM,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC;oBAC9B,OAAO,CAAC,IAAI,CAAC,CAAC;gBAChB,CAAC;qBAAM,CAAC;oBACN,eAAO,CAAC,KAAK,CAAC,4CAA4C,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;;wBAExE,KAA0B,IAAA,KAAA,iBAAA,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA,gBAAA,4BAAE,CAAC;4BAApD,IAAM,WAAW,WAAA;4BACpB,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,WAAW,EAAE,CAAC;gCAC9C,eAAO,CAAC,KAAK,CAAC,6BAAsB,WAAW,MAAG,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;4BAClE,CAAC;wBACH,CAAC;;;;;;;;;oBACD,OAAO,CAAC,KAAK,CAAC,CAAC;gBACjB,CAAC;YACH,CAAC,CACF,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;IApGD,kBAAkB;IACJ,cAAU,GAAG,qBAAU,CAAC;IACxB,qBAAiB,GAAG,iBAAiB,CAAC;IACpD,YAAY;IAEE,SAAK,GAAG,oBAAK,CAAC;IAkG9B,UAAC;CAAA,AAzGD,IAyGC;AAzGY,kBAAG"}
|
package/lib/core-imports.d.ts
CHANGED
@@ -15,7 +15,6 @@ import * as ncp from 'copy-paste';
|
|
15
15
|
import * as ps from 'ps-node';
|
16
16
|
import * as psList from 'ps-list';
|
17
17
|
import * as fkill from 'fkill';
|
18
|
-
import * as portfinder from 'portfinder';
|
19
18
|
import * as _ from 'lodash';
|
20
19
|
import * as q from 'q';
|
21
20
|
import * as moment from 'moment';
|
@@ -37,8 +36,4 @@ declare const win32Path: (p: string) => string;
|
|
37
36
|
*/
|
38
37
|
declare const crossPlatformPath: (pathStringOrPathParts: string | string[]) => string;
|
39
38
|
export { _, q, moment, dateformat, crossPlatformPath, win32Path, path, chalk, json5, $, };
|
40
|
-
export { spawn, glob, minimatch, fg, isElevated, chokidar, mkdirp, ncp, fse, os, child_process, http, https, rimraf, net, ps, fkill,
|
41
|
-
/**
|
42
|
-
* @deprecated use ports worker and taon app instead
|
43
|
-
*/
|
44
|
-
portfinder, psList, };
|
39
|
+
export { spawn, glob, minimatch, fg, isElevated, chokidar, mkdirp, ncp, fse, os, child_process, http, https, rimraf, net, ps, fkill, psList, };
|
package/lib/core-imports.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.psList = exports.
|
3
|
+
exports.psList = exports.fkill = exports.ps = exports.net = exports.rimraf = exports.https = exports.http = exports.child_process = exports.os = exports.fse = exports.ncp = exports.mkdirp = exports.chokidar = exports.fg = exports.minimatch = exports.glob = exports.spawn = exports.$ = exports.json5 = exports.chalk = exports.path = exports.win32Path = exports.crossPlatformPath = exports.dateformat = exports.moment = exports.q = exports._ = void 0;
|
4
4
|
exports.isElevated = isElevated;
|
5
5
|
var tslib_1 = require("tslib");
|
6
6
|
//#region imports
|
@@ -43,8 +43,6 @@ var psList = require("ps-list");
|
|
43
43
|
exports.psList = psList;
|
44
44
|
var fkill = require("fkill");
|
45
45
|
exports.fkill = fkill;
|
46
|
-
var portfinder = require("portfinder");
|
47
|
-
exports.portfinder = portfinder;
|
48
46
|
var isRoot = require('is-root');
|
49
47
|
var isAdmin = require('is-admin');
|
50
48
|
forceTrace = global.hideLog === false;
|
package/lib/core-imports.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"core-imports.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"core-imports.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AA6ME,gCAAU;;AA7MZ,iBAAiB;AACjB,IAA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YAAY;IAEZ,IAAM,aAAa,GAAG,iBAAiB,CAAC;IACxC,gCAAgC;IAChC,kDAAkD;IAClD,IAAI,SAAS,IAAI,aAAa,CAAC,IAAI,CAAC,qBAAqB,CAAC,EAAE,CAAC;QAC3D,qBAAqB,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACzD,CAAC;IAED,+BAA+B;IAE/B,2CAA2C;IAC3C,iEAAiE;IACjE,kBAAkB;IAClB,4EAA4E;IAC5E,OAAO;IACP,uDAAuD;IACvD,IAAI;IAEJ,OAAO,qBAAqB,CAAC;AAC/B,CAAC,CAAC;AASA,8CAAiB;AA6BnB,YAAY;AACZ,YAAY"}
|
package/lib/core-models.d.ts
CHANGED
@@ -35,9 +35,68 @@ export declare namespace CoreModels {
|
|
35
35
|
export const InstalationTypeArr: string[];
|
36
36
|
export type PackageJsonDependencyObj = 'dependencies' | 'devDependencies' | 'peerDependencies' | 'resolutions';
|
37
37
|
export const PackageJsonDependencyObjArr: PackageJsonDependencyObj[];
|
38
|
-
export type
|
39
|
-
|
40
|
-
|
38
|
+
export type ReleaseProcessType = 'manual' | 'local' | 'cloud';
|
39
|
+
/**
|
40
|
+
* All possible release types for taon
|
41
|
+
* for MANUAL/CLOUD release
|
42
|
+
*/
|
43
|
+
export type ReleaseArtifactTaon = 'angular-electron-app' | 'angular-frontend-webapp' | 'angular-ionic-app' | 'mkdocs-docs-webapp' | 'nodejs-backend-server' | 'npm-lib-pkg-and-cli-tool' | 'vscode-extension';
|
44
|
+
export const ReleaseArtifactTaonNames: Readonly<{
|
45
|
+
ANGULAR_ELECTRON_APP: ReleaseArtifactTaon;
|
46
|
+
/**
|
47
|
+
* Angular frontend webapp (pwa) inside docker
|
48
|
+
*/
|
49
|
+
ANGULAR_FRONTEND_WEBAPP: ReleaseArtifactTaon;
|
50
|
+
/**
|
51
|
+
* Angular + Ionic
|
52
|
+
*/
|
53
|
+
ANGULAR_IONIC_APP: ReleaseArtifactTaon;
|
54
|
+
/**
|
55
|
+
* MkDocs documentation webapp (pwa) inside docker
|
56
|
+
*/
|
57
|
+
MKDOCS_DOCS_WEBAPP: ReleaseArtifactTaon;
|
58
|
+
/**
|
59
|
+
* Nodejs backend server inside docker
|
60
|
+
* (could be backend or frontend or microservice)
|
61
|
+
*/
|
62
|
+
NODEJS_BACKEND_SERVER: ReleaseArtifactTaon;
|
63
|
+
/**
|
64
|
+
* Npm lib package and global cli tool
|
65
|
+
*/
|
66
|
+
NPM_LIB_PKG_AND_CLI_TOOL: ReleaseArtifactTaon;
|
67
|
+
/**
|
68
|
+
* Visual Studio Code extension
|
69
|
+
*/
|
70
|
+
VSCODE_EXTENSION: ReleaseArtifactTaon;
|
71
|
+
}>;
|
72
|
+
export const ReleaseArtifactTaonNamesArr: ReleaseArtifactTaon[];
|
73
|
+
/**
|
74
|
+
* All possible local release types for taon
|
75
|
+
* for LOCAL release
|
76
|
+
*/
|
77
|
+
export type LocalReleaseArtifactTaon = 'docker-backend-frontend-app' | 'global-cli-tool' | 'vscode-extension';
|
78
|
+
/**
|
79
|
+
* Object with all possible local release types for taon
|
80
|
+
* inside LOCAL release
|
81
|
+
*/
|
82
|
+
export const LocalReleaseArtifactTaonNames: Readonly<{
|
83
|
+
DOCKER_BACKEND_FRONTEND_APP: LocalReleaseArtifactTaon;
|
84
|
+
/**
|
85
|
+
* Global CLI tool
|
86
|
+
*/
|
87
|
+
GLOBAL_CLI_TOOL: LocalReleaseArtifactTaon;
|
88
|
+
/**
|
89
|
+
* Visual Studio Code extension
|
90
|
+
*/
|
91
|
+
VSCODE_EXTENSION: LocalReleaseArtifactTaon;
|
92
|
+
}>;
|
93
|
+
/**
|
94
|
+
* Array with all possible local release types for taon
|
95
|
+
* inside LOCAL release
|
96
|
+
*/
|
97
|
+
export const LocalReleaseArtifactTaonNamesArr: LocalReleaseArtifactTaon[];
|
98
|
+
export type ReleaseVersionType = 'major' | 'minor' | 'patch';
|
99
|
+
export type PreReleaseVersionTag = 'alpha' | 'beta' | 'rc' | 'next';
|
41
100
|
export const NpmSpecialVersions: string[];
|
42
101
|
export type PROGRESS_DATA_TYPE = 'info' | 'error' | 'warning' | 'event';
|
43
102
|
export type EnvironmentName = 'local' | 'static' | 'dev' | 'stage' | 'prod' | 'online' | 'test' | 'qa' | 'custom';
|
@@ -56,6 +115,9 @@ export declare namespace CoreModels {
|
|
56
115
|
export type TsUsage = 'import' | 'export';
|
57
116
|
export type BaseProjectType = 'typescript' | 'angular' | 'angular-lib' | 'unknow' | 'unknow-npm-project';
|
58
117
|
export const BaseProjectTypeArr: string[];
|
118
|
+
/**
|
119
|
+
* @deprecated there will be only one lib type "isomorphic-lib"
|
120
|
+
*/
|
59
121
|
export type LibType = BaseProjectType | 'isomorphic-lib' | 'container' | 'docker' | 'vscode-ext' | 'chrome-ext' | 'unknow-npm-project';
|
60
122
|
/**
|
61
123
|
* @deprecated
|
package/lib/core-models.js
CHANGED
@@ -10,6 +10,55 @@ var CoreModels;
|
|
10
10
|
'peerDependencies',
|
11
11
|
'resolutions',
|
12
12
|
];
|
13
|
+
CoreModels.ReleaseArtifactTaonNames = Object.freeze({
|
14
|
+
ANGULAR_ELECTRON_APP: 'angular-electron-app',
|
15
|
+
/**
|
16
|
+
* Angular frontend webapp (pwa) inside docker
|
17
|
+
*/
|
18
|
+
ANGULAR_FRONTEND_WEBAPP: 'angular-frontend-webapp',
|
19
|
+
/**
|
20
|
+
* Angular + Ionic
|
21
|
+
*/
|
22
|
+
ANGULAR_IONIC_APP: 'angular-ionic-app',
|
23
|
+
/**
|
24
|
+
* MkDocs documentation webapp (pwa) inside docker
|
25
|
+
*/
|
26
|
+
MKDOCS_DOCS_WEBAPP: 'mkdocs-docs-webapp',
|
27
|
+
/**
|
28
|
+
* Nodejs backend server inside docker
|
29
|
+
* (could be backend or frontend or microservice)
|
30
|
+
*/
|
31
|
+
NODEJS_BACKEND_SERVER: 'nodejs-backend-server',
|
32
|
+
/**
|
33
|
+
* Npm lib package and global cli tool
|
34
|
+
*/
|
35
|
+
NPM_LIB_PKG_AND_CLI_TOOL: 'npm-lib-pkg-and-cli-tool',
|
36
|
+
/**
|
37
|
+
* Visual Studio Code extension
|
38
|
+
*/
|
39
|
+
VSCODE_EXTENSION: 'vscode-extension',
|
40
|
+
});
|
41
|
+
CoreModels.ReleaseArtifactTaonNamesArr = Object.values(CoreModels.ReleaseArtifactTaonNames);
|
42
|
+
/**
|
43
|
+
* Object with all possible local release types for taon
|
44
|
+
* inside LOCAL release
|
45
|
+
*/
|
46
|
+
CoreModels.LocalReleaseArtifactTaonNames = Object.freeze({
|
47
|
+
DOCKER_BACKEND_FRONTEND_APP: 'docker-backend-frontend-app',
|
48
|
+
/**
|
49
|
+
* Global CLI tool
|
50
|
+
*/
|
51
|
+
GLOBAL_CLI_TOOL: 'global-cli-tool',
|
52
|
+
/**
|
53
|
+
* Visual Studio Code extension
|
54
|
+
*/
|
55
|
+
VSCODE_EXTENSION: 'vscode-extension',
|
56
|
+
});
|
57
|
+
/**
|
58
|
+
* Array with all possible local release types for taon
|
59
|
+
* inside LOCAL release
|
60
|
+
*/
|
61
|
+
CoreModels.LocalReleaseArtifactTaonNamesArr = Object.values(CoreModels.LocalReleaseArtifactTaonNames);
|
13
62
|
CoreModels.NpmSpecialVersions = [
|
14
63
|
'latest',
|
15
64
|
'next',
|
package/lib/core-models.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"core-models.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,IAAiB,UAAU,
|
1
|
+
{"version":3,"file":"core-models.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,IAAiB,UAAU,CAoqB1B;AApqBD,WAAiB,UAAU;IA0CZ,6BAAkB,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;IAUpD,sCAA2B,GAAG;QACzC,cAAc;QACd,iBAAiB;QACjB,kBAAkB;QAClB,aAAa;KACgB,CAAC;IAmBnB,mCAAwB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3B,MAAM,EAAE,YAAY;QACpB,OAAO,EAAE,YAAY;QACrB,KAAK,EAAE,YAAY;QACnB,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,YAAY;QACpB,MAAM,EAAE,uBAAuB;QAC/B,MAAM,EAAE,WAAW;QACnB,OAAO,EAAE,YAAY;QACrB,OAAO,EAAE,YAAY;QACrB,OAAO,EAAE,YAAY;QACrB,OAAO,EAAE,WAAW;QACpB,QAAQ,EAAE,YAAY;QACtB,QAAQ,EAAE,uBAAuB;QACjC,MAAM,EAAE,0BAA0B;QAClC,OAAO,EACL,mEAAmE;QACrE,MAAM,EAAE,iBAAiB;QACzB,MAAM,EAAE,iCAAiC;QACzC,MAAM,EAAE,iBAAiB;QACzB,MAAM,EAAE,YAAY;QACpB,MAAM,EAAE,aAAa;QACrB,KAAK,EAAE,6BAA6B;KAC5B,CAAC;IAsBE,0BAAe,GAAG;QAC7B,MAAM;QACN,OAAO;QACP,OAAO;QACP,OAAO;QACP,MAAM;QACN,aAAa;QACb,WAAW;QACX,SAAS;QACT,OAAO;KACO,CAAC;IAGJ,uBAAY,GAAG,WAAA,SAAS,CAAC;IAsJtC,YAAY;AACd,CAAC,EApqBgB,UAAU,0BAAV,UAAU,QAoqB1B"}
|
package/lib/helpers.js
CHANGED
@@ -577,7 +577,12 @@ var HelpersCore = /** @class */ (function (_super) {
|
|
577
577
|
// console.log(`resolved target from ${targetExisted} = ${resolvedTarget}, isFile: ${targetIsFile}`)
|
578
578
|
if (index_1.Helpers.isSymlinkFileExitedOrUnexisted(targetExisted)) {
|
579
579
|
// Helpers.info(`FIXING TARGET FOR WINDOWS`)
|
580
|
-
|
580
|
+
try {
|
581
|
+
targetExisted = (0, core_imports_2.crossPlatformPath)(core_imports_1.fse.realpathSync(targetExisted));
|
582
|
+
}
|
583
|
+
catch (error) {
|
584
|
+
index_1.Helpers.warn("[tnp-helpers] Error while resolving target for windows link\n target: \"".concat(targetExisted, "\"\n link: \"").concat(linkDest, "\"\n "), true);
|
585
|
+
}
|
581
586
|
// TODO QUICK_FIX on windows you can't create link to link
|
582
587
|
}
|
583
588
|
// targetExisted = path.win32.normalize(targetExisted).replace(/\\$/, '');
|
@@ -1463,14 +1468,10 @@ var HelpersCore = /** @class */ (function (_super) {
|
|
1463
1468
|
callbackTrue: callbackTrue,
|
1464
1469
|
callbackFalse: callbackFalse,
|
1465
1470
|
defaultValue: defaultValue,
|
1466
|
-
})
|
1467
|
-
//#endregion
|
1468
|
-
];
|
1471
|
+
})];
|
1469
1472
|
case 1:
|
1470
1473
|
//#region @backendFunc
|
1471
|
-
return [2 /*return*/, _a.sent()
|
1472
|
-
//#endregion
|
1473
|
-
];
|
1474
|
+
return [2 /*return*/, _a.sent()];
|
1474
1475
|
}
|
1475
1476
|
});
|
1476
1477
|
});
|