incremental-compiler 19.0.25 → 19.0.28

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 (58) hide show
  1. package/browser/package.json +1 -1
  2. package/client/package.json +1 -1
  3. package/lib/build-info._auto-generated_.d.ts +1 -1
  4. package/lib/build-info._auto-generated_.js +1 -1
  5. package/lib/env/env.angular-node-app.d.ts +13 -0
  6. package/lib/env/env.angular-node-app.js +19 -0
  7. package/lib/env/env.angular-node-app.js.map +1 -0
  8. package/lib/env/env.electron-app.d.ts +13 -0
  9. package/lib/env/env.electron-app.js +19 -0
  10. package/lib/env/env.electron-app.js.map +1 -0
  11. package/lib/env/env.mobile-app.d.ts +13 -0
  12. package/lib/env/env.mobile-app.js +19 -0
  13. package/lib/env/env.mobile-app.js.map +1 -0
  14. package/lib/env/env.npm-lib-and-cli-tool.d.ts +13 -0
  15. package/lib/env/env.npm-lib-and-cli-tool.js +19 -0
  16. package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -0
  17. package/lib/env/env.vscode-plugin.d.ts +13 -0
  18. package/lib/env/env.vscode-plugin.js +19 -0
  19. package/lib/env/env.vscode-plugin.js.map +1 -0
  20. package/lib/env/index.d.ts +5 -0
  21. package/lib/env/index.js +22 -0
  22. package/lib/env/index.js.map +1 -0
  23. package/package.json +1 -1
  24. package/tmp-environment.json +4 -8
  25. package/websql/package.json +1 -1
  26. package/client/README.md +0 -24
  27. package/client/fesm2022/incremental-compiler.mjs +0 -387
  28. package/client/fesm2022/incremental-compiler.mjs.map +0 -1
  29. package/client/index.d.ts +0 -6
  30. package/client/lib/base-client-compiler.d.ts +0 -55
  31. package/client/lib/change-of-file.d.ts +0 -9
  32. package/client/lib/compiler-manager.d.ts +0 -17
  33. package/client/lib/constants.d.ts +0 -4
  34. package/client/lib/incremental-watcher/incremental-watcher-events.d.ts +0 -6
  35. package/client/lib/incremental-watcher/incremental-watcher-instance.d.ts +0 -7
  36. package/client/lib/incremental-watcher/incremental-watcher-options.d.ts +0 -10
  37. package/client/lib/incremental-watcher/incremental-watcher.d.ts +0 -4
  38. package/client/lib/incremental-watcher/index.d.ts +0 -4
  39. package/client/lib/index.d.ts +0 -25
  40. package/client/lib/models.d.ts +0 -39
  41. package/client/public-api.d.ts +0 -2
  42. package/lib/base-client-compiler.backend.d.ts +0 -56
  43. package/lib/base-client-compiler.backend.js +0 -325
  44. package/lib/base-client-compiler.backend.js.map +0 -1
  45. package/lib/change-of-file.backend.d.ts +0 -8
  46. package/lib/change-of-file.backend.js +0 -25
  47. package/lib/change-of-file.backend.js.map +0 -1
  48. package/lib/compiler-manager.backend.d.ts +0 -16
  49. package/lib/compiler-manager.backend.js +0 -213
  50. package/lib/compiler-manager.backend.js.map +0 -1
  51. package/lib/decorators.backend.d.ts +0 -5
  52. package/lib/decorators.backend.js +0 -56
  53. package/lib/decorators.backend.js.map +0 -1
  54. package/lib/helpers.backend.d.ts +0 -3
  55. package/lib/helpers.backend.js +0 -31
  56. package/lib/helpers.backend.js.map +0 -1
  57. package/package.json_devDependencies.json +0 -216
  58. package/package.json_tnp.json5 +0 -58
@@ -1,387 +0,0 @@
1
- import { path, _ } from 'tnp-core/browser';
2
-
3
- //#region imports
4
- //#endregion
5
- class ChangeOfFile {
6
- constructor(fileAbsolutePath = void 0, eventName = void 0) {
7
- this.fileAbsolutePath = fileAbsolutePath;
8
- this.eventName = eventName;
9
- this.datetime = new Date();
10
- }
11
- get fileExt() {
12
- return path
13
- .extname(this.fileAbsolutePath)
14
- .replace('.', '');
15
- }
16
- }
17
-
18
- let COMPILER_POOLING = {};
19
- const IGNORE_BY_DEFAULT = [
20
- '**/node_modules/**/*.*',
21
- '**/node_modules',
22
- '**/.git/**/*.*',
23
- '**/.git',
24
- ];
25
-
26
- /* */
27
- /* */
28
- /* */
29
- /* */
30
- async function incrementalWatcher(filePath, watchOptions) {
31
- /* */
32
- /* */
33
- /* */
34
- /* */
35
- /* */
36
- /* */
37
- /* */
38
- /* */
39
- /* */
40
- /* */
41
- /* */
42
- /* */
43
- /* */
44
- /* */
45
- /* */
46
- /* */
47
- /* */
48
- /* */
49
- /* */
50
- /* */
51
- /* */
52
- /* */
53
- /* */
54
- /* */
55
- /* */
56
- /* */
57
- /* */
58
- /* */
59
- /* */
60
- /* */
61
- /* */
62
- /* */
63
- /* */
64
- /* */
65
- /* */
66
- /* */
67
- /* */
68
- /* */
69
- /* */
70
- return (void 0);
71
- }
72
-
73
- //#region imports
74
- /* */
75
- //#endregion
76
- class BaseClientCompiler {
77
- constructor() {
78
- this.subscribeOnlyFor = [];
79
- this.onlySingleRun = true;
80
- /* */
81
- /* */
82
- this.pathResolve = false;
83
- this.isInitedWithOptions = false;
84
- this.__folderPath = [];
85
- this.lastAsyncFiles = [];
86
- this._folderPathContentCheck = [];
87
- this.isWatchCompilation = false;
88
- //#endregion
89
- }
90
- //#endregion
91
- //#region getters & setteres
92
- //#region getters & setteres / folder path content check
93
- get folderPathContentCheck() {
94
- return this._folderPathContentCheck;
95
- }
96
- set folderPathContentCheck(v) {
97
- this._folderPathContentCheck = v;
98
- }
99
- //#endregion
100
- //#region getters & setteres / folder path
101
- set folderPath(v) {
102
- if (_.isString(v)) {
103
- v = [v];
104
- }
105
- this.__folderPath = v;
106
- }
107
- get folderPath() {
108
- /* */
109
- /* */
110
- /* */
111
- /* */
112
- /* */
113
- /* */
114
- /* */
115
- /* */
116
- /* */
117
- /* */
118
- /* */
119
- /* */
120
- /* */
121
- /* */
122
- /* */
123
- /* */
124
- /* */
125
- return (void 0);
126
- }
127
- //#endregion
128
- //#endregion
129
- //#region constructor
130
- /* */
131
- /* */
132
- /* */
133
- /* */
134
- /* */
135
- /* */
136
- /* */
137
- /* */
138
- /* */
139
- /* */
140
- /* */
141
- /* */
142
- //#endregion
143
- //#region / init options
144
- /**
145
- * manually init options (when no passing object to constructor super() )
146
- */
147
- initOptions(options) {
148
- /* */
149
- /* */
150
- /* */
151
- /* */
152
- /* */
153
- /* */
154
- /* */
155
- /* */
156
- /* */
157
- /* */
158
- /* */
159
- /* */
160
- /* */
161
- /* */
162
- /* */
163
- return (void 0);
164
- }
165
- //#endregion
166
- //#region api methods / start
167
- /**
168
- * do not override this
169
- */
170
- async runTask(options) {
171
- /* */
172
- /* */
173
- /* */
174
- /* */
175
- /* */
176
- /* */
177
- /* */
178
- /* */
179
- return (void 0);
180
- }
181
- //#region api methods / start
182
- /**
183
- * @deprecated use runTask instead
184
- * Do not override this
185
- */
186
- async start(options) {
187
- /* */
188
- /* */
189
- /* */
190
- /* */
191
- /* */
192
- /* */
193
- /* */
194
- /* */
195
- /* */
196
- /* */
197
- /* */
198
- /* */
199
- /* */
200
- /* */
201
- /* */
202
- /* */
203
- /* */
204
- /* */
205
- /* */
206
- /* */
207
- /* */
208
- /* */
209
- /* */
210
- /* */
211
- /* */
212
- /* */
213
- /* */
214
- /* */
215
- /* */
216
- /* */
217
- return (void 0);
218
- }
219
- //#endregion
220
- //#region api methods / start and watch
221
- /**
222
- * @deprecated use runTask instead
223
- * Do not override this
224
- */
225
- async startAndWatch(options) {
226
- /* */
227
- /* */
228
- /* */
229
- /* */
230
- /* */
231
- /* */
232
- /* */
233
- /* */
234
- /* */
235
- /* */
236
- /* */
237
- /* */
238
- /* */
239
- /* */
240
- /* */
241
- /* */
242
- /* */
243
- /* */
244
- /* */
245
- /* */
246
- /* */
247
- /* */
248
- /* */
249
- /* */
250
- /* */
251
- /* */
252
- /* */
253
- /* */
254
- /* */
255
- /* */
256
- /* */
257
- /* */
258
- /* */
259
- /* */
260
- /* */
261
- /* */
262
- /* */
263
- /* */
264
- /* */
265
- return (void 0);
266
- }
267
- //#endregion
268
- //#region api methods / sync action
269
- /**
270
- *
271
- * @param absolteFilesPathes for each watched file
272
- * @returns
273
- */
274
- syncAction(absolteFilesPathes, initialParams) {
275
- return void 0;
276
- }
277
- //#endregion
278
- //#region api methods / pre async action
279
- async preAsyncAction(initialParams) { }
280
- //#endregion
281
- //#region api methods / async action
282
- asyncAction(asyncEvents, initialParams) {
283
- return void 0;
284
- }
285
- //#endregion
286
- //#endregion
287
- //#region private methods
288
- //#region private methods / _init
289
- _init(options) {
290
- /* */
291
- /* */
292
- /* */
293
- /* */
294
- /* */
295
- /* */
296
- /* */
297
- /* */
298
- /* */
299
- /* */
300
- /* */
301
- /* */
302
- /* */
303
- /* */
304
- /* */
305
- /* */
306
- /* */
307
- /* */
308
- /* */
309
- /* */
310
- /* */
311
- /* */
312
- /* */
313
- /* */
314
- /* */
315
- /* */
316
- /* */
317
- /* */
318
- /* */
319
- /* */
320
- /* */
321
- /* */
322
- /* */
323
- /* */
324
- /* */
325
- /* */
326
- return (void 0);
327
- }
328
- //#endregion
329
- //#region private methods / fix task name
330
- fixTaskName(taskName) {
331
- if (!_.isString(taskName)) {
332
- taskName = `task "${this.taskName}"`;
333
- }
334
- return taskName;
335
- }
336
- //#endregion
337
- filesToWatch() {
338
- /* */
339
- /* */
340
- /* */
341
- /* */
342
- /* */
343
- /* */
344
- /* */
345
- /* */
346
- /* */
347
- /* */
348
- /* */
349
- /* */
350
- /* */
351
- /* */
352
- return (void 0);
353
- }
354
- mapForWatching(c) {
355
- /* */
356
- /* */
357
- /* */
358
- /* */
359
- /* */
360
- return (void 0);
361
- }
362
- }
363
-
364
- /**
365
- * Template for watcher client:
366
- *
367
- * import { IncCompiler } from 'incremental-compiler';
368
- *
369
- * export class TestWatcher extends IncCompiler.Base {
370
- *
371
- * syncAction(files = []) { }
372
- * preAsyncAction() { }
373
- * asyncAction(change: IncCompiler.Change, additionalData:any ) { }
374
- * }
375
- */
376
- var IncCompiler;
377
- (function (IncCompiler) {
378
- IncCompiler.Base = BaseClientCompiler;
379
- IncCompiler.Change = ChangeOfFile;
380
- })(IncCompiler || (IncCompiler = {}));
381
-
382
- /**
383
- * Generated bundle index. Do not edit.
384
- */
385
-
386
- export { BaseClientCompiler, COMPILER_POOLING, ChangeOfFile, IGNORE_BY_DEFAULT, IncCompiler, incrementalWatcher };
387
- //# sourceMappingURL=incremental-compiler.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"incremental-compiler.mjs","sources":["../../../tmp-libs-for-dist/incremental-compiler/projects/incremental-compiler/src/lib/change-of-file.ts","../../../tmp-libs-for-dist/incremental-compiler/projects/incremental-compiler/src/lib/constants.ts","../../../tmp-libs-for-dist/incremental-compiler/projects/incremental-compiler/src/lib/incremental-watcher/incremental-watcher.ts","../../../tmp-libs-for-dist/incremental-compiler/projects/incremental-compiler/src/lib/base-client-compiler.ts","../../../tmp-libs-for-dist/incremental-compiler/projects/incremental-compiler/src/lib/index.ts","../../../tmp-libs-for-dist/incremental-compiler/projects/incremental-compiler/src/incremental-compiler.ts"],"sourcesContent":["//#region imports\nimport { path, _ } from 'tnp-core/browser';\nimport { CoreModels } from 'tnp-core/browser';\n//#endregion\n\nexport class ChangeOfFile {\n public readonly datetime: Date;\n\n constructor(\n public fileAbsolutePath: string = void 0,\n public readonly eventName:\n | 'add'\n | 'change'\n | 'unlink'\n | 'unlinkDir' = void 0,\n ) {\n this.datetime = new Date();\n }\n\n public get fileExt(): CoreModels.FileExtension {\n return path\n .extname(this.fileAbsolutePath)\n .replace('.', '') as CoreModels.FileExtension;\n }\n}","let COMPILER_POOLING = {};\n\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n \n\nexport {COMPILER_POOLING};\n\n\nexport const IGNORE_BY_DEFAULT = [\n '**/node_modules/**/*.*',\n '**/node_modules',\n '**/.git/**/*.*',\n '**/.git',\n];","import { _, path, frameworkName, Helpers } from 'tnp-core/browser';\nimport { IncrementalWatcherInstance } from './incremental-watcher-instance';\nimport { IncrementalWatcherOptions } from './incremental-watcher-options';\n/* */\n/* */\n/* */\n/* */\n \n\nexport async function incrementalWatcher(\n filePath: string | string[],\n watchOptions: IncrementalWatcherOptions,\n): Promise<IncrementalWatcherInstance> {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n}","//#region imports\n/* */ \nimport { path, _, crossPlatformPath } from 'tnp-core/browser';\nimport { Helpers } from 'tnp-core/browser';\nimport { CLI } from 'tnp-core/browser';\nimport { CoreModels } from 'tnp-core/browser';\n\nimport { ChangeOfFile } from './change-of-file';\nimport { CompilerManager } from './compiler-manager';\nimport { Models } from './models';\n//#endregion\n\nexport class BaseClientCompiler<INITIAL_PARAMS = any>\n implements Models.BaseClientCompilerOptions\n{\n //#region fields\n public readonly followSymlinks: boolean;\n public readonly subscribeOnlyFor: CoreModels.FileExtension[] = [];\n public readonly executeOutsideScenario: boolean;\n public readonly taskName: string;\n public readonly notifyOnFileUnlink: boolean;\n\n protected onlySingleRun = true;\n public ignoreFolderPatter?: string[];\n/* */\n/* */\n \n private pathResolve: boolean = false;\n private isInitedWithOptions: boolean = false;\n private __folderPath: string[] = [];\n public lastAsyncFiles: string[] = [];\n private _folderPathContentCheck: string[] = [];\n isWatchCompilation: boolean = false;\n\n //#endregion\n\n //#region getters & setteres\n\n //#region getters & setteres / folder path content check\n get folderPathContentCheck() {\n return this._folderPathContentCheck;\n }\n private set folderPathContentCheck(v) {\n this._folderPathContentCheck = v;\n }\n //#endregion\n\n //#region getters & setteres / folder path\n public set folderPath(v) {\n if (_.isString(v)) {\n v = [v];\n }\n this.__folderPath = v;\n }\n public get folderPath(): string[] {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n //#endregion\n\n //#endregion\n\n //#region constructor\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n \n //#endregion\n\n //#region / init options\n /**\n * manually init options (when no passing object to constructor super() )\n */\n protected initOptions(options?: Models.BaseClientCompilerOptions) {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n //#endregion\n\n //#region api methods / start\n /**\n * do not override this\n */\n async runTask(\n options?: { watch?: boolean } & Models.StartAndWatchOptions<INITIAL_PARAMS>,\n ): Promise<BaseClientCompiler<INITIAL_PARAMS>> {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n\n //#region api methods / start\n /**\n * @deprecated use runTask instead\n * Do not override this\n */\n public async start(\n options?: Models.StartOptions<INITIAL_PARAMS>,\n ): Promise<BaseClientCompiler<INITIAL_PARAMS>> {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n //#endregion\n\n //#region api methods / start and watch\n /**\n * @deprecated use runTask instead\n * Do not override this\n */\n public async startAndWatch(\n options?: Models.StartAndWatchOptions<INITIAL_PARAMS>,\n ): Promise<BaseClientCompiler<INITIAL_PARAMS>> {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n //#endregion\n\n //#region api methods / sync action\n /**\n *\n * @param absolteFilesPathes for each watched file\n * @returns\n */\n public syncAction(\n absolteFilesPathes?: string[],\n initialParams?: INITIAL_PARAMS,\n ): Promise<void> {\n return void 0;\n }\n //#endregion\n\n //#region api methods / pre async action\n public async preAsyncAction(initialParams?: INITIAL_PARAMS): Promise<void> {}\n //#endregion\n\n //#region api methods / async action\n public asyncAction(\n asyncEvents: ChangeOfFile,\n initialParams?: INITIAL_PARAMS,\n ): Promise<void> {\n return void 0;\n }\n //#endregion\n\n //#endregion\n\n //#region private methods\n\n //#region private methods / _init\n private _init(options?: Models.BaseClientCompilerOptions) {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n //#endregion\n\n //#region private methods / fix task name\n private fixTaskName(taskName: string) {\n if (!_.isString(taskName)) {\n taskName = `task \"${this.taskName}\"`;\n }\n return taskName;\n }\n //#endregion\n\n filesToWatch() {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n\n private mapForWatching(c: string): string[] {\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n\n //#endregion\n}","import * as models from './models';\nexport * from './change-of-file';\nexport * from './constants';\nexport * from './incremental-watcher';\nimport * as change from './change-of-file';\nexport * from './base-client-compiler';\nimport * as incBase from './base-client-compiler';\n/* */\n/* */\n \n\nimport { _ } from 'tnp-core/browser';\n/**\n * Template for watcher client:\n *\n * import { IncCompiler } from 'incremental-compiler';\n *\n * export class TestWatcher extends IncCompiler.Base {\n *\n * syncAction(files = []) { }\n * preAsyncAction() { }\n * asyncAction(change: IncCompiler.Change, additionalData:any ) { }\n * }\n */\nexport namespace IncCompiler {\n export import Models = models.Models;\n export import Base = incBase.BaseClientCompiler;\n export import Change = change.ChangeOfFile;\n}","/**\n * Generated bundle index. Do not edit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A,QAAQ,GAAG,CAAS,MAAA,EAAA,IAAI,CAAC,QAAQ,GAAG;;AAEtC,QAAA,OAAO,QAAQ;;;IAIjB,YAAY,GAAA;;;;;;;;;;;;;;;AAeV,QAAA,QAAQ,KAAK,CAAC;;AAGR,IAAA,cAAc,CAAC,CAAS,EAAA;;;;;;AAM9B,QAAA,QAAQ,KAAK,CAAC;;AAIjB;;ACvUD;;;;;;;;;;;AAWG;AACG,IAAW;AAAjB,CAAA,UAAiB,WAAW,EAAA;AAEZ,IAAA,WAAA,CAAA,IAAI,GAAGA,kBAA0B;AACjC,IAAA,WAAA,CAAA,MAAM,GAAGC,YAAmB;AAC5C,CAAC,EAJgB,WAAW,KAAX,WAAW,GAI3B,EAAA,CAAA,CAAA;;AC5BD;;AAEG;;;;"}
package/client/index.d.ts DELETED
@@ -1,6 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Generated bundle index. Do not edit.
4
- */
5
- /// <amd-module name="incremental-compiler" />
6
- export * from './public-api';
@@ -1,55 +0,0 @@
1
- // @ts-nocheck
2
- import { CoreModels } from 'tnp-core/browser';
3
- import { ChangeOfFile } from './change-of-file';
4
- import { Models } from './models';
5
- export declare class BaseClientCompiler<INITIAL_PARAMS = any> implements Models.BaseClientCompilerOptions {
6
- readonly followSymlinks: boolean;
7
- readonly subscribeOnlyFor: CoreModels.FileExtension[];
8
- readonly executeOutsideScenario: boolean;
9
- readonly taskName: string;
10
- readonly notifyOnFileUnlink: boolean;
11
- protected onlySingleRun: boolean;
12
- ignoreFolderPatter?: string[];
13
- private pathResolve;
14
- private isInitedWithOptions;
15
- private __folderPath;
16
- lastAsyncFiles: string[];
17
- private _folderPathContentCheck;
18
- isWatchCompilation: boolean;
19
- get folderPathContentCheck(): string[];
20
- private set folderPathContentCheck(value);
21
- set folderPath(v: string[]);
22
- get folderPath(): string[];
23
- /**
24
- * manually init options (when no passing object to constructor super() )
25
- */
26
- protected initOptions(options?: Models.BaseClientCompilerOptions): any;
27
- /**
28
- * do not override this
29
- */
30
- runTask(options?: {
31
- watch?: boolean;
32
- } & Models.StartAndWatchOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>>;
33
- /**
34
- * @deprecated use runTask instead
35
- * Do not override this
36
- */
37
- start(options?: Models.StartOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>>;
38
- /**
39
- * @deprecated use runTask instead
40
- * Do not override this
41
- */
42
- startAndWatch(options?: Models.StartAndWatchOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>>;
43
- /**
44
- *
45
- * @param absolteFilesPathes for each watched file
46
- * @returns
47
- */
48
- syncAction(absolteFilesPathes?: string[], initialParams?: INITIAL_PARAMS): Promise<void>;
49
- preAsyncAction(initialParams?: INITIAL_PARAMS): Promise<void>;
50
- asyncAction(asyncEvents: ChangeOfFile, initialParams?: INITIAL_PARAMS): Promise<void>;
51
- private _init;
52
- private fixTaskName;
53
- filesToWatch(): any;
54
- private mapForWatching;
55
- }
@@ -1,9 +0,0 @@
1
- // @ts-nocheck
2
- import { CoreModels } from 'tnp-core/browser';
3
- export declare class ChangeOfFile {
4
- fileAbsolutePath: string;
5
- readonly eventName: 'add' | 'change' | 'unlink' | 'unlinkDir';
6
- readonly datetime: Date;
7
- constructor(fileAbsolutePath?: string, eventName?: 'add' | 'change' | 'unlink' | 'unlinkDir');
8
- get fileExt(): CoreModels.FileExtension;
9
- }
@@ -1,17 +0,0 @@
1
- // @ts-nocheck
2
- import { BaseClientCompiler } from './base-client-compiler';
3
- export declare class CompilerManager {
4
- private static _instance;
5
- static get Instance(): CompilerManager;
6
- private clients;
7
- private asyncEventScenario;
8
- private inited;
9
- private filesContentCache;
10
- private constructor();
11
- syncInit(client: BaseClientCompiler<any>, initialParams: any): Promise<any>;
12
- asyncInit(client: BaseClientCompiler<any>, initialParams: any): Promise<any>;
13
- private actionForAsyncEvent;
14
- addClient(client: BaseClientCompiler<any>): any;
15
- private preventAlreadyInited;
16
- private fileShouldBeChecked;
17
- }
@@ -1,4 +0,0 @@
1
- // @ts-nocheck
2
- declare let COMPILER_POOLING: {};
3
- export { COMPILER_POOLING };
4
- export declare const IGNORE_BY_DEFAULT: string[];
@@ -1,6 +0,0 @@
1
- // @ts-nocheck
2
- export type IncrementalWatcherEvents = 'add' | 'addDir' | 'change' | 'unlink' | 'unlinkDir';
3
- export type IncrementalWatcherAllEvents = 'all' | IncrementalWatcherEvents;
4
- export type ListenerForAll = (eventName: IncrementalWatcherEvents, path: string) => void;
5
- export type ListenerForSingleEvent = (path: string) => void;
6
- export type Listener = ListenerForAll | ListenerForSingleEvent;
@@ -1,7 +0,0 @@
1
- // @ts-nocheck
2
- import { IncrementalWatcherAllEvents, ListenerForAll, ListenerForSingleEvent } from "./incremental-watcher-events";
3
- export interface IncrementalWatcherInstance {
4
- add(paths: string | ReadonlyArray<string>): void;
5
- on(event: 'all', listener: ListenerForAll): this;
6
- on(event: IncrementalWatcherAllEvents, listener: ListenerForSingleEvent): this;
7
- }
@@ -1,10 +0,0 @@
1
- // @ts-nocheck
2
- import { Matcher } from 'anymatch';
3
- export interface IncrementalWatcherOptions {
4
- cwd?: string;
5
- ignored?: Matcher;
6
- ignoreInitial?: boolean;
7
- followSymlinks?: boolean;
8
- name: string;
9
- engine?: 'chokidar' | '@parcel/watcher';
10
- }
@@ -1,4 +0,0 @@
1
- // @ts-nocheck
2
- import { IncrementalWatcherInstance } from './incremental-watcher-instance';
3
- import { IncrementalWatcherOptions } from './incremental-watcher-options';
4
- export declare function incrementalWatcher(filePath: string | string[], watchOptions: IncrementalWatcherOptions): Promise<IncrementalWatcherInstance>;
@@ -1,4 +0,0 @@
1
- // @ts-nocheck
2
- export * from './incremental-watcher-instance';
3
- export * from './incremental-watcher-options';
4
- export * from './incremental-watcher';
@@ -1,25 +0,0 @@
1
- // @ts-nocheck
2
- import * as models from './models';
3
- export * from './change-of-file';
4
- export * from './constants';
5
- export * from './incremental-watcher';
6
- import * as change from './change-of-file';
7
- export * from './base-client-compiler';
8
- import * as incBase from './base-client-compiler';
9
- /**
10
- * Template for watcher client:
11
- *
12
- * import { IncCompiler } from 'incremental-compiler';
13
- *
14
- * export class TestWatcher extends IncCompiler.Base {
15
- *
16
- * syncAction(files = []) { }
17
- * preAsyncAction() { }
18
- * asyncAction(change: IncCompiler.Change, additionalData:any ) { }
19
- * }
20
- */
21
- export declare namespace IncCompiler {
22
- export import Models = models.Models;
23
- export import Base = incBase.BaseClientCompiler;
24
- export import Change = change.ChangeOfFile;
25
- }
@@ -1,39 +0,0 @@
1
- // @ts-nocheck
2
- import { CoreModels } from 'tnp-core/browser';
3
- export declare namespace Models {
4
- interface StartAndWatchOptions<INIT_PARAMS = any> {
5
- afterInitCallBack?: (initialParams?: INIT_PARAMS) => void;
6
- watchOnly?: boolean;
7
- /**
8
- * override task name
9
- */
10
- taskName?: string;
11
- initialParams?: INIT_PARAMS;
12
- }
13
- type StartOptions<T = any> = Omit<StartAndWatchOptions<T>, 'watchOnly'>;
14
- interface BaseClientCompilerOptions {
15
- taskName: string;
16
- folderPath?: string | string[];
17
- /**
18
- * It will cache in memory previouse files
19
- * to limit async actions calls
20
- * and prevent not changed files emiting change event
21
- */
22
- folderPathContentCheck?: string | string[];
23
- /**
24
- * default true
25
- */
26
- followSymlinks?: boolean;
27
- /**
28
- * Notify compiler if file is unlinked
29
- * default: false
30
- */
31
- notifyOnFileUnlink?: boolean;
32
- /**
33
- * ignore glob folder pattern
34
- * node_modules is always ignored
35
- */
36
- ignoreFolderPatter?: string[];
37
- subscribeOnlyFor?: CoreModels.FileExtension[];
38
- }
39
- }
@@ -1,2 +0,0 @@
1
- // @ts-nocheck
2
- export * from './lib';
@@ -1,56 +0,0 @@
1
- import { ChangeOfFile } from './change-of-file.backend';
2
- import { Models } from './models';
3
- import { CoreModels } from 'tnp-core';
4
- export declare class BaseClientCompiler<INITAL_PARAMS = any> implements Models.BaseClientCompilerOptions {
5
- readonly followSymlinks: boolean;
6
- readonly subscribeOnlyFor: CoreModels.FileExtension[];
7
- readonly executeOutsideScenario: boolean;
8
- readonly taskName: string;
9
- ignoreFolderPatter?: string[];
10
- readonly notifyOnFileUnlink: boolean;
11
- compilationWrapper: (fn: () => void, taskName?: string, executionType?: "Compilation of" | "Code execution of" | "Event:") => Promise<void>;
12
- private pathResolve;
13
- private initedWithOptions;
14
- private __folderPath;
15
- lastAsyncFiles: string[];
16
- private _folderPathContentCheck;
17
- get isInited(): boolean;
18
- get folderPathContentCheck(): string[];
19
- private set folderPathContentCheck(value);
20
- set folderPath(v: string[]);
21
- get folderPath(): string[];
22
- constructor(options?: Models.BaseClientCompilerOptions);
23
- /**
24
- * manually init options (when no passing object to constructor super() )
25
- */
26
- protected initOptions(options?: Models.BaseClientCompilerOptions): void;
27
- protected onlySingleRun: boolean;
28
- /**
29
- * do not override this
30
- */
31
- runTask(options?: {
32
- watch: boolean;
33
- } & Models.StartAndWatchOptions<INITAL_PARAMS>): Promise<BaseClientCompiler<INITAL_PARAMS>>;
34
- /**
35
- * @deprecated use runTask instead
36
- * Do not override this
37
- */
38
- start(options?: Models.StartOptions<INITAL_PARAMS>): Promise<BaseClientCompiler<INITAL_PARAMS>>;
39
- /**
40
- * @deprecated use runTask instead
41
- * Do not override this
42
- */
43
- startAndWatch(options?: Models.StartAndWatchOptions<INITAL_PARAMS>): Promise<BaseClientCompiler<INITAL_PARAMS>>;
44
- /**
45
- *
46
- * @param absolteFilesPathes for each watched file
47
- * @returns
48
- */
49
- syncAction(absolteFilesPathes?: string[], initalParams?: INITAL_PARAMS): Promise<void>;
50
- preAsyncAction(initalParams?: INITAL_PARAMS): Promise<void>;
51
- asyncAction(asyncEvents: ChangeOfFile, initalParams?: INITAL_PARAMS): Promise<void>;
52
- private _init;
53
- private fixTaskName;
54
- filesToWatch(): string[];
55
- private mapForWatching;
56
- }