incremental-compiler 19.0.7 → 19.0.8
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/README.md +9 -9
- package/browser/README.md +24 -24
- package/browser/fesm2022/incremental-compiler.mjs +37 -21
- package/browser/fesm2022/incremental-compiler.mjs.map +1 -1
- package/browser/lib/index.d.ts +2 -2
- package/browser/package.json +1 -1
- package/client/README.md +24 -24
- package/client/fesm2022/incremental-compiler.mjs +37 -21
- package/client/fesm2022/incremental-compiler.mjs.map +1 -1
- package/client/lib/index.d.ts +2 -2
- package/client/package.json +1 -1
- package/index.js.map +1 -1
- package/lib/base-client-compiler.d.ts +1 -1
- package/lib/base-client-compiler.js +39 -39
- package/lib/base-client-compiler.js.map +1 -1
- package/lib/build-info._auto-generated_.d.ts +2 -1
- package/lib/build-info._auto-generated_.js +3 -2
- package/lib/build-info._auto-generated_.js.map +1 -1
- package/lib/change-of-file.d.ts +1 -1
- package/lib/change-of-file.js +2 -2
- package/lib/change-of-file.js.map +1 -1
- package/lib/compiler-manager.js +16 -16
- package/lib/compiler-manager.js.map +1 -1
- package/lib/constants.js.map +1 -1
- package/lib/incremental-watcher/incremental-watcher-events.js.map +1 -1
- package/lib/incremental-watcher/incremental-watcher-instance.js.map +1 -1
- package/lib/incremental-watcher/incremental-watcher-options.js.map +1 -1
- package/lib/incremental-watcher/incremental-watcher.js +5 -5
- package/lib/incremental-watcher/incremental-watcher.js.map +1 -1
- package/lib/incremental-watcher/index.js.map +1 -1
- package/lib/incremental-watcher/parcel-watcher-adapter.backend.js +19 -19
- package/lib/incremental-watcher/parcel-watcher-adapter.backend.js.map +1 -1
- package/lib/index._auto-generated_.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/models.d.ts +1 -1
- package/lib/models.js.map +1 -1
- package/migrations/index.js.map +1 -1
- package/migrations/migrations_index._auto-generated_.js.map +1 -1
- package/package.json +1 -1
- package/tmp-environment.json +4 -4
- package/websql/README.md +24 -24
- package/websql/fesm2022/incremental-compiler.mjs +37 -21
- package/websql/fesm2022/incremental-compiler.mjs.map +1 -1
- package/websql/lib/index.d.ts +2 -2
- package/websql/package.json +1 -1
package/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
# INCREMENTAL COMPILER
|
2
|
-
|
3
|
-
A library for any kind of incremental compilers and file watchers, based on the excellent Chokidar.
|
4
|
-
|
5
|
-
## Example Use Case
|
6
|
-
|
7
|
-
You want to call a specific function for each file in your "src" folder within your project.
|
8
|
-
After calling this function for each file, you set up watchers on those files. For each change in a file in "src," the function is called again for that particular file.
|
9
|
-
|
1
|
+
# INCREMENTAL COMPILER
|
2
|
+
|
3
|
+
A library for any kind of incremental compilers and file watchers, based on the excellent Chokidar.
|
4
|
+
|
5
|
+
## Example Use Case
|
6
|
+
|
7
|
+
You want to call a specific function for each file in your "src" folder within your project.
|
8
|
+
After calling this function for each file, you set up watchers on those files. For each change in a file in "src," the function is called again for that particular file.
|
9
|
+
|
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.
|
@@ -1,5 +1,7 @@
|
|
1
1
|
import { path, _ } from 'tnp-core/browser';
|
2
2
|
|
3
|
+
//#region imports
|
4
|
+
//#endregion
|
3
5
|
class ChangeOfFile {
|
4
6
|
constructor(fileAbsolutePath = void 0, eventName = void 0) {
|
5
7
|
this.fileAbsolutePath = fileAbsolutePath;
|
@@ -12,8 +14,6 @@ class ChangeOfFile {
|
|
12
14
|
.replace('.', '');
|
13
15
|
}
|
14
16
|
}
|
15
|
-
;
|
16
|
-
({}); // @--end-of-file-for-module=incremental-compiler lib/change-of-file.ts
|
17
17
|
|
18
18
|
let COMPILER_POOLING = {};
|
19
19
|
const IGNORE_BY_DEFAULT = [
|
@@ -22,14 +22,6 @@ const IGNORE_BY_DEFAULT = [
|
|
22
22
|
'**/.git/**/*.*',
|
23
23
|
'**/.git',
|
24
24
|
];
|
25
|
-
;
|
26
|
-
({}); // @--end-of-file-for-module=incremental-compiler lib/constants.ts
|
27
|
-
|
28
|
-
;
|
29
|
-
({}); // @--end-of-file-for-module=incremental-compiler lib/incremental-watcher/incremental-watcher-instance.ts
|
30
|
-
|
31
|
-
;
|
32
|
-
({}); // @--end-of-file-for-module=incremental-compiler lib/incremental-watcher/incremental-watcher-options.ts
|
33
25
|
|
34
26
|
/* */
|
35
27
|
/* */
|
@@ -77,14 +69,11 @@ async function incrementalWatcher(filePath, watchOptions) {
|
|
77
69
|
/* */
|
78
70
|
return (void 0);
|
79
71
|
}
|
80
|
-
;
|
81
|
-
({}); // @--end-of-file-for-module=incremental-compiler lib/incremental-watcher/incremental-watcher.ts
|
82
|
-
|
83
|
-
;
|
84
|
-
({}); // @--end-of-file-for-module=incremental-compiler lib/incremental-watcher/index.ts
|
85
72
|
|
73
|
+
//#region imports
|
86
74
|
/* */
|
87
75
|
/* */
|
76
|
+
//#endregion
|
88
77
|
class BaseClientCompiler {
|
89
78
|
constructor() {
|
90
79
|
this.subscribeOnlyFor = [];
|
@@ -96,17 +85,26 @@ class BaseClientCompiler {
|
|
96
85
|
this.lastAsyncFiles = [];
|
97
86
|
this._folderPathContentCheck = [];
|
98
87
|
this.isWatchCompilation = false;
|
88
|
+
//#endregion
|
99
89
|
this.onlySingleRun = true;
|
90
|
+
//#endregion
|
100
91
|
}
|
92
|
+
//#endregion
|
93
|
+
//#region getters & setteres
|
94
|
+
//#region getters & setteres / is inited
|
101
95
|
get isInited() {
|
102
96
|
return this.initedWithOptions;
|
103
97
|
}
|
98
|
+
//#endregion
|
99
|
+
//#region getters & setteres / folder path content check
|
104
100
|
get folderPathContentCheck() {
|
105
101
|
return this._folderPathContentCheck;
|
106
102
|
}
|
107
103
|
set folderPathContentCheck(v) {
|
108
104
|
this._folderPathContentCheck = v;
|
109
105
|
}
|
106
|
+
//#endregion
|
107
|
+
//#region getters & setteres / folder path
|
110
108
|
set folderPath(v) {
|
111
109
|
if (_.isString(v)) {
|
112
110
|
v = [v];
|
@@ -133,6 +131,9 @@ class BaseClientCompiler {
|
|
133
131
|
/* */
|
134
132
|
return (void 0);
|
135
133
|
}
|
134
|
+
//#endregion
|
135
|
+
//#endregion
|
136
|
+
//#region constructor
|
136
137
|
/* */
|
137
138
|
/* */
|
138
139
|
/* */
|
@@ -145,6 +146,8 @@ class BaseClientCompiler {
|
|
145
146
|
/* */
|
146
147
|
/* */
|
147
148
|
/* */
|
149
|
+
//#endregion
|
150
|
+
//#region / init options
|
148
151
|
/**
|
149
152
|
* manually init options (when no passing object to constructor super() )
|
150
153
|
*/
|
@@ -168,6 +171,7 @@ class BaseClientCompiler {
|
|
168
171
|
/* */
|
169
172
|
return (void 0);
|
170
173
|
}
|
174
|
+
//#region api methods / start
|
171
175
|
/**
|
172
176
|
* do not override this
|
173
177
|
*/
|
@@ -182,6 +186,7 @@ class BaseClientCompiler {
|
|
182
186
|
/* */
|
183
187
|
return (void 0);
|
184
188
|
}
|
189
|
+
//#region api methods / start
|
185
190
|
/**
|
186
191
|
* @deprecated use runTask instead
|
187
192
|
* Do not override this
|
@@ -219,6 +224,8 @@ class BaseClientCompiler {
|
|
219
224
|
/* */
|
220
225
|
return (void 0);
|
221
226
|
}
|
227
|
+
//#endregion
|
228
|
+
//#region api methods / start and watch
|
222
229
|
/**
|
223
230
|
* @deprecated use runTask instead
|
224
231
|
* Do not override this
|
@@ -265,6 +272,8 @@ class BaseClientCompiler {
|
|
265
272
|
/* */
|
266
273
|
return (void 0);
|
267
274
|
}
|
275
|
+
//#endregion
|
276
|
+
//#region api methods / sync action
|
268
277
|
/**
|
269
278
|
*
|
270
279
|
* @param absolteFilesPathes for each watched file
|
@@ -273,10 +282,18 @@ class BaseClientCompiler {
|
|
273
282
|
syncAction(absolteFilesPathes, initialParams) {
|
274
283
|
return void 0;
|
275
284
|
}
|
285
|
+
//#endregion
|
286
|
+
//#region api methods / pre async action
|
276
287
|
async preAsyncAction(initialParams) { }
|
288
|
+
//#endregion
|
289
|
+
//#region api methods / async action
|
277
290
|
asyncAction(asyncEvents, initialParams) {
|
278
291
|
return void 0;
|
279
292
|
}
|
293
|
+
//#endregion
|
294
|
+
//#endregion
|
295
|
+
//#region private methods
|
296
|
+
//#region private methods / _init
|
280
297
|
_init(options) {
|
281
298
|
/* */
|
282
299
|
/* */
|
@@ -316,12 +333,15 @@ class BaseClientCompiler {
|
|
316
333
|
/* */
|
317
334
|
return (void 0);
|
318
335
|
}
|
336
|
+
//#endregion
|
337
|
+
//#region private methods / fix task name
|
319
338
|
fixTaskName(taskName) {
|
320
339
|
if (!_.isString(taskName)) {
|
321
340
|
taskName = `task "${this.taskName}"`;
|
322
341
|
}
|
323
342
|
return taskName;
|
324
343
|
}
|
344
|
+
//#endregion
|
325
345
|
filesToWatch() {
|
326
346
|
/* */
|
327
347
|
/* */
|
@@ -348,13 +368,11 @@ class BaseClientCompiler {
|
|
348
368
|
return (void 0);
|
349
369
|
}
|
350
370
|
}
|
351
|
-
;
|
352
|
-
({}); // @--end-of-file-for-module=incremental-compiler lib/base-client-compiler.ts
|
353
371
|
|
354
372
|
/**
|
355
373
|
* Template for watcher client:
|
356
|
-
*
|
357
|
-
* import { IncCompiler } from '
|
374
|
+
*
|
375
|
+
* import { IncCompiler } from 'incremental-compiler';
|
358
376
|
*
|
359
377
|
* export class TestWatcher extends IncCompiler.Base {
|
360
378
|
*
|
@@ -368,8 +386,6 @@ var IncCompiler;
|
|
368
386
|
IncCompiler.Base = BaseClientCompiler;
|
369
387
|
IncCompiler.Change = ChangeOfFile;
|
370
388
|
})(IncCompiler || (IncCompiler = {}));
|
371
|
-
;
|
372
|
-
({}); // @--end-of-file-for-module=incremental-compiler lib/index.ts
|
373
389
|
|
374
390
|
/**
|
375
391
|
* Generated bundle index. Do not edit.
|
@@ -1 +1 @@
|
|
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-instance.ts","../../../tmp-libs-for-dist/incremental-compiler/projects/incremental-compiler/src/lib/incremental-watcher/incremental-watcher-options.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/incremental-watcher/index.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":["\n\n\nimport { path, _ } from 'tnp-core/browser';\nimport { CoreModels } from 'tnp-core/browser';\n\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}\n\n ;({}); // @--end-of-file-for-module=incremental-compiler lib/change-of-file.ts","\n\n\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];\n\n ;({}); // @--end-of-file-for-module=incremental-compiler lib/constants.ts","\n\nimport { IncrementalWatcherAllEvents, ListenerForAll, ListenerForSingleEvent } from \"./incremental-watcher-events\";/* */\n/* */\n/* */\n\n\n\nexport interface IncrementalWatcherInstance {\n add(paths: string | ReadonlyArray<string>): void;\n on(event: 'all', listener: ListenerForAll): this;\n\n on(event: IncrementalWatcherAllEvents, listener: ListenerForSingleEvent): this;\n}\n\n ;({}); // @--end-of-file-for-module=incremental-compiler lib/incremental-watcher/incremental-watcher-instance.ts","\n\nimport { WatchOptions } from 'chokidar';\nimport { Matcher } from 'anymatch';\n\nexport interface IncrementalWatcherOptions {\n cwd?: string;\n ignored?: Matcher;\n ignoreInitial?: boolean;\n followSymlinks?: boolean;\n name: string;\n engine?: 'chokidar' | '@parcel/watcher'\n}\n\n ;({}); // @--end-of-file-for-module=incremental-compiler lib/incremental-watcher/incremental-watcher-options.ts","\n\nimport { _, 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}\n\n ;({}); // @--end-of-file-for-module=incremental-compiler lib/incremental-watcher/incremental-watcher.ts","\n\nexport * from './incremental-watcher-instance';\nexport * from './incremental-watcher-options';\nexport * from './incremental-watcher';\n\n ;({}); // @--end-of-file-for-module=incremental-compiler lib/incremental-watcher/index.ts","\n\n\n/* */\n/* */\n \nimport { path, _, crossPlatformPath } from 'tnp-core/browser';\nimport { ChangeOfFile } from './change-of-file';\nimport { CompilerManager } from './compiler-manager';\nimport { Models } from './models';\nimport { Helpers } from 'tnp-core/browser';\nimport { CLI } from 'tnp-core/browser';\nimport { CoreModels } from 'tnp-core/browser';\n\n\nexport class BaseClientCompiler<INITIAL_PARAMS = any>\n implements Models.BaseClientCompilerOptions\n{\n\n public readonly followSymlinks: boolean;\n public readonly subscribeOnlyFor: CoreModels.FileExtension[] = [];\n public readonly executeOutsideScenario: boolean;\n public readonly taskName: string;\n public ignoreFolderPatter?: string[];\n public readonly notifyOnFileUnlink: boolean;\n/* */\n/* */\n \n private pathResolve: boolean = false;\n private initedWithOptions = false;\n private __folderPath: string[] = [];\n public lastAsyncFiles: string[] = [];\n private _folderPathContentCheck: string[] = [];\n isWatchCompilation: boolean = false;\n\n\n\n\n\n\n get isInited() {\n return this.initedWithOptions;\n }\n\n\n\n get folderPathContentCheck() {\n return this._folderPathContentCheck;\n }\n private set folderPathContentCheck(v) {\n this._folderPathContentCheck = v;\n }\n\n\n\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\n\n\n\n\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n \n\n\n\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/* */\n/* */\n return (void 0);\n }\n\n\n protected onlySingleRun = true;\n\n\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\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\n\n\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\n\n\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\n\n\n public async preAsyncAction(initialParams?: INITIAL_PARAMS): Promise<void> {}\n\n\n\n public asyncAction(\n asyncEvents: ChangeOfFile,\n initialParams?: INITIAL_PARAMS,\n ): Promise<void> {\n return void 0;\n }\n\n\n\n\n\n\n\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\n\n\n private fixTaskName(taskName: string) {\n if (!_.isString(taskName)) {\n taskName = `task \"${this.taskName}\"`;\n }\n return taskName;\n }\n\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\n}\n\n ;({}); // @--end-of-file-for-module=incremental-compiler lib/base-client-compiler.ts","\n\nimport * 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 * // @ts-ignore\n * import { IncCompiler } from '../lib';\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\n ;({}); // @--end-of-file-for-module=incremental-compiler lib/index.ts","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["incBase.BaseClientCompiler","change.ChangeOfFile"],"mappings":";;MAOa,YAAY,CAAA;AAGvB,IAAA,WAAA,CACS,mBAA2B,KAAK,CAAC,EACxB,SAAA,GAIE,KAAK,CAAC,EAAA;QALjB,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB;QACP,IAAS,CAAA,SAAA,GAAT,SAAS;AAMzB,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI,IAAI,EAAE;;AAG5B,IAAA,IAAW,OAAO,GAAA;AAChB,QAAA,OAAO;AACJ,aAAA,OAAO,CAAC,IAAI,CAAC,gBAAgB;AAC7B,aAA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QAAA,QAAQ,KAAK,CAAC;;AAIjB;AAEA;AAAC,CAAC,EAAE,EAAE;;AClVP;;;;;;;;;;;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;AAEA;AAAC,CAAC,EAAE,EAAE;;AChCP;;AAEG;;;;"}
|
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}\n","\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];\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}\n","//#region imports\n/* */\n/* */\n \nimport { path, _, crossPlatformPath } from 'tnp-core/browser';\nimport { ChangeOfFile } from './change-of-file';\nimport { CompilerManager } from './compiler-manager';\nimport { Models } from './models';\nimport { Helpers } from 'tnp-core/browser';\nimport { CLI } from 'tnp-core/browser';\nimport { CoreModels } from 'tnp-core/browser';\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 ignoreFolderPatter?: string[];\n public readonly notifyOnFileUnlink: boolean;\n/* */\n/* */\n \n private pathResolve: boolean = false;\n private initedWithOptions = 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 / is inited\n get isInited() {\n return this.initedWithOptions;\n }\n //#endregion\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/* */\n/* */\n return (void 0);\n }\n //#endregion\n\n protected onlySingleRun = true;\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}\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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["incBase.BaseClientCompiler","change.ChangeOfFile"],"mappings":";;AAAA;AAGA;MAEa,YAAY,CAAA;AAGvB,IAAA,WAAA,CACS,mBAA2B,KAAK,CAAC,EACxB,SAAA,GAIE,KAAK,CAAC,EAAA;QALjB,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB;QACP,IAAS,CAAA,SAAA,GAAT,SAAS;AAMzB,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI,IAAI,EAAE;;AAG5B,IAAA,IAAW,OAAO,GAAA;AAChB,QAAA,OAAO;AACJ,aAAA,OAAO,CAAC,IAAI,CAAC,gBAAgB;AAC7B,aAAA,OAAO,CAAC,GAAG,EAAE,EAAE,CAA6B;;AAElD;;ACtBI,IAAA,gBAAgB,GAAG;AAgBX,MAAA,iBAAiB,GAAG;IAC/B,wBAAwB;IACxB,iBAAiB;IACjB,gBAAgB;IAChB,SAAS;;;ACnBX;AACA;AACA;AACA;AAGO,eAAe,kBAAkB,CACtC,QAA2B,EAC3B,YAAuC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCvC,IAAA,QAAQ,KAAK,CAAC;AAChB;;ACrDA;AACA;AACA;AASA;MAEa,kBAAkB,CAAA;AAA/B,IAAA,WAAA,GAAA;QAKkB,IAAgB,CAAA,gBAAA,GA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CrD,QAAA,QAAQ,KAAK,CAAC;;;;AAKhB;;;;AAIG;IACI,UAAU,CACf,kBAA6B,EAC7B,aAA8B,EAAA;QAE9B,OAAO,KAAK,CAAC;;;;AAKR,IAAA,MAAM,cAAc,CAAC,aAA8B;;;IAInD,WAAW,CAChB,WAAyB,EACzB,aAA8B,EAAA;QAE9B,OAAO,KAAK,CAAC;;;;;;AASP,IAAA,KAAK,CAAC,OAA0C,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCtD,QAAA,QAAQ,KAAK,CAAC;;;;AAKR,IAAA,WAAW,CAAC,QAAgB,EAAA;QAClC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;AACzB,YAAA,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;;AChVD;;;;;;;;;;;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/browser/lib/index.d.ts
CHANGED
@@ -8,8 +8,8 @@ export * from './base-client-compiler';
|
|
8
8
|
import * as incBase from './base-client-compiler';
|
9
9
|
/**
|
10
10
|
* Template for watcher client:
|
11
|
-
*
|
12
|
-
* import { IncCompiler } from '
|
11
|
+
*
|
12
|
+
* import { IncCompiler } from 'incremental-compiler';
|
13
13
|
*
|
14
14
|
* export class TestWatcher extends IncCompiler.Base {
|
15
15
|
*
|
package/browser/package.json
CHANGED
package/client/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.
|
@@ -1,5 +1,7 @@
|
|
1
1
|
import { path, _ } from 'tnp-core/browser';
|
2
2
|
|
3
|
+
//#region imports
|
4
|
+
//#endregion
|
3
5
|
class ChangeOfFile {
|
4
6
|
constructor(fileAbsolutePath = void 0, eventName = void 0) {
|
5
7
|
this.fileAbsolutePath = fileAbsolutePath;
|
@@ -12,8 +14,6 @@ class ChangeOfFile {
|
|
12
14
|
.replace('.', '');
|
13
15
|
}
|
14
16
|
}
|
15
|
-
;
|
16
|
-
({}); // @--end-of-file-for-module=incremental-compiler lib/change-of-file.ts
|
17
17
|
|
18
18
|
let COMPILER_POOLING = {};
|
19
19
|
const IGNORE_BY_DEFAULT = [
|
@@ -22,14 +22,6 @@ const IGNORE_BY_DEFAULT = [
|
|
22
22
|
'**/.git/**/*.*',
|
23
23
|
'**/.git',
|
24
24
|
];
|
25
|
-
;
|
26
|
-
({}); // @--end-of-file-for-module=incremental-compiler lib/constants.ts
|
27
|
-
|
28
|
-
;
|
29
|
-
({}); // @--end-of-file-for-module=incremental-compiler lib/incremental-watcher/incremental-watcher-instance.ts
|
30
|
-
|
31
|
-
;
|
32
|
-
({}); // @--end-of-file-for-module=incremental-compiler lib/incremental-watcher/incremental-watcher-options.ts
|
33
25
|
|
34
26
|
/* */
|
35
27
|
/* */
|
@@ -77,14 +69,11 @@ async function incrementalWatcher(filePath, watchOptions) {
|
|
77
69
|
/* */
|
78
70
|
return (void 0);
|
79
71
|
}
|
80
|
-
;
|
81
|
-
({}); // @--end-of-file-for-module=incremental-compiler lib/incremental-watcher/incremental-watcher.ts
|
82
|
-
|
83
|
-
;
|
84
|
-
({}); // @--end-of-file-for-module=incremental-compiler lib/incremental-watcher/index.ts
|
85
72
|
|
73
|
+
//#region imports
|
86
74
|
/* */
|
87
75
|
/* */
|
76
|
+
//#endregion
|
88
77
|
class BaseClientCompiler {
|
89
78
|
constructor() {
|
90
79
|
this.subscribeOnlyFor = [];
|
@@ -96,17 +85,26 @@ class BaseClientCompiler {
|
|
96
85
|
this.lastAsyncFiles = [];
|
97
86
|
this._folderPathContentCheck = [];
|
98
87
|
this.isWatchCompilation = false;
|
88
|
+
//#endregion
|
99
89
|
this.onlySingleRun = true;
|
90
|
+
//#endregion
|
100
91
|
}
|
92
|
+
//#endregion
|
93
|
+
//#region getters & setteres
|
94
|
+
//#region getters & setteres / is inited
|
101
95
|
get isInited() {
|
102
96
|
return this.initedWithOptions;
|
103
97
|
}
|
98
|
+
//#endregion
|
99
|
+
//#region getters & setteres / folder path content check
|
104
100
|
get folderPathContentCheck() {
|
105
101
|
return this._folderPathContentCheck;
|
106
102
|
}
|
107
103
|
set folderPathContentCheck(v) {
|
108
104
|
this._folderPathContentCheck = v;
|
109
105
|
}
|
106
|
+
//#endregion
|
107
|
+
//#region getters & setteres / folder path
|
110
108
|
set folderPath(v) {
|
111
109
|
if (_.isString(v)) {
|
112
110
|
v = [v];
|
@@ -133,6 +131,9 @@ class BaseClientCompiler {
|
|
133
131
|
/* */
|
134
132
|
return (void 0);
|
135
133
|
}
|
134
|
+
//#endregion
|
135
|
+
//#endregion
|
136
|
+
//#region constructor
|
136
137
|
/* */
|
137
138
|
/* */
|
138
139
|
/* */
|
@@ -145,6 +146,8 @@ class BaseClientCompiler {
|
|
145
146
|
/* */
|
146
147
|
/* */
|
147
148
|
/* */
|
149
|
+
//#endregion
|
150
|
+
//#region / init options
|
148
151
|
/**
|
149
152
|
* manually init options (when no passing object to constructor super() )
|
150
153
|
*/
|
@@ -168,6 +171,7 @@ class BaseClientCompiler {
|
|
168
171
|
/* */
|
169
172
|
return (void 0);
|
170
173
|
}
|
174
|
+
//#region api methods / start
|
171
175
|
/**
|
172
176
|
* do not override this
|
173
177
|
*/
|
@@ -182,6 +186,7 @@ class BaseClientCompiler {
|
|
182
186
|
/* */
|
183
187
|
return (void 0);
|
184
188
|
}
|
189
|
+
//#region api methods / start
|
185
190
|
/**
|
186
191
|
* @deprecated use runTask instead
|
187
192
|
* Do not override this
|
@@ -219,6 +224,8 @@ class BaseClientCompiler {
|
|
219
224
|
/* */
|
220
225
|
return (void 0);
|
221
226
|
}
|
227
|
+
//#endregion
|
228
|
+
//#region api methods / start and watch
|
222
229
|
/**
|
223
230
|
* @deprecated use runTask instead
|
224
231
|
* Do not override this
|
@@ -265,6 +272,8 @@ class BaseClientCompiler {
|
|
265
272
|
/* */
|
266
273
|
return (void 0);
|
267
274
|
}
|
275
|
+
//#endregion
|
276
|
+
//#region api methods / sync action
|
268
277
|
/**
|
269
278
|
*
|
270
279
|
* @param absolteFilesPathes for each watched file
|
@@ -273,10 +282,18 @@ class BaseClientCompiler {
|
|
273
282
|
syncAction(absolteFilesPathes, initialParams) {
|
274
283
|
return void 0;
|
275
284
|
}
|
285
|
+
//#endregion
|
286
|
+
//#region api methods / pre async action
|
276
287
|
async preAsyncAction(initialParams) { }
|
288
|
+
//#endregion
|
289
|
+
//#region api methods / async action
|
277
290
|
asyncAction(asyncEvents, initialParams) {
|
278
291
|
return void 0;
|
279
292
|
}
|
293
|
+
//#endregion
|
294
|
+
//#endregion
|
295
|
+
//#region private methods
|
296
|
+
//#region private methods / _init
|
280
297
|
_init(options) {
|
281
298
|
/* */
|
282
299
|
/* */
|
@@ -316,12 +333,15 @@ class BaseClientCompiler {
|
|
316
333
|
/* */
|
317
334
|
return (void 0);
|
318
335
|
}
|
336
|
+
//#endregion
|
337
|
+
//#region private methods / fix task name
|
319
338
|
fixTaskName(taskName) {
|
320
339
|
if (!_.isString(taskName)) {
|
321
340
|
taskName = `task "${this.taskName}"`;
|
322
341
|
}
|
323
342
|
return taskName;
|
324
343
|
}
|
344
|
+
//#endregion
|
325
345
|
filesToWatch() {
|
326
346
|
/* */
|
327
347
|
/* */
|
@@ -348,13 +368,11 @@ class BaseClientCompiler {
|
|
348
368
|
return (void 0);
|
349
369
|
}
|
350
370
|
}
|
351
|
-
;
|
352
|
-
({}); // @--end-of-file-for-module=incremental-compiler lib/base-client-compiler.ts
|
353
371
|
|
354
372
|
/**
|
355
373
|
* Template for watcher client:
|
356
|
-
*
|
357
|
-
* import { IncCompiler } from '
|
374
|
+
*
|
375
|
+
* import { IncCompiler } from 'incremental-compiler';
|
358
376
|
*
|
359
377
|
* export class TestWatcher extends IncCompiler.Base {
|
360
378
|
*
|
@@ -368,8 +386,6 @@ var IncCompiler;
|
|
368
386
|
IncCompiler.Base = BaseClientCompiler;
|
369
387
|
IncCompiler.Change = ChangeOfFile;
|
370
388
|
})(IncCompiler || (IncCompiler = {}));
|
371
|
-
;
|
372
|
-
({}); // @--end-of-file-for-module=incremental-compiler lib/index.ts
|
373
389
|
|
374
390
|
/**
|
375
391
|
* Generated bundle index. Do not edit.
|
@@ -1 +1 @@
|
|
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-instance.ts","../../../tmp-libs-for-dist/incremental-compiler/projects/incremental-compiler/src/lib/incremental-watcher/incremental-watcher-options.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/incremental-watcher/index.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":["\n\n\nimport { path, _ } from 'tnp-core/browser';\nimport { CoreModels } from 'tnp-core/browser';\n\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}\n\n ;({}); // @--end-of-file-for-module=incremental-compiler lib/change-of-file.ts","\n\n\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];\n\n ;({}); // @--end-of-file-for-module=incremental-compiler lib/constants.ts","\n\nimport { IncrementalWatcherAllEvents, ListenerForAll, ListenerForSingleEvent } from \"./incremental-watcher-events\";/* */\n/* */\n/* */\n\n\n\nexport interface IncrementalWatcherInstance {\n add(paths: string | ReadonlyArray<string>): void;\n on(event: 'all', listener: ListenerForAll): this;\n\n on(event: IncrementalWatcherAllEvents, listener: ListenerForSingleEvent): this;\n}\n\n ;({}); // @--end-of-file-for-module=incremental-compiler lib/incremental-watcher/incremental-watcher-instance.ts","\n\nimport { WatchOptions } from 'chokidar';\nimport { Matcher } from 'anymatch';\n\nexport interface IncrementalWatcherOptions {\n cwd?: string;\n ignored?: Matcher;\n ignoreInitial?: boolean;\n followSymlinks?: boolean;\n name: string;\n engine?: 'chokidar' | '@parcel/watcher'\n}\n\n ;({}); // @--end-of-file-for-module=incremental-compiler lib/incremental-watcher/incremental-watcher-options.ts","\n\nimport { _, 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}\n\n ;({}); // @--end-of-file-for-module=incremental-compiler lib/incremental-watcher/incremental-watcher.ts","\n\nexport * from './incremental-watcher-instance';\nexport * from './incremental-watcher-options';\nexport * from './incremental-watcher';\n\n ;({}); // @--end-of-file-for-module=incremental-compiler lib/incremental-watcher/index.ts","\n\n\n/* */\n/* */\n \nimport { path, _, crossPlatformPath } from 'tnp-core/browser';\nimport { ChangeOfFile } from './change-of-file';\nimport { CompilerManager } from './compiler-manager';\nimport { Models } from './models';\nimport { Helpers } from 'tnp-core/browser';\nimport { CLI } from 'tnp-core/browser';\nimport { CoreModels } from 'tnp-core/browser';\n\n\nexport class BaseClientCompiler<INITIAL_PARAMS = any>\n implements Models.BaseClientCompilerOptions\n{\n\n public readonly followSymlinks: boolean;\n public readonly subscribeOnlyFor: CoreModels.FileExtension[] = [];\n public readonly executeOutsideScenario: boolean;\n public readonly taskName: string;\n public ignoreFolderPatter?: string[];\n public readonly notifyOnFileUnlink: boolean;\n/* */\n/* */\n \n private pathResolve: boolean = false;\n private initedWithOptions = false;\n private __folderPath: string[] = [];\n public lastAsyncFiles: string[] = [];\n private _folderPathContentCheck: string[] = [];\n isWatchCompilation: boolean = false;\n\n\n\n\n\n\n get isInited() {\n return this.initedWithOptions;\n }\n\n\n\n get folderPathContentCheck() {\n return this._folderPathContentCheck;\n }\n private set folderPathContentCheck(v) {\n this._folderPathContentCheck = v;\n }\n\n\n\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\n\n\n\n\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n \n\n\n\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/* */\n/* */\n return (void 0);\n }\n\n\n protected onlySingleRun = true;\n\n\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\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\n\n\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\n\n\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\n\n\n public async preAsyncAction(initialParams?: INITIAL_PARAMS): Promise<void> {}\n\n\n\n public asyncAction(\n asyncEvents: ChangeOfFile,\n initialParams?: INITIAL_PARAMS,\n ): Promise<void> {\n return void 0;\n }\n\n\n\n\n\n\n\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\n\n\n private fixTaskName(taskName: string) {\n if (!_.isString(taskName)) {\n taskName = `task \"${this.taskName}\"`;\n }\n return taskName;\n }\n\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\n}\n\n ;({}); // @--end-of-file-for-module=incremental-compiler lib/base-client-compiler.ts","\n\nimport * 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 * // @ts-ignore\n * import { IncCompiler } from '../lib';\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\n ;({}); // @--end-of-file-for-module=incremental-compiler lib/index.ts","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["incBase.BaseClientCompiler","change.ChangeOfFile"],"mappings":";;MAOa,YAAY,CAAA;AAGvB,IAAA,WAAA,CACS,mBAA2B,KAAK,CAAC,EACxB,SAAA,GAIE,KAAK,CAAC,EAAA;QALjB,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB;QACP,IAAS,CAAA,SAAA,GAAT,SAAS;AAMzB,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI,IAAI,EAAE;;AAG5B,IAAA,IAAW,OAAO,GAAA;AAChB,QAAA,OAAO;AACJ,aAAA,OAAO,CAAC,IAAI,CAAC,gBAAgB;AAC7B,aAAA,OAAO,CAAC,GAAG,EAAE,EAAE,CAA6B;;AAElD;AAEA;AAAC,CAAC,EAAE,EAAE;;ACxBF,IAAA,gBAAgB,GAAG;AAgBX,MAAA,iBAAiB,GAAG;IAC/B,wBAAwB;IACxB,iBAAiB;IACjB,gBAAgB;IAChB,SAAS;;AAGV;AAAC,CAAC,EAAE,EAAE;;ACZN;AAAC,CAAC,EAAE,EAAE;;ACDN;AAAC,CAAC,EAAE,EAAE;;ACTP;AACA;AACA;AACA;AAGO,eAAe,kBAAkB,CACtC,QAA2B,EAC3B,YAAuC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCvC,IAAA,QAAQ,KAAK,CAAC;AAChB;AAEC;AAAC,CAAC,EAAE,EAAE;;ACnDN;AAAC,CAAC,EAAE,EAAE;;ACHP;AACA;MAWa,kBAAkB,CAAA;AAA/B,IAAA,WAAA,GAAA;QAKkB,IAAgB,CAAA,gBAAA,GAA+B,EAAE;;;QAQzD,IAAW,CAAA,WAAA,GAAY,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AA6B,EAC7B,aAA8B,EAAA;QAE9B,OAAO,KAAK,CAAC;;AAKR,IAAA,MAAM,cAAc,CAAC,aAA8B;IAInD,WAAW,CAChB,WAAyB,EACzB,aAA8B,EAAA;QAE9B,OAAO,KAAK,CAAC;;AASP,IAAA,KAAK,CAAC,OAA0C,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCtD,QAAA,QAAQ,KAAK,CAAC;;AAKR,IAAA,WAAW,CAAC,QAAgB,EAAA;QAClC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;AACzB,YAAA,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;AAEA;AAAC,CAAC,EAAE,EAAE;;AClVP;;;;;;;;;;;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;AAEA;AAAC,CAAC,EAAE,EAAE;;AChCP;;AAEG;;;;"}
|
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}\n","\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];\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}\n","//#region imports\n/* */\n/* */\n \nimport { path, _, crossPlatformPath } from 'tnp-core/browser';\nimport { ChangeOfFile } from './change-of-file';\nimport { CompilerManager } from './compiler-manager';\nimport { Models } from './models';\nimport { Helpers } from 'tnp-core/browser';\nimport { CLI } from 'tnp-core/browser';\nimport { CoreModels } from 'tnp-core/browser';\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 ignoreFolderPatter?: string[];\n public readonly notifyOnFileUnlink: boolean;\n/* */\n/* */\n \n private pathResolve: boolean = false;\n private initedWithOptions = 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 / is inited\n get isInited() {\n return this.initedWithOptions;\n }\n //#endregion\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/* */\n/* */\n return (void 0);\n }\n //#endregion\n\n protected onlySingleRun = true;\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}\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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["incBase.BaseClientCompiler","change.ChangeOfFile"],"mappings":";;AAAA;AAGA;MAEa,YAAY,CAAA;AAGvB,IAAA,WAAA,CACS,mBAA2B,KAAK,CAAC,EACxB,SAAA,GAIE,KAAK,CAAC,EAAA;QALjB,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB;QACP,IAAS,CAAA,SAAA,GAAT,S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