taon 19.0.79 → 19.0.81

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 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
- const splited = crossPlatofrmPath(process.argv[1]).split('/');
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
- global.useWorker = !(typeof process.argv.find(a => a.startsWith('-useWorker=false')) !== 'undefined');
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
- const distOnly = (process.argv.includes('-dist'));
64
- const npmOnly = (process.argv.includes('-npm'));
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 (distOnly) {
201
- //#region standalrd dist mode
169
+ if (distExist) {
202
170
  mode = 'dist';
203
- !global.hideLog && setText('- dist only -', true);
204
- process.argv = process.argv.filter(f => !!f);
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
- //#region uknow dist or npm mode
222
- const fs = require('fs');
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);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taon/browser",
3
- "version": "19.0.79",
3
+ "version": "19.0.81",
4
4
  "module": "fesm2022/taon.mjs",
5
5
  "typings": "index.d.ts",
6
6
  "exports": {
package/cli.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export declare const start: (args: any, frameworkName: any, mode: any) => Promise<void>;
2
+ export default start;
package/cli.js CHANGED
@@ -13,4 +13,5 @@ const start = async (args, frameworkName, mode) => {
13
13
  };
14
14
  exports.start = start;
15
15
  // DONT CHANGE THIS FILE!
16
+ exports.default = exports.start;
16
17
  //# sourceMappingURL=cli.js.map
package/cli.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,eAAe;AACf,IAAI,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC;AACxC,KAAK;AACL,KAAK;AAGL,IAAI,OAAO,GAAG,QAAQ,CAAC;AACvB,KAAK;AACL,KAAK;AAGE,MAAM,KAAK,GAAG,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,EAAE;IACvD,MAAO,OAAe,CAAC,IAAI,EAAE,aAAa,EAAE,IAAI,CAAC,CAAC;AACpD,CAAC,CAAC;AAFW,QAAA,KAAK,SAEhB;AACF,yBAAyB"}
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,eAAe;AACf,IAAI,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC;AACxC,KAAK;AACL,KAAK;AAGL,IAAI,OAAO,GAAG,QAAQ,CAAC;AACvB,KAAK;AACL,KAAK;AAGE,MAAM,KAAK,GAAG,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,EAAE;IACvD,MAAO,OAAe,CAAC,IAAI,EAAE,aAAa,EAAE,IAAI,CAAC,CAAC;AACpD,CAAC,CAAC;AAFW,QAAA,KAAK,SAEhB;AACF,yBAAyB;AAEzB,kBAAe,aAAK,CAAC"}
@@ -17,4 +17,4 @@ export declare const PROJECT_NPM_NAME = "taon";
17
17
  /**
18
18
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
19
19
  */
20
- export declare const CURRENT_PACKAGE_VERSION = "19.0.79";
20
+ export declare const CURRENT_PACKAGE_VERSION = "19.0.81";
@@ -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.79';
24
+ exports.CURRENT_PACKAGE_VERSION = '19.0.81';
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.dummy1765144458835 = dummy1765144458835;
4
- function dummy1765144458835() { }
3
+ exports.dummy1765145776937 = dummy1765145776937;
4
+ function dummy1765145776937() { }
5
5
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dummy1765144459593 = dummy1765144459593;
4
- function dummy1765144459593() { }
3
+ exports.dummy1765145777708 = dummy1765145777708;
4
+ function dummy1765145777708() { }
5
5
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taon",
3
- "version": "19.0.79",
3
+ "version": "19.0.81",
4
4
  "scripts": {
5
5
  "mkdocs": "python3 -m mkdocs",
6
6
  "taon init": "taon init",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taon/websql",
3
- "version": "19.0.79",
3
+ "version": "19.0.81",
4
4
  "module": "fesm2022/taon.mjs",
5
5
  "typings": "index.d.ts",
6
6
  "exports": {