tnp-core 19.0.36 → 19.0.37

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.
Files changed (54) hide show
  1. package/browser/fesm2022/tnp-core.mjs +0 -19
  2. package/browser/fesm2022/tnp-core.mjs.map +1 -1
  3. package/browser/package.json +1 -1
  4. package/cli.backend.js +2 -2
  5. package/client/package.json +1 -1
  6. package/lib/build-info._auto-generated_.d.ts +1 -1
  7. package/lib/build-info._auto-generated_.js +1 -1
  8. package/lib/env/env.angular-node-app.d.ts +13 -0
  9. package/lib/env/env.angular-node-app.js +19 -0
  10. package/lib/env/env.angular-node-app.js.map +1 -0
  11. package/lib/env/env.electron-app.d.ts +13 -0
  12. package/lib/env/env.electron-app.js +19 -0
  13. package/lib/env/env.electron-app.js.map +1 -0
  14. package/lib/env/env.mobile-app.d.ts +13 -0
  15. package/lib/env/env.mobile-app.js +19 -0
  16. package/lib/env/env.mobile-app.js.map +1 -0
  17. package/lib/env/env.npm-lib-and-cli-tool.d.ts +13 -0
  18. package/lib/env/env.npm-lib-and-cli-tool.js +19 -0
  19. package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -0
  20. package/lib/env/env.vscode-plugin.d.ts +13 -0
  21. package/lib/env/env.vscode-plugin.js +19 -0
  22. package/lib/env/env.vscode-plugin.js.map +1 -0
  23. package/lib/env/index.d.ts +5 -0
  24. package/lib/env/index.js +22 -0
  25. package/lib/env/index.js.map +1 -0
  26. package/lib/node-chalk-mock.js +2 -2
  27. package/lib/node-path-mock.js +2 -2
  28. package/lib/required-global-npm-packages.d.ts +0 -4
  29. package/lib/required-global-npm-packages.js +0 -19
  30. package/lib/required-global-npm-packages.js.map +1 -1
  31. package/package.json +1 -1
  32. package/tmp-environment.json +4 -10
  33. package/websql/fesm2022/tnp-core.mjs +0 -19
  34. package/websql/fesm2022/tnp-core.mjs.map +1 -1
  35. package/websql/package.json +1 -1
  36. package/client/README.md +0 -24
  37. package/client/fesm2022/tnp-core.mjs +0 -6442
  38. package/client/fesm2022/tnp-core.mjs.map +0 -1
  39. package/client/index.d.ts +0 -6
  40. package/client/lib/core-cli.d.ts +0 -4
  41. package/client/lib/core-config.d.ts +0 -6
  42. package/client/lib/core-imports.d.ts +0 -61
  43. package/client/lib/core-models.d.ts +0 -487
  44. package/client/lib/framework-name.d.ts +0 -3
  45. package/client/lib/helpers-isomorphic.d.ts +0 -28
  46. package/client/lib/helpers-messages.d.ts +0 -49
  47. package/client/lib/helpers.d.ts +0 -185
  48. package/client/lib/index.d.ts +0 -12
  49. package/client/lib/node-chalk-mock.d.ts +0 -3
  50. package/client/lib/node-path-mock.d.ts +0 -26
  51. package/client/lib/progress-data.d.ts +0 -19
  52. package/client/lib/required-global-npm-packages.d.ts +0 -10
  53. package/client/lib/utils.d.ts +0 -388
  54. package/client/public-api.d.ts +0 -2
@@ -1,61 +0,0 @@
1
- // @ts-nocheck
2
- import * as _ from 'lodash';
3
- import * as q from 'q';
4
- import * as moment from 'moment';
5
- import * as dateformat from 'dateformat';
6
- import { Chalk } from 'chalk';
7
- import * as json5 from 'json5';
8
- import type jQueryType from 'jquery';
9
- import type * as pathBaseType from 'path';
10
- import type * as globBaseType from 'glob';
11
- import type * as fseBaseType from 'fs-extra';
12
- import type * as osBaseType from 'os';
13
- import type * as child_processType from 'child_process';
14
- import type * as httpBaseType from 'http';
15
- import type * as httpsBaseType from 'https';
16
- import type * as fkillBaseType from 'fkill';
17
- import type * as psListBaseType from 'ps-list';
18
- import type * as netBaseType from 'net';
19
- import type * as spawnBaseType from 'cross-spawn';
20
- import type * as fgBaseType from 'fast-glob';
21
- import type { minimatch as minimatchBaseType } from 'minimatch';
22
- import type * as rimrafBaseType from 'rimraf';
23
- import type * as chokidarBaseType from 'chokidar';
24
- import type * as mkdirpBaseType from 'mkdirp';
25
- import type * as ncpBaseType from 'copy-paste';
26
- import type * as psBaseType from 'ps-node';
27
- declare let $: jQueryType;
28
- declare let path: typeof pathBaseType;
29
- declare let chalk: Chalk;
30
- declare let glob: typeof globBaseType;
31
- declare let fse: typeof fseBaseType;
32
- declare let os: typeof osBaseType;
33
- declare let child_process: typeof child_processType;
34
- declare let http: typeof httpBaseType;
35
- declare let https: typeof httpsBaseType;
36
- /**
37
- * check if the current process is elevated
38
- * - sudo in unix/macos
39
- * - admin in windows
40
- */
41
- declare let isElevated: () => Promise<boolean>;
42
- declare let fkill: typeof fkillBaseType;
43
- declare let psList: typeof psListBaseType;
44
- declare let net: typeof netBaseType;
45
- declare let spawn: typeof spawnBaseType;
46
- declare let minimatch: typeof minimatchBaseType;
47
- declare let rimraf: typeof rimrafBaseType;
48
- declare let chokidar: typeof chokidarBaseType;
49
- declare let mkdirp: typeof mkdirpBaseType;
50
- declare let ncp: typeof ncpBaseType;
51
- declare let ps: typeof psBaseType;
52
- declare let fg: typeof fgBaseType;
53
- /**
54
- * transform unix path to win32 path
55
- */
56
- declare const win32Path: (p: string) => string;
57
- /**
58
- * This funciton will replace // to /
59
- */
60
- declare const crossPlatformPath: (pathStringOrPathParts: string | string[]) => string;
61
- export { _, q, moment, dateformat, crossPlatformPath, win32Path, path, chalk, json5, $, glob, fse, os, child_process, http, https, isElevated, fkill, psList, spawn, minimatch, fg, chokidar, mkdirp, ncp, rimraf, net, ps, };
@@ -1,487 +0,0 @@
1
- // @ts-nocheck
2
- import type { ChildProcess } from 'child_process';
3
- export declare namespace CoreModels {
4
- export type Package = {
5
- name: string;
6
- version?: string;
7
- installType?: InstalationType;
8
- };
9
- export type NpmInstallOptions = {
10
- pkg?: CoreModels.Package;
11
- /**
12
- * false by default
13
- */
14
- silent?: boolean;
15
- /**
16
- * false by default
17
- */
18
- useYarn?: boolean;
19
- /**
20
- * false by default
21
- */
22
- force?: boolean;
23
- /**
24
- * Reason for installing package(s)
25
- */
26
- reason?: string;
27
- /**
28
- * true by default
29
- */
30
- removeYarnOrPackageJsonLock?: boolean;
31
- /**
32
- * false by default
33
- */
34
- generateYarnOrPackageJsonLock?: boolean;
35
- /**
36
- * false by default
37
- */
38
- skipRemovingNodeModules?: boolean;
39
- };
40
- export type InstalationType = '-g' | '--save' | '--save-dev' | 'remove';
41
- export const InstalationTypeArr: string[];
42
- export type ReleaseVersionType = 'major' | 'minor' | 'patch';
43
- export type PreReleaseVersionTag = 'alpha' | 'beta' | 'rc' | 'next';
44
- export const NpmSpecialVersions: string[];
45
- export type PROGRESS_DATA_TYPE = 'info' | 'error' | 'warning' | 'event';
46
- /**
47
- * Available application environments.
48
- */
49
- export const EnvironmentName: Readonly<{
50
- /**
51
- * Default environment, typically for artifact without application
52
- * or for storing common data
53
- */
54
- __: "__";
55
- /**
56
- * Local development environment, typically the developer's machine.
57
- */
58
- LOCALHOST: "localhost";
59
- /**
60
- * Development environment used by engineers to deploy and test new features.
61
- */
62
- DEV: "dev";
63
- /**
64
- * Staging environment used for final validations before production.
65
- */
66
- STAGE: "stage";
67
- /**
68
- * Production environment serving live users.
69
- */
70
- PROD: "prod";
71
- /**
72
- * Automated test environment for running unit, integration, or automated tests.
73
- */
74
- TEST: "test";
75
- /**
76
- * Quality assurance environment designated for manual and exploratory testing.
77
- */
78
- QA: "qa";
79
- /**
80
- * Sandbox environment for experimenting and integration without affecting other environments.
81
- */
82
- SANDBOX: "sandbox";
83
- /**
84
- * User Acceptance Testing environment where clients or stakeholders validate the release candidate.
85
- */
86
- UAT: "uat";
87
- /**
88
- * Pre-production environment, closely mirroring production for final testing and validation.
89
- */
90
- PREPROD: "preprod";
91
- /**
92
- * Demonstration environment specifically configured for client presentations and demos.
93
- */
94
- DEMO: "demo";
95
- /**
96
- * Documentation environment for hosting and managing project documentation.
97
- */
98
- DOCS: "docs";
99
- /**
100
- * Demonstration environment ONLY html files, typically used for static pages or documentation.
101
- * This environment is not intended for dynamic content or server-side processing.
102
- * Perfect to github pages or similar.
103
- * It is not intended for production use and should not be used for any critical applications or services.
104
- */
105
- STATIC_PAGES: "static-pages";
106
- /**
107
- * Continuous Integration environment used by CI/CD pipelines for automated builds and deployments.
108
- */
109
- CI: "ci";
110
- /**
111
- * Training environment dedicated to internal team onboarding and training activities.
112
- */
113
- TRAINING: "training";
114
- }>;
115
- export type EnvironmentNameTaon = (typeof EnvironmentName)[keyof typeof EnvironmentName];
116
- export type PUSHTYPE = 'feat' | 'chore' | 'feature' | 'refactor' | 'perf' | 'styles' | 'ci' | 'build' | 'fix' | 'bugfix' | 'release' | 'docs';
117
- /**
118
- * @deprecated
119
- */
120
- export type UIFramework = 'bootstrap' | 'material' | 'ionic';
121
- export type FrameworkVersion = 'v1' | 'v2' | 'v3' | 'v4' | 'v16' | 'v18' | 'v19' | 'v20' | 'v21' | 'v22';
122
- export type CutableFileExt = 'scss' | 'css' | 'less' | 'sass' | 'html' | 'ts' | 'tsx' | 'js';
123
- export type ImageFileExtension = 'jpg' | 'jpeg' | 'png' | 'svg';
124
- export const ImageFileExtensionArr: CoreModels.ImageFileExtension[];
125
- export type FileExtension = 'json' | 'html' | ImageFileExtension | 'txt' | 'md' | CutableFileExt;
126
- export type HttpMethod = 'get' | 'post' | 'put' | 'delete' | 'patch' | 'head' | 'jsonp';
127
- export type ParamType = 'Path' | 'Query' | 'Cookie' | 'Header' | 'Body';
128
- export type TsUsage = 'import' | 'export';
129
- export type BaseProjectType = 'typescript' | 'angular' | 'angular-lib' | 'unknown' | 'unknown-npm-project';
130
- export const BaseProjectTypeArr: string[];
131
- export type LibType = BaseProjectType | 'isomorphic-lib' | 'container' | 'unknown-npm-project';
132
- /**
133
- * @deprecated
134
- */
135
- export type NewFactoryType = LibType | 'model' | 'single-file-project';
136
- /**
137
- * @deprecated
138
- */
139
- export type CoreLibCategory = LibType | 'common';
140
- export type FileEvent = 'created' | 'changed' | 'removed' | 'rename';
141
- /**
142
- * @deprecated
143
- */
144
- export type OutFolder = 'dist' | 'browser';
145
- export type DatabaseType = ':inmemory' | 'mysql' | 'sqljs';
146
- export interface UploadedBackendFile {
147
- data: any;
148
- encoding: string;
149
- md5: string;
150
- tempFilePath: string;
151
- mimetype: ContentType;
152
- mv: (path: any, callback: any) => any;
153
- name: string;
154
- truncated: boolean;
155
- }
156
- /**
157
- * @deprecated
158
- */
159
- export interface ExecuteOptions {
160
- /** Extract string from line */
161
- extractFromLine?: (string | Function)[];
162
- /**
163
- * Modify output line by line
164
- */
165
- outputLineReplace?: (outputLine: string) => string;
166
- resolvePromiseMsg?: {
167
- stdout?: string | string[];
168
- stderr?: string | string[];
169
- };
170
- resolvePromiseMsgCallback?: {
171
- stdout?: () => any;
172
- stderr?: () => any;
173
- exitCode?: (exitCode: number) => any;
174
- };
175
- prefix?: string;
176
- detach?: boolean;
177
- /**
178
- * Try command again after fail after n miliseconds
179
- */
180
- tryAgainWhenFailAfter?: number;
181
- /**
182
- * TODO @LAST implement this
183
- *
184
- * Output from processe with this key
185
- * will not be displayed twice when
186
- * 2 processes are running at the same time
187
- */
188
- similarProcessKey?: string;
189
- /**
190
- * Use big buffer for big webpack logs
191
- */
192
- biggerBuffer?: boolean;
193
- askToTryAgainOnError?: boolean;
194
- onChildProcessChange?: (childProcess: ChildProcess) => void;
195
- exitOnErrorCallback?: (code: number) => void;
196
- /**
197
- * From displaying in console
198
- */
199
- hideOutput?: {
200
- stdout?: boolean;
201
- stderr?: boolean;
202
- acceptAllExitCodeAsSuccess?: boolean;
203
- };
204
- outputBuffer?: string[];
205
- outputBufferMaxSize?: number;
206
- }
207
- /**
208
- * @deprecated
209
- */
210
- export interface RunOptions extends ExecuteOptions {
211
- showCommand?: boolean;
212
- /**
213
- * Show process output
214
- */
215
- output?: boolean;
216
- silence?: boolean;
217
- stdio?: any;
218
- cwd?: string;
219
- }
220
- export const mimeTypes: {
221
- readonly '.aac': "audio/aac";
222
- readonly '.abw': "application/x-abiword";
223
- readonly '.arc': "application/x-freearc";
224
- readonly '.avi': "video/x-msvideo";
225
- readonly '.azw': "application/vnd.amazon.ebook";
226
- readonly '.bin': "application/octet-stream";
227
- readonly '.bmp': "image/bmp";
228
- readonly '.bz': "application/x-bzip";
229
- readonly '.bz2': "application/x-bzip2";
230
- readonly '.csh': "application/x-csh";
231
- readonly '.css': "text/css";
232
- readonly '.csv': "text/csv";
233
- readonly '.doc': "application/msword";
234
- readonly '.docx': "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
235
- readonly '.eot': "application/vnd.ms-fontobject";
236
- readonly '.epub': "application/epub+zip";
237
- readonly '.gz': "application/gzip";
238
- readonly '.gif': "image/gif";
239
- readonly '.htm': "text/html";
240
- readonly '.html': "text/html";
241
- readonly '.ico': "image/vnd.microsoft.icon";
242
- readonly '.ics': "text/calendar";
243
- readonly '.jar': "application/java-archive";
244
- readonly '.jpeg': "image/jpeg";
245
- readonly '.jpg': "image/jpeg";
246
- readonly '.js': "text/javascript";
247
- readonly '.json': "application/json";
248
- readonly '.jsonld': "application/ld+json";
249
- readonly '.mid': "application/midi";
250
- readonly '.midi': "application/midi";
251
- readonly '.mjs': "text/javascript";
252
- readonly '.mp3': "audio/mpeg";
253
- readonly '.mp4': "video/mp4";
254
- readonly '.mpeg': "video/mpeg";
255
- readonly '.mpkg': "application/vnd.apple.installer+xml";
256
- readonly '.odp': "application/vnd.oasis.opendocument.presentation";
257
- readonly '.ods': "application/vnd.oasis.opendocument.spreadsheet";
258
- readonly '.odt': "application/vnd.oasis.opendocument.text";
259
- readonly '.oga': "audio/ogg";
260
- readonly '.ogg': "audio/ogg";
261
- readonly '.ogv': "video/ogg";
262
- readonly '.ogx': "application/ogg";
263
- readonly '.opus': "audio/opus";
264
- readonly '.otf': "font/otf";
265
- readonly '.png': "image/png";
266
- readonly '.pdf': "application/pdf";
267
- readonly '.php': "application/php";
268
- readonly '.ppt': "application/vnd.ms-powerpoint";
269
- readonly '.pptx': "application/vnd.openxmlformats-officedocument.presentationml.presentation";
270
- readonly '.rar': "application/vnd.rar";
271
- readonly '.rtf': "application/rtf";
272
- readonly '.sh': "application/x-sh";
273
- readonly '.svg': "image/svg+xml";
274
- readonly '.swf': "application/x-shockwave-flash";
275
- readonly '.tar': "application/x-tar";
276
- readonly '.tif': "image/tiff";
277
- readonly '.tiff': "image/tiff";
278
- readonly '.ts': "video/mp2t";
279
- readonly '.ttf': "font/ttf";
280
- readonly '.txt': "text/plain";
281
- readonly '.vsd': "application/vnd.visio";
282
- readonly '.wav': "audio/wav";
283
- readonly '.weba': "audio/webm";
284
- readonly '.webm': "video/webm";
285
- readonly '.webp': "image/webp";
286
- readonly '.woff': "font/woff";
287
- readonly '.woff2': "font/woff2";
288
- readonly '.xhtml': "application/xhtml+xml";
289
- readonly '.xls': "application/vnd.ms-excel";
290
- readonly '.xlsx': "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
291
- readonly '.xml': "application/xml";
292
- readonly '.xul': "application/vnd.mozilla.xul+xml";
293
- readonly '.zip': "application/zip";
294
- readonly '.3gp': "video/3gpp";
295
- readonly '.3g2': "video/3gpp2";
296
- readonly '.7z': "application/x-7z-compressed";
297
- };
298
- export type ContentTypeKeys = keyof typeof mimeTypes;
299
- export type ContentType = (typeof mimeTypes)[ContentTypeKeys] | 'multipart/form-data';
300
- /**
301
- * https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types
302
- */
303
- export type MediaType = 'text' | 'image' | 'audio' | 'font' | 'video' | 'application' | 'multipart' | 'message' | 'model';
304
- export const MediaTypeAllArr: MediaType[];
305
- export type MimeType = keyof typeof mimeTypes;
306
- export const MimeTypesObj: {
307
- readonly '.aac': "audio/aac";
308
- readonly '.abw': "application/x-abiword";
309
- readonly '.arc': "application/x-freearc";
310
- readonly '.avi': "video/x-msvideo";
311
- readonly '.azw': "application/vnd.amazon.ebook";
312
- readonly '.bin': "application/octet-stream";
313
- readonly '.bmp': "image/bmp";
314
- readonly '.bz': "application/x-bzip";
315
- readonly '.bz2': "application/x-bzip2";
316
- readonly '.csh': "application/x-csh";
317
- readonly '.css': "text/css";
318
- readonly '.csv': "text/csv";
319
- readonly '.doc': "application/msword";
320
- readonly '.docx': "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
321
- readonly '.eot': "application/vnd.ms-fontobject";
322
- readonly '.epub': "application/epub+zip";
323
- readonly '.gz': "application/gzip";
324
- readonly '.gif': "image/gif";
325
- readonly '.htm': "text/html";
326
- readonly '.html': "text/html";
327
- readonly '.ico': "image/vnd.microsoft.icon";
328
- readonly '.ics': "text/calendar";
329
- readonly '.jar': "application/java-archive";
330
- readonly '.jpeg': "image/jpeg";
331
- readonly '.jpg': "image/jpeg";
332
- readonly '.js': "text/javascript";
333
- readonly '.json': "application/json";
334
- readonly '.jsonld': "application/ld+json";
335
- readonly '.mid': "application/midi";
336
- readonly '.midi': "application/midi";
337
- readonly '.mjs': "text/javascript";
338
- readonly '.mp3': "audio/mpeg";
339
- readonly '.mp4': "video/mp4";
340
- readonly '.mpeg': "video/mpeg";
341
- readonly '.mpkg': "application/vnd.apple.installer+xml";
342
- readonly '.odp': "application/vnd.oasis.opendocument.presentation";
343
- readonly '.ods': "application/vnd.oasis.opendocument.spreadsheet";
344
- readonly '.odt': "application/vnd.oasis.opendocument.text";
345
- readonly '.oga': "audio/ogg";
346
- readonly '.ogg': "audio/ogg";
347
- readonly '.ogv': "video/ogg";
348
- readonly '.ogx': "application/ogg";
349
- readonly '.opus': "audio/opus";
350
- readonly '.otf': "font/otf";
351
- readonly '.png': "image/png";
352
- readonly '.pdf': "application/pdf";
353
- readonly '.php': "application/php";
354
- readonly '.ppt': "application/vnd.ms-powerpoint";
355
- readonly '.pptx': "application/vnd.openxmlformats-officedocument.presentationml.presentation";
356
- readonly '.rar': "application/vnd.rar";
357
- readonly '.rtf': "application/rtf";
358
- readonly '.sh': "application/x-sh";
359
- readonly '.svg': "image/svg+xml";
360
- readonly '.swf': "application/x-shockwave-flash";
361
- readonly '.tar': "application/x-tar";
362
- readonly '.tif': "image/tiff";
363
- readonly '.tiff': "image/tiff";
364
- readonly '.ts': "video/mp2t";
365
- readonly '.ttf': "font/ttf";
366
- readonly '.txt': "text/plain";
367
- readonly '.vsd': "application/vnd.visio";
368
- readonly '.wav': "audio/wav";
369
- readonly '.weba': "audio/webm";
370
- readonly '.webm': "video/webm";
371
- readonly '.webp': "image/webp";
372
- readonly '.woff': "font/woff";
373
- readonly '.woff2': "font/woff2";
374
- readonly '.xhtml': "application/xhtml+xml";
375
- readonly '.xls': "application/vnd.ms-excel";
376
- readonly '.xlsx': "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
377
- readonly '.xml': "application/xml";
378
- readonly '.xul': "application/vnd.mozilla.xul+xml";
379
- readonly '.zip': "application/zip";
380
- readonly '.3gp': "video/3gpp";
381
- readonly '.3g2': "video/3gpp2";
382
- readonly '.7z': "application/x-7z-compressed";
383
- };
384
- export interface ManifestIcon {
385
- src: string;
386
- sizes: string;
387
- type: string;
388
- purpose: string;
389
- }
390
- export interface PwaManifest {
391
- name: string;
392
- short_name: string;
393
- theme_color: string;
394
- background_color: string;
395
- display: 'standalone';
396
- scope: string;
397
- start_url: string;
398
- icons: ManifestIcon[];
399
- }
400
- export interface VSCodeSettings {
401
- 'files.exclude': {
402
- [files: string]: boolean;
403
- };
404
- 'workbench.colorTheme': 'Default Light+' | 'Kimbie Dark';
405
- 'workbench.colorCustomizations': {
406
- 'activityBar.background'?: string;
407
- 'activityBar.foreground'?: string;
408
- 'statusBar.background'?: string;
409
- };
410
- }
411
- /**
412
- * @deprecated
413
- */
414
- export interface Position {
415
- x: number;
416
- y: number;
417
- }
418
- /**
419
- * @deprecated
420
- */
421
- export interface Size {
422
- w: number;
423
- h: number;
424
- }
425
- interface GlobalNpmDependency {
426
- name: string;
427
- installName?: string;
428
- version?: string | number;
429
- }
430
- interface GlobalCommandLineProgramDependency {
431
- name: string;
432
- website: string;
433
- version?: string;
434
- }
435
- export interface GlobalDependencies {
436
- npm?: GlobalNpmDependency[];
437
- programs?: GlobalCommandLineProgramDependency[];
438
- }
439
- interface AngularCompilerOptions {
440
- fullTemplateTypeCheck: boolean;
441
- strictInjectionParameters: boolean;
442
- compilationMode: string;
443
- preserveSymlinks: boolean;
444
- enableIvy: boolean;
445
- }
446
- interface CompilerOptions {
447
- baseUrl: string;
448
- outDir: string;
449
- sourceMap: boolean;
450
- declaration: boolean;
451
- strictNullChecks: boolean;
452
- downlevelIteration: boolean;
453
- experimentalDecorators: boolean;
454
- emitDecoratorMetadata: boolean;
455
- esModuleInterop: boolean;
456
- module: string;
457
- moduleResolution: string;
458
- importHelpers: boolean;
459
- skipLibCheck: boolean;
460
- target: string;
461
- typeRoots: string[];
462
- types: string[];
463
- lib: string[];
464
- paths: {
465
- [fullPackageName: string]: string[];
466
- };
467
- useDefineForClassFields: boolean;
468
- }
469
- export interface TsConfigJson {
470
- extends: string;
471
- exclude: string[];
472
- compileOnSave: boolean;
473
- compilerOptions: CompilerOptions;
474
- angularCompilerOptions: AngularCompilerOptions;
475
- }
476
- export interface TscCompileOptions {
477
- cwd: string;
478
- watch?: boolean;
479
- outDir?: 'dist';
480
- generateDeclarations?: boolean;
481
- tsExe?: string;
482
- diagnostics?: boolean;
483
- hideErrors?: boolean;
484
- debug?: boolean;
485
- }
486
- export {};
487
- }
@@ -1,3 +0,0 @@
1
- // @ts-nocheck
2
- export declare const frameworkNameBe: "taon" | "tnp";
3
- export declare const frameworkName: "taon" | "tnp";
@@ -1,28 +0,0 @@
1
- // @ts-nocheck
2
- export declare class HelpersIsomorphic {
3
- /**
4
- * @deprecated
5
- * use UtilsOs.isRunningInBrowser() instead
6
- */
7
- get isBrowser(): boolean;
8
- /**
9
- * @deprecated
10
- * use UtilsOs.isRunningInWebSQL() instead
11
- */
12
- get isWebSQL(): boolean;
13
- /**
14
- * @deprecated
15
- * use UtilsOs.isRunningInNode() instead
16
- */
17
- get isNode(): boolean;
18
- /**
19
- * @deprecated
20
- * use UtilsOs.isRunningInElectron() instead
21
- */
22
- get isElectron(): boolean;
23
- /**
24
- * TODO what is the purpose of this function?
25
- * @deprecated
26
- */
27
- contain(arr: any[], item: any): boolean;
28
- }
@@ -1,49 +0,0 @@
1
- // @ts-nocheck
2
- import { HelpersIsomorphic } from './helpers-isomorphic';
3
- export declare class HelpersMessages extends HelpersIsomorphic {
4
- msgCacheClear(): void;
5
- renderError(err: Error): void;
6
- /**
7
- * throw error
8
- */
9
- throw(details: string): void;
10
- /**
11
- * throw error and stop application
12
- * @param details
13
- */
14
- stopApplication(details: string): void;
15
- tryCatchError(error: any): void;
16
- error(details: any, noExit?: boolean, noTrace?: boolean): void;
17
- info(details: string, repeatable?: boolean): void;
18
- success(details: any | string): void;
19
- /**
20
- *
21
- * @param details
22
- * @param isLogTask is less important log task
23
- * @returns
24
- */
25
- taskStarted(details: any | string, isLogTask?: boolean): void;
26
- taskDone(details?: any | string, isLessImportant?: boolean): void;
27
- get isVerboseMode(): boolean;
28
- /**
29
- * log messages only available in verbose mode
30
- */
31
- log(details: any, debugLevel?: number): void;
32
- /**
33
- * Logs not visible in normal use of taon-cli
34
- */
35
- logSuccess(details: any | string): any;
36
- /**
37
- * Logs not visible in normal use of taon-cli
38
- */
39
- logInfo(details: string, repeatable?: boolean): any;
40
- /**
41
- * Logs not visible in normal use of taon-cli
42
- */
43
- logError(details: any, noExit?: boolean, noTrace?: boolean): any;
44
- /**
45
- * Logs not visible in normal use of taon-cli
46
- */
47
- logWarn(details: string, trace?: boolean): any;
48
- warn(details: string, trace?: boolean): void;
49
- }