taon 19.0.79 → 19.0.80
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 +20 -81
- package/browser/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/ui/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
- package/package.json +1 -1
- package/websql/package.json +1 -1
package/bin/start.js
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
//#region @backend
|
|
2
|
-
|
|
3
2
|
//#region quick fixes
|
|
4
|
-
// console.log('-- FIREDEV started... please wait. --')
|
|
5
|
-
// require('cache-require-paths');
|
|
6
3
|
Error.stackTraceLimit = 100;
|
|
7
|
-
// require('cache-require-paths');
|
|
8
|
-
// console.log(global.i0);
|
|
9
|
-
// process.exit(0)
|
|
10
|
-
|
|
11
|
-
// TODO QUIK_FIX
|
|
12
4
|
global.i0 = {
|
|
13
5
|
defineInjectable: function () { }
|
|
14
6
|
}
|
|
@@ -34,17 +26,13 @@ global.spinnerInParentProcess = (procType === 'child-of-root');
|
|
|
34
26
|
const orgArgv = JSON.parse(JSON.stringify(process.argv));
|
|
35
27
|
global.tnpNonInteractive = (typeof process.argv.find(a => a.startsWith('--tnpNonInteractive')) !== 'undefined');
|
|
36
28
|
const spinnerIsDefault = !tnpNonInteractive;
|
|
37
|
-
|
|
38
|
-
global.frameworkName = 'taon';
|
|
29
|
+
global.frameworkName = 'taon'
|
|
39
30
|
|
|
40
|
-
global.restartWorker = (typeof (process.argv.find(a => a.startsWith('-restartWorker'))) !== 'undefined');
|
|
41
|
-
global.reinitDb = (typeof (process.argv.find(a => a.startsWith('-reinitDb'))) !== 'undefined');
|
|
42
31
|
global.globalSystemToolMode = true;
|
|
43
32
|
const verbose = process.argv.includes('-verbose')
|
|
44
33
|
global.hideLog = !verbose;
|
|
45
34
|
global.verboseLevel = 0;
|
|
46
|
-
|
|
47
|
-
global.useWebpackBackendBuild = (typeof process.argv.find(a => a.startsWith('-webpack')) !== 'undefined');
|
|
35
|
+
|
|
48
36
|
global.skipCoreCheck = (typeof process.argv.find(a => a.startsWith('--skipCoreCheck')) !== 'undefined');
|
|
49
37
|
const verboseLevelExists = (typeof process.argv.find(a => a.startsWith('-verbose=')) !== 'undefined');
|
|
50
38
|
global.verboseLevel = (verboseLevelExists ? Number(
|
|
@@ -60,8 +48,8 @@ if (!verbose && verboseLevelExists) {
|
|
|
60
48
|
global.hideLog = false;
|
|
61
49
|
}
|
|
62
50
|
|
|
63
|
-
|
|
64
|
-
|
|
51
|
+
|
|
52
|
+
|
|
65
53
|
const spinnerOnInArgs = process.argv.includes('-spinner');
|
|
66
54
|
const spinnerOffInArgs = (process.argv.includes('-spinner=false') || process.argv.includes('-spinner=off'));
|
|
67
55
|
//#endregion
|
|
@@ -70,8 +58,6 @@ const spinnerOffInArgs = (process.argv.includes('-spinner=false') || process.arg
|
|
|
70
58
|
process.argv = process.argv.filter(a => !a.startsWith('-spinner'));
|
|
71
59
|
process.argv = process.argv.filter(a => a !== '-childproc');
|
|
72
60
|
process.argv = process.argv.filter(a => a !== '--skipCoreCheck');
|
|
73
|
-
process.argv = process.argv.filter(a => a !== '-dist');
|
|
74
|
-
process.argv = process.argv.filter(a => a !== '-npm');
|
|
75
61
|
process.argv = process.argv.filter(a => !a.startsWith('-verbose'));
|
|
76
62
|
//#endregion
|
|
77
63
|
|
|
@@ -95,12 +81,6 @@ if (procType === 'child-of-root' || debugMode) {
|
|
|
95
81
|
startSpinner = false;
|
|
96
82
|
}
|
|
97
83
|
|
|
98
|
-
// if (startSpinner) {
|
|
99
|
-
// const inspector = require('inspector');
|
|
100
|
-
// isNodeDebuggerEnabled = (inspector.url() !== undefined);
|
|
101
|
-
// startSpinner = !isNodeDebuggerEnabled;
|
|
102
|
-
// }
|
|
103
|
-
|
|
104
84
|
if (verbose || frameworkName === 'tnp' || global.skipCoreCheck) {
|
|
105
85
|
startSpinner = false;
|
|
106
86
|
}
|
|
@@ -109,24 +89,6 @@ if (verbose || frameworkName === 'tnp' || global.skipCoreCheck) {
|
|
|
109
89
|
|
|
110
90
|
const path = require('path');
|
|
111
91
|
|
|
112
|
-
// console.log({
|
|
113
|
-
// ppid: process.ppid,
|
|
114
|
-
// pid: process.pid,
|
|
115
|
-
// procType
|
|
116
|
-
// })
|
|
117
|
-
|
|
118
|
-
// if(procType !== 'root') {
|
|
119
|
-
// var fn = process.stdout.write
|
|
120
|
-
|
|
121
|
-
// function write() {
|
|
122
|
-
// if((arguments.length > 0) && typeof arguments[0] === 'string') {
|
|
123
|
-
// arguments[0] = arguments[0].trim();
|
|
124
|
-
// }
|
|
125
|
-
// fn.apply(process.stdout, arguments);
|
|
126
|
-
// }
|
|
127
|
-
|
|
128
|
-
// process.stdout.write = write;
|
|
129
|
-
// }
|
|
130
92
|
|
|
131
93
|
if (procType === 'child-of-root') {
|
|
132
94
|
global.spinner = {
|
|
@@ -143,6 +105,7 @@ if (startSpinner) {
|
|
|
143
105
|
//#region start spinner in processs
|
|
144
106
|
spinner.start();
|
|
145
107
|
|
|
108
|
+
|
|
146
109
|
const child_process = require('child_process');
|
|
147
110
|
const orgArgvForChild = orgArgv.filter(a => !a.startsWith('-spinner'));
|
|
148
111
|
|
|
@@ -196,49 +159,25 @@ if (startSpinner) {
|
|
|
196
159
|
} else {
|
|
197
160
|
//#region child or child of child
|
|
198
161
|
|
|
162
|
+
//#region uknow dist or npm mode
|
|
163
|
+
const fs = require('fs');
|
|
164
|
+
|
|
165
|
+
const pathToDistRun = path.join(__dirname, '../dist/cli.js');
|
|
166
|
+
const pathToIndexRun = path.join(__dirname, '../cli.js');
|
|
167
|
+
const distExist = fs.existsSync(pathToDistRun);
|
|
199
168
|
|
|
200
|
-
if (
|
|
201
|
-
//#region standalrd dist mode
|
|
169
|
+
if (distExist) {
|
|
202
170
|
mode = 'dist';
|
|
203
|
-
!global.hideLog && setText('- dist
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
const pathToDistRun = path.join(__dirname, '../dist/cli.js');
|
|
207
|
-
start = require(pathToDistRun.replace(/\.js$/g, '')).start;
|
|
208
|
-
//#endregion
|
|
209
|
-
} else if (npmOnly) {
|
|
210
|
-
//#region npm mode (project as installable package)
|
|
211
|
-
mode = 'npm';
|
|
212
|
-
!global.hideLog && setText('- npm global only -', true);
|
|
213
|
-
// =========================== only dist ============================
|
|
214
|
-
process.argv = process.argv.filter(a => a !== '-npm');
|
|
215
|
-
process.argv = process.argv.filter(f => !!f);
|
|
216
|
-
|
|
217
|
-
const pathToDistRun = path.join(__dirname, '../cli.js');
|
|
218
|
-
start = require(pathToDistRun.replace(/\.js$/g, '')).start;
|
|
219
|
-
//#endregion
|
|
171
|
+
!global.hideLog && setText('- taon dist -', true);
|
|
172
|
+
// TODO TOOOO MUCH TIME !!!!!!
|
|
173
|
+
start = require(pathToDistRun.replace(/\.js$/g, '')).default;
|
|
220
174
|
} else {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
const pathToDistRun = path.join(__dirname, '../dist/cli.js');
|
|
225
|
-
const pathToIndexRun = path.join(__dirname, '../cli.js');
|
|
226
|
-
const distExist = fs.existsSync(pathToDistRun);
|
|
227
|
-
|
|
228
|
-
if (distExist) {
|
|
229
|
-
// console.log('USE /dist/cli.js')
|
|
230
|
-
mode = 'dist';
|
|
231
|
-
!global.hideLog && setText('- taon dist -', true);
|
|
232
|
-
// TODO TOOOO MUCH TIME !!!!!!
|
|
233
|
-
start = require(pathToDistRun.replace(/\.js$/g, '')).start;
|
|
234
|
-
} else {
|
|
235
|
-
// console.log('USE /cli.js')
|
|
236
|
-
mode = 'npm';
|
|
237
|
-
!global.hideLog && setText('- npm mode -', true);
|
|
238
|
-
start = require(pathToIndexRun.replace(/\.js$/g, '')).start;
|
|
239
|
-
}
|
|
240
|
-
//#endregion
|
|
175
|
+
mode = 'npm';
|
|
176
|
+
!global.hideLog && setText('- npm mode -', true);
|
|
177
|
+
start = require(pathToIndexRun.replace(/\.js$/g, '')).default;
|
|
241
178
|
}
|
|
179
|
+
//#endregion
|
|
180
|
+
|
|
242
181
|
|
|
243
182
|
// global.start = start;
|
|
244
183
|
process.argv = process.argv.filter(f => !!f);
|
package/browser/package.json
CHANGED
|
@@ -21,6 +21,6 @@ exports.PROJECT_NPM_NAME = 'taon';
|
|
|
21
21
|
/**
|
|
22
22
|
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
23
23
|
*/
|
|
24
|
-
exports.CURRENT_PACKAGE_VERSION = '19.0.
|
|
24
|
+
exports.CURRENT_PACKAGE_VERSION = '19.0.80';
|
|
25
25
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
26
26
|
//# sourceMappingURL=build-info._auto-generated_.js.map
|
package/lib/ui/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
3
|
+
exports.dummy1765145270330 = dummy1765145270330;
|
|
4
|
+
function dummy1765145270330() { }
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
3
|
+
exports.dummy1765145271099 = dummy1765145271099;
|
|
4
|
+
function dummy1765145271099() { }
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED