tnp 19.0.63 → 19.0.64
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/bin/start.js +216 -216
- package/bin/t +0 -0
- package/bin/t-debug +5 -5
- package/bin/t-debug-brk +4 -4
- package/bin/tnp +0 -0
- package/bin/tnp-debug +5 -5
- package/bin/tnp-debug-brk +4 -4
- package/browser/README.md +24 -24
- package/browser/fesm2022/tnp.mjs +9 -1
- package/browser/fesm2022/tnp.mjs.map +1 -1
- package/browser/lib/build-info._auto-generated_.d.ts +1 -1
- package/browser/lib/options.d.ts +5 -0
- package/browser/package.json +1 -1
- package/cli.js +136299 -114510
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/env/env.angular-node-app.d.ts +1 -0
- package/lib/env/env.angular-node-app.js +3 -2
- package/lib/env/env.angular-node-app.js.map +1 -1
- package/lib/env/env.docs-webapp.d.ts +1 -0
- package/lib/env/env.docs-webapp.js +3 -2
- package/lib/env/env.docs-webapp.js.map +1 -1
- package/lib/env/env.electron-app.d.ts +1 -0
- package/lib/env/env.electron-app.js +3 -2
- package/lib/env/env.electron-app.js.map +1 -1
- package/lib/env/env.mobile-app.d.ts +1 -0
- package/lib/env/env.mobile-app.js +3 -2
- package/lib/env/env.mobile-app.js.map +1 -1
- package/lib/env/env.npm-lib-and-cli-tool.d.ts +1 -0
- package/lib/env/env.npm-lib-and-cli-tool.js +3 -2
- package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -1
- package/lib/env/env.vscode-plugin.d.ts +1 -0
- package/lib/env/env.vscode-plugin.js +3 -2
- package/lib/env/env.vscode-plugin.js.map +1 -1
- package/lib/helpers.js +2 -2
- package/lib/options.d.ts +5 -0
- package/lib/options.js +1 -0
- package/lib/options.js.map +1 -1
- package/lib/project/abstract/artifacts/artifacts-manager.js +6 -0
- package/lib/project/abstract/artifacts/artifacts-manager.js.map +1 -1
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-organization.d.ts +1 -0
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-organization.js +5 -0
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/copy-manager/copy-manager-organization.js.map +1 -0
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/tools/singular-build.js +2 -2
- package/lib/project/abstract/artifacts/npm-lib-and-cli-tool/webpack-backend-compilation.js +2 -2
- package/lib/project/abstract/project.js +6 -0
- package/lib/project/abstract/project.js.map +1 -1
- package/lib/project/abstract/taon-worker/taon.context.d.ts +2 -2
- package/lib/project/abstract/taon-worker/taon.context.js +1 -1
- package/lib/project/abstract/taon-worker/taon.context.js.map +1 -1
- package/lib/project/cli/cli-_GLOBAL_.js +4 -4
- package/lib/project/cli/cli-_GLOBAL_.js.map +1 -1
- package/lib/project/index.js +2 -2
- package/package.json +1 -1
- package/start.backend.js +1 -0
- package/start.backend.js.map +1 -1
- package/tmp-environment.json +9 -4
- package/websql/README.md +24 -24
- package/websql/fesm2022/tnp.mjs +9 -1
- package/websql/fesm2022/tnp.mjs.map +1 -1
- package/websql/lib/build-info._auto-generated_.d.ts +1 -1
- package/websql/lib/options.d.ts +5 -0
- package/websql/package.json +1 -1
- package/lib/env.backend.d.ts +0 -34
- package/lib/env.backend.js +0 -40
- package/lib/env.backend.js.map +0 -1
- package/lib/env.browser.d.ts +0 -34
- package/lib/project/abstract/taon-worker/taon-termina-ui.d.ts +0 -20
- package/lib/project/abstract/taon-worker/taon-termina-ui.js +0 -67
- package/lib/project/abstract/taon-worker/taon-termina-ui.js.map +0 -1
package/bin/start.js
CHANGED
|
@@ -1,218 +1,218 @@
|
|
|
1
1
|
console.log('<<< USING BUNDLED CLI >>>');
|
|
2
|
-
//#region @backend
|
|
3
|
-
//#region quick fixes
|
|
4
|
-
Error.stackTraceLimit = 100;
|
|
5
|
-
global.i0 = {
|
|
6
|
-
defineInjectable: function () { }
|
|
7
|
-
}
|
|
8
|
-
const process= require('process');
|
|
9
|
-
process.removeAllListeners('warning');
|
|
10
|
-
//#endregion
|
|
11
|
-
|
|
12
|
-
//#region resolve constants
|
|
13
|
-
const childprocsecretarg = '-childproc';
|
|
14
|
-
const isWinGitBash = (process.platform === 'win32');
|
|
15
|
-
const procType = (process.argv[1].endsWith('tnp') || process.argv[1].endsWith('taon')) ? 'root'
|
|
16
|
-
: ((process.argv.find(a => a.startsWith(childprocsecretarg)))
|
|
17
|
-
? 'child-of-root'
|
|
18
|
-
: 'child-of-child'
|
|
19
|
-
);
|
|
20
|
-
const debugMode = (process.argv[1].endsWith('-debug') || process.argv[1].endsWith('-debug-brk'))
|
|
21
|
-
global.spinnerInParentProcess = (procType === 'child-of-root');
|
|
22
|
-
const orgArgv = JSON.parse(JSON.stringify(process.argv));
|
|
23
|
-
global.tnpNonInteractive = (typeof process.argv.find(a => a.startsWith('--tnpNonInteractive')) !== 'undefined');
|
|
24
|
-
const spinnerIsDefault = !tnpNonInteractive;
|
|
25
|
-
global.frameworkName = 'tnp';
|
|
26
|
-
|
|
27
|
-
global.globalSystemToolMode = true;
|
|
28
|
-
const verbose = process.argv.includes('-verbose')
|
|
29
|
-
global.hideLog = !verbose;
|
|
30
|
-
global.verboseLevel = 0;
|
|
31
|
-
|
|
32
|
-
global.skipCoreCheck = (typeof process.argv.find(a => a.startsWith('--skipCoreCheck')) !== 'undefined');
|
|
33
|
-
const verboseLevelExists = (typeof process.argv.find(a => a.startsWith('-verbose=')) !== 'undefined');
|
|
34
|
-
global.verboseLevel = (verboseLevelExists ? Number(
|
|
35
|
-
process.argv.find(a => {
|
|
36
|
-
const v = a.startsWith('-verbose=');
|
|
37
|
-
if (v) {
|
|
38
|
-
return v.replace('-verbose=', '');
|
|
39
|
-
}
|
|
40
|
-
})
|
|
41
|
-
) : 0) || 0;
|
|
42
|
-
|
|
43
|
-
if (!verbose && verboseLevelExists) {
|
|
44
|
-
global.hideLog = false;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const spinnerOnInArgs = process.argv.includes('-spinner');
|
|
50
|
-
const spinnerOffInArgs = (process.argv.includes('-spinner=false') || process.argv.includes('-spinner=off'));
|
|
51
|
-
//#endregion
|
|
52
|
-
|
|
53
|
-
//#region clear argument from variables
|
|
54
|
-
process.argv = process.argv.filter(a => !a.startsWith('-spinner'));
|
|
55
|
-
process.argv = process.argv.filter(a => a !== '-childproc');
|
|
56
|
-
process.argv = process.argv.filter(a => a !== '--skipCoreCheck');
|
|
57
|
-
process.argv = process.argv.filter(a => !a.startsWith('-verbose'));
|
|
58
|
-
//#endregion
|
|
59
|
-
|
|
60
|
-
//#region fix argument
|
|
61
|
-
process.argv = process.argv.map(a => {
|
|
62
|
-
if (a === '-websql') {
|
|
63
|
-
return '--websql'
|
|
64
|
-
}
|
|
65
|
-
return a;
|
|
66
|
-
})
|
|
67
|
-
//#endregion
|
|
68
|
-
|
|
69
|
-
//#region variables
|
|
70
|
-
let mode;
|
|
71
|
-
let start;
|
|
72
|
-
let startSpinner = spinnerIsDefault || spinnerOnInArgs;
|
|
73
|
-
if (spinnerOffInArgs) {
|
|
74
|
-
startSpinner = false;
|
|
75
|
-
}
|
|
76
|
-
if (procType === 'child-of-root' || debugMode) {
|
|
77
|
-
startSpinner = false;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
if (verbose || frameworkName === 'tnp' || global.skipCoreCheck) {
|
|
81
|
-
startSpinner = false;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
//#endregion
|
|
85
|
-
|
|
86
|
-
const path = require('path');
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
if (procType === 'child-of-root') {
|
|
90
|
-
global.spinner = {
|
|
91
|
-
start() {
|
|
92
|
-
process.send && process.send('start-spinner')
|
|
93
|
-
},
|
|
94
|
-
stop() {
|
|
95
|
-
process.send && process.send('stop-spinner')
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
if (startSpinner) {
|
|
101
|
-
//#region start spinner in processs
|
|
102
|
-
var ora = require('ora');
|
|
103
|
-
var spinner = ora();
|
|
104
|
-
spinner.start();
|
|
105
|
-
global.spinner = spinner;
|
|
106
|
-
|
|
107
|
-
const child_process = require('child_process');
|
|
108
|
-
const orgArgvForChild = orgArgv.filter(a => !a.startsWith('-spinner'));
|
|
109
|
-
|
|
110
|
-
const env = {
|
|
111
|
-
...process.env,
|
|
112
|
-
FORCE_COLOR: '1'
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
const cwd = process.cwd();
|
|
116
|
-
const argsToCHildProc = (`${orgArgvForChild.slice(2).join(' ')} ${global.verbose ? '-verbose' : ''} ${global.skipCoreCheck ? '--skipCoreCheck' : ''} `
|
|
117
|
-
+ `${spinnerOnInArgs ? '-spinner' : (spinnerOffInArgs ? '-spinner=off' : '')} ${childprocsecretarg}`).split(' ');
|
|
118
|
-
|
|
119
|
-
const proc = child_process.fork(crossPlatofrmPath(__filename), argsToCHildProc, {
|
|
120
|
-
env,
|
|
121
|
-
stdio: [0, 1, 2, 'ipc'],
|
|
122
|
-
cwd,
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
proc.on('exit', (code) => {
|
|
126
|
-
spinner.stop();
|
|
127
|
-
setTimeout(() => {
|
|
128
|
-
process.exit(code);
|
|
129
|
-
})
|
|
130
|
-
});
|
|
131
|
-
|
|
132
|
-
proc.on('message', message => {
|
|
133
|
-
message = (message ? message : '').trimLeft();
|
|
134
|
-
if (message === 'start-spinner') {
|
|
135
|
-
spinner.start();
|
|
136
|
-
} else if (message === 'stop-spinner') {
|
|
137
|
-
spinner.stop();
|
|
138
|
-
} else if (message.startsWith('info::')) {
|
|
139
|
-
setText((message));
|
|
140
|
-
} else if (message.startsWith('success::')) {
|
|
141
|
-
setText((message));
|
|
142
|
-
} else if (message.startsWith('taskstart::')) {
|
|
143
|
-
setText((message));
|
|
144
|
-
} else if (message.startsWith('taskdone::')) {
|
|
145
|
-
setText((message));
|
|
146
|
-
} else if (message.startsWith('error::')) {
|
|
147
|
-
setText((message));
|
|
148
|
-
} else if (message.startsWith('log::')) {
|
|
149
|
-
setText((message), true);
|
|
150
|
-
} else if (message.startsWith('warn::')) {
|
|
151
|
-
setText((message));
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
|
|
155
|
-
// process.stdin.resume(); // not needed ?
|
|
156
|
-
//#endregion
|
|
157
|
-
} else {
|
|
158
|
-
//#region child or child of child
|
|
159
|
-
|
|
160
|
-
//#region uknow dist or npm mode
|
|
161
|
-
const fs = require('fs');
|
|
162
|
-
|
|
163
|
-
const pathToDistRun = path.join(__dirname, '../dist/cli.js');
|
|
164
|
-
const pathToIndexRun = path.join(__dirname, '../cli.js');
|
|
165
|
-
const distExist = fs.existsSync(pathToDistRun);
|
|
166
|
-
|
|
167
|
-
if (distExist) {
|
|
168
|
-
mode = 'dist';
|
|
169
|
-
!global.hideLog && setText('- taon dist -', true);
|
|
170
|
-
// TODO TOOOO MUCH TIME !!!!!!
|
|
171
|
-
start = require(pathToDistRun.replace(/\.js$/g, '')).default;
|
|
172
|
-
} else {
|
|
173
|
-
mode = 'npm';
|
|
174
|
-
!global.hideLog && setText('- npm mode -', true);
|
|
175
|
-
start = require(pathToIndexRun.replace(/\.js$/g, '')).default;
|
|
176
|
-
}
|
|
177
|
-
//#endregion
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
// global.start = start;
|
|
181
|
-
process.argv = process.argv.filter(f => !!f);
|
|
182
|
-
start(process.argv, global.frameworkName, mode);
|
|
183
|
-
//#endregion
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
function crossPlatofrmPath(p) {
|
|
187
|
-
if (isWinGitBash) {
|
|
188
|
-
return p.replace(/\\/g, '/');
|
|
189
|
-
}
|
|
190
|
-
return p;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
function setText(text, toSpiner = false) {
|
|
194
|
-
const spinner = global.spinner;
|
|
195
|
-
if (text) {
|
|
196
|
-
text = text.split('::').slice(1).join('::');
|
|
197
|
-
}
|
|
198
|
-
if (spinner) {
|
|
199
|
-
if (toSpiner) {
|
|
200
|
-
spinner.text = text.replace(/(?:\r\n|\r|\n)/g, ' ');
|
|
201
|
-
} else {
|
|
202
|
-
const wasSpinning = spinner.isSpinning;
|
|
203
|
-
if (wasSpinning) {
|
|
204
|
-
spinner.stop();
|
|
205
|
-
spinner.clear();
|
|
206
|
-
}
|
|
207
|
-
console.log(text);
|
|
208
|
-
if (wasSpinning) {
|
|
209
|
-
spinner.start()
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
} else {
|
|
213
|
-
console.log(text);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
}
|
|
217
|
-
|
|
2
|
+
//#region @backend
|
|
3
|
+
//#region quick fixes
|
|
4
|
+
Error.stackTraceLimit = 100;
|
|
5
|
+
global.i0 = {
|
|
6
|
+
defineInjectable: function () { }
|
|
7
|
+
}
|
|
8
|
+
const process= require('process');
|
|
9
|
+
process.removeAllListeners('warning');
|
|
10
|
+
//#endregion
|
|
11
|
+
|
|
12
|
+
//#region resolve constants
|
|
13
|
+
const childprocsecretarg = '-childproc';
|
|
14
|
+
const isWinGitBash = (process.platform === 'win32');
|
|
15
|
+
const procType = (process.argv[1].endsWith('tnp') || process.argv[1].endsWith('taon')) ? 'root'
|
|
16
|
+
: ((process.argv.find(a => a.startsWith(childprocsecretarg)))
|
|
17
|
+
? 'child-of-root'
|
|
18
|
+
: 'child-of-child'
|
|
19
|
+
);
|
|
20
|
+
const debugMode = (process.argv[1].endsWith('-debug') || process.argv[1].endsWith('-debug-brk'))
|
|
21
|
+
global.spinnerInParentProcess = (procType === 'child-of-root');
|
|
22
|
+
const orgArgv = JSON.parse(JSON.stringify(process.argv));
|
|
23
|
+
global.tnpNonInteractive = (typeof process.argv.find(a => a.startsWith('--tnpNonInteractive')) !== 'undefined');
|
|
24
|
+
const spinnerIsDefault = !tnpNonInteractive;
|
|
25
|
+
global.frameworkName = 'tnp';
|
|
26
|
+
|
|
27
|
+
global.globalSystemToolMode = true;
|
|
28
|
+
const verbose = process.argv.includes('-verbose')
|
|
29
|
+
global.hideLog = !verbose;
|
|
30
|
+
global.verboseLevel = 0;
|
|
31
|
+
|
|
32
|
+
global.skipCoreCheck = (typeof process.argv.find(a => a.startsWith('--skipCoreCheck')) !== 'undefined');
|
|
33
|
+
const verboseLevelExists = (typeof process.argv.find(a => a.startsWith('-verbose=')) !== 'undefined');
|
|
34
|
+
global.verboseLevel = (verboseLevelExists ? Number(
|
|
35
|
+
process.argv.find(a => {
|
|
36
|
+
const v = a.startsWith('-verbose=');
|
|
37
|
+
if (v) {
|
|
38
|
+
return v.replace('-verbose=', '');
|
|
39
|
+
}
|
|
40
|
+
})
|
|
41
|
+
) : 0) || 0;
|
|
42
|
+
|
|
43
|
+
if (!verbose && verboseLevelExists) {
|
|
44
|
+
global.hideLog = false;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
const spinnerOnInArgs = process.argv.includes('-spinner');
|
|
50
|
+
const spinnerOffInArgs = (process.argv.includes('-spinner=false') || process.argv.includes('-spinner=off'));
|
|
51
|
+
//#endregion
|
|
52
|
+
|
|
53
|
+
//#region clear argument from variables
|
|
54
|
+
process.argv = process.argv.filter(a => !a.startsWith('-spinner'));
|
|
55
|
+
process.argv = process.argv.filter(a => a !== '-childproc');
|
|
56
|
+
process.argv = process.argv.filter(a => a !== '--skipCoreCheck');
|
|
57
|
+
process.argv = process.argv.filter(a => !a.startsWith('-verbose'));
|
|
58
|
+
//#endregion
|
|
59
|
+
|
|
60
|
+
//#region fix argument
|
|
61
|
+
process.argv = process.argv.map(a => {
|
|
62
|
+
if (a === '-websql') {
|
|
63
|
+
return '--websql'
|
|
64
|
+
}
|
|
65
|
+
return a;
|
|
66
|
+
})
|
|
67
|
+
//#endregion
|
|
68
|
+
|
|
69
|
+
//#region variables
|
|
70
|
+
let mode;
|
|
71
|
+
let start;
|
|
72
|
+
let startSpinner = spinnerIsDefault || spinnerOnInArgs;
|
|
73
|
+
if (spinnerOffInArgs) {
|
|
74
|
+
startSpinner = false;
|
|
75
|
+
}
|
|
76
|
+
if (procType === 'child-of-root' || debugMode) {
|
|
77
|
+
startSpinner = false;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (verbose || frameworkName === 'tnp' || global.skipCoreCheck) {
|
|
81
|
+
startSpinner = false;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
//#endregion
|
|
85
|
+
|
|
86
|
+
const path = require('path');
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
if (procType === 'child-of-root') {
|
|
90
|
+
global.spinner = {
|
|
91
|
+
start() {
|
|
92
|
+
process.send && process.send('start-spinner')
|
|
93
|
+
},
|
|
94
|
+
stop() {
|
|
95
|
+
process.send && process.send('stop-spinner')
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
if (startSpinner) {
|
|
101
|
+
//#region start spinner in processs
|
|
102
|
+
var ora = require('ora');
|
|
103
|
+
var spinner = ora();
|
|
104
|
+
spinner.start();
|
|
105
|
+
global.spinner = spinner;
|
|
106
|
+
|
|
107
|
+
const child_process = require('child_process');
|
|
108
|
+
const orgArgvForChild = orgArgv.filter(a => !a.startsWith('-spinner'));
|
|
109
|
+
|
|
110
|
+
const env = {
|
|
111
|
+
...process.env,
|
|
112
|
+
FORCE_COLOR: '1'
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
const cwd = process.cwd();
|
|
116
|
+
const argsToCHildProc = (`${orgArgvForChild.slice(2).join(' ')} ${global.verbose ? '-verbose' : ''} ${global.skipCoreCheck ? '--skipCoreCheck' : ''} `
|
|
117
|
+
+ `${spinnerOnInArgs ? '-spinner' : (spinnerOffInArgs ? '-spinner=off' : '')} ${childprocsecretarg}`).split(' ');
|
|
118
|
+
|
|
119
|
+
const proc = child_process.fork(crossPlatofrmPath(__filename), argsToCHildProc, {
|
|
120
|
+
env,
|
|
121
|
+
stdio: [0, 1, 2, 'ipc'],
|
|
122
|
+
cwd,
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
proc.on('exit', (code) => {
|
|
126
|
+
spinner.stop();
|
|
127
|
+
setTimeout(() => {
|
|
128
|
+
process.exit(code);
|
|
129
|
+
})
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
proc.on('message', message => {
|
|
133
|
+
message = (message ? message : '').trimLeft();
|
|
134
|
+
if (message === 'start-spinner') {
|
|
135
|
+
spinner.start();
|
|
136
|
+
} else if (message === 'stop-spinner') {
|
|
137
|
+
spinner.stop();
|
|
138
|
+
} else if (message.startsWith('info::')) {
|
|
139
|
+
setText((message));
|
|
140
|
+
} else if (message.startsWith('success::')) {
|
|
141
|
+
setText((message));
|
|
142
|
+
} else if (message.startsWith('taskstart::')) {
|
|
143
|
+
setText((message));
|
|
144
|
+
} else if (message.startsWith('taskdone::')) {
|
|
145
|
+
setText((message));
|
|
146
|
+
} else if (message.startsWith('error::')) {
|
|
147
|
+
setText((message));
|
|
148
|
+
} else if (message.startsWith('log::')) {
|
|
149
|
+
setText((message), true);
|
|
150
|
+
} else if (message.startsWith('warn::')) {
|
|
151
|
+
setText((message));
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
// process.stdin.resume(); // not needed ?
|
|
156
|
+
//#endregion
|
|
157
|
+
} else {
|
|
158
|
+
//#region child or child of child
|
|
159
|
+
|
|
160
|
+
//#region uknow dist or npm mode
|
|
161
|
+
const fs = require('fs');
|
|
162
|
+
|
|
163
|
+
const pathToDistRun = path.join(__dirname, '../dist/cli.js');
|
|
164
|
+
const pathToIndexRun = path.join(__dirname, '../cli.js');
|
|
165
|
+
const distExist = fs.existsSync(pathToDistRun);
|
|
166
|
+
|
|
167
|
+
if (distExist) {
|
|
168
|
+
mode = 'dist';
|
|
169
|
+
!global.hideLog && setText('- taon dist -', true);
|
|
170
|
+
// TODO TOOOO MUCH TIME !!!!!!
|
|
171
|
+
start = require(pathToDistRun.replace(/\.js$/g, '')).default;
|
|
172
|
+
} else {
|
|
173
|
+
mode = 'npm';
|
|
174
|
+
!global.hideLog && setText('- npm mode -', true);
|
|
175
|
+
start = require(pathToIndexRun.replace(/\.js$/g, '')).default;
|
|
176
|
+
}
|
|
177
|
+
//#endregion
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
// global.start = start;
|
|
181
|
+
process.argv = process.argv.filter(f => !!f);
|
|
182
|
+
start(process.argv, global.frameworkName, mode);
|
|
183
|
+
//#endregion
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
function crossPlatofrmPath(p) {
|
|
187
|
+
if (isWinGitBash) {
|
|
188
|
+
return p.replace(/\\/g, '/');
|
|
189
|
+
}
|
|
190
|
+
return p;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
function setText(text, toSpiner = false) {
|
|
194
|
+
const spinner = global.spinner;
|
|
195
|
+
if (text) {
|
|
196
|
+
text = text.split('::').slice(1).join('::');
|
|
197
|
+
}
|
|
198
|
+
if (spinner) {
|
|
199
|
+
if (toSpiner) {
|
|
200
|
+
spinner.text = text.replace(/(?:\r\n|\r|\n)/g, ' ');
|
|
201
|
+
} else {
|
|
202
|
+
const wasSpinning = spinner.isSpinning;
|
|
203
|
+
if (wasSpinning) {
|
|
204
|
+
spinner.stop();
|
|
205
|
+
spinner.clear();
|
|
206
|
+
}
|
|
207
|
+
console.log(text);
|
|
208
|
+
if (wasSpinning) {
|
|
209
|
+
spinner.start()
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
} else {
|
|
213
|
+
console.log(text);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
}
|
|
217
|
+
|
|
218
218
|
//#endregion
|
package/bin/t
CHANGED
|
File without changes
|
package/bin/t-debug
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
#!/usr/bin/env -S node --inspect --stack-trace-limit=10000 --no-deprecation
|
|
2
|
-
//#region @backend
|
|
3
|
-
// --stack-trace-limit=10000
|
|
4
|
-
require('./start');
|
|
5
|
-
//#endregion
|
|
1
|
+
#!/usr/bin/env -S node --inspect --stack-trace-limit=10000 --no-deprecation
|
|
2
|
+
//#region @backend
|
|
3
|
+
// --stack-trace-limit=10000
|
|
4
|
+
require('./start');
|
|
5
|
+
//#endregion
|
package/bin/t-debug-brk
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env -S node --inspect-brk --stack-trace-limit=10000 --no-deprecation
|
|
2
|
-
//#region @backend
|
|
3
|
-
require('./start');
|
|
4
|
-
//#endregion
|
|
1
|
+
#!/usr/bin/env -S node --inspect-brk --stack-trace-limit=10000 --no-deprecation
|
|
2
|
+
//#region @backend
|
|
3
|
+
require('./start');
|
|
4
|
+
//#endregion
|
package/bin/tnp
CHANGED
|
File without changes
|
package/bin/tnp-debug
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
#!/usr/bin/env -S node --inspect --stack-trace-limit=10000 --no-deprecation
|
|
2
|
-
//#region @backend
|
|
3
|
-
// --stack-trace-limit=10000
|
|
4
|
-
require('./start');
|
|
5
|
-
//#endregion
|
|
1
|
+
#!/usr/bin/env -S node --inspect --stack-trace-limit=10000 --no-deprecation
|
|
2
|
+
//#region @backend
|
|
3
|
+
// --stack-trace-limit=10000
|
|
4
|
+
require('./start');
|
|
5
|
+
//#endregion
|
package/bin/tnp-debug-brk
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env -S node --inspect-brk --stack-trace-limit=10000 --no-deprecation
|
|
2
|
-
//#region @backend
|
|
3
|
-
require('./start');
|
|
4
|
-
//#endregion
|
|
1
|
+
#!/usr/bin/env -S node --inspect-brk --stack-trace-limit=10000 --no-deprecation
|
|
2
|
+
//#region @backend
|
|
3
|
+
require('./start');
|
|
4
|
+
//#endregion
|
package/browser/README.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
# MyLib
|
|
2
|
-
|
|
3
|
-
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
|
|
4
|
-
|
|
5
|
-
## Code scaffolding
|
|
6
|
-
|
|
7
|
-
Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
|
|
8
|
-
> Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
-
|
|
10
|
-
## Build
|
|
11
|
-
|
|
12
|
-
Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
-
|
|
14
|
-
## Publishing
|
|
15
|
-
|
|
16
|
-
After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
|
|
17
|
-
|
|
18
|
-
## Running unit tests
|
|
19
|
-
|
|
20
|
-
Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
-
|
|
22
|
-
## Further help
|
|
23
|
-
|
|
24
|
-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
1
|
+
# MyLib
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
|
|
8
|
+
> Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
+
|
|
10
|
+
## Build
|
|
11
|
+
|
|
12
|
+
Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
+
|
|
14
|
+
## Publishing
|
|
15
|
+
|
|
16
|
+
After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
|
|
17
|
+
|
|
18
|
+
## Running unit tests
|
|
19
|
+
|
|
20
|
+
Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
+
|
|
22
|
+
## Further help
|
|
23
|
+
|
|
24
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
package/browser/fesm2022/tnp.mjs
CHANGED
|
@@ -25,7 +25,7 @@ const PROJECT_NPM_NAME = 'tnp';
|
|
|
25
25
|
/**
|
|
26
26
|
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
27
27
|
*/
|
|
28
|
-
const CURRENT_PACKAGE_VERSION = '19.0.
|
|
28
|
+
const CURRENT_PACKAGE_VERSION = '19.0.64';
|
|
29
29
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
30
30
|
|
|
31
31
|
//#region imports
|
|
@@ -596,6 +596,7 @@ const EnvOptionsDummyWithAllProps = EnvOptions.from({
|
|
|
596
596
|
end: '-',
|
|
597
597
|
only: '-',
|
|
598
598
|
start: '-',
|
|
599
|
+
skipReleased: '-',
|
|
599
600
|
},
|
|
600
601
|
ports: {},
|
|
601
602
|
release: {
|
|
@@ -2033,6 +2034,13 @@ class Project extends BaseProject {
|
|
|
2033
2034
|
/* */
|
|
2034
2035
|
/* */
|
|
2035
2036
|
/* */
|
|
2037
|
+
/* */
|
|
2038
|
+
/* */
|
|
2039
|
+
/* */
|
|
2040
|
+
/* */
|
|
2041
|
+
/* */
|
|
2042
|
+
/* */
|
|
2043
|
+
/* */
|
|
2036
2044
|
return (void 0);
|
|
2037
2045
|
}
|
|
2038
2046
|
//#endregion
|