incremental-compiler 21.0.65 → 21.0.67
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/VERIFIED-BUILD-DATA.jsonc +3 -3
- package/browser/package.json +1 -1
- package/browser-prod/package.json +1 -1
- package/full-dts/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/package.json +1 -1
- package/lib-esm/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib-esm/lib/build-info._auto-generated_.js +1 -1
- package/lib-prod/build-info._auto-generated_.d.ts +1 -1
- package/lib-prod/build-info._auto-generated_.js +1 -1
- package/lib-prod/package.json +1 -1
- package/package.json +1 -1
- package/ts-source/browser-code/base-client-compiler.ts +75 -0
- package/ts-source/browser-code/build-info._auto-generated_.ts +18 -0
- package/ts-source/browser-code/compiler-manager.ts +49 -0
- package/ts-source/browser-code/constants.ts +18 -0
- package/ts-source/browser-code/helpers.ts +29 -0
- package/ts-source/browser-code/incremental-watcher.ts +20 -0
- package/ts-source/browser-code/index._auto-generated_.ts +12 -0
- package/ts-source/browser-code/index.scss +11 -0
- package/ts-source/browser-code/index.ts +16 -0
- package/ts-source/browser-code/lib-info.md +8 -0
- package/ts-source/browser-code/migrations/index.ts +13 -0
- package/ts-source/browser-code/migrations/migrations-info.md +6 -0
- package/ts-source/browser-code/migrations/migrations_index._auto-generated_.ts +12 -0
- package/ts-source/browser-code/models.ts +59 -0
- package/ts-source/browser-code/parcel-watcher-adapter.ts +92 -0
- package/ts-source/browser-code-prod/base-client-compiler.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/base-client-compiler.ts +75 -0
- package/ts-source/browser-code-prod/build-info._auto-generated_.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/build-info._auto-generated_.ts +18 -0
- package/ts-source/browser-code-prod/compiler-manager.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/compiler-manager.ts +49 -0
- package/ts-source/browser-code-prod/constants.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/constants.ts +18 -0
- package/ts-source/browser-code-prod/helpers.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/helpers.ts +29 -0
- package/ts-source/browser-code-prod/incremental-watcher.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/incremental-watcher.ts +20 -0
- package/ts-source/browser-code-prod/index._auto-generated_.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/index._auto-generated_.ts +12 -0
- package/ts-source/browser-code-prod/index.scss +11 -0
- package/ts-source/browser-code-prod/index.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/index.ts +16 -0
- package/ts-source/browser-code-prod/lib-info.md +8 -0
- package/ts-source/browser-code-prod/migrations/index.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/migrations/index.ts +13 -0
- package/ts-source/browser-code-prod/migrations/migrations-info.md +6 -0
- package/ts-source/browser-code-prod/migrations/migrations_index._auto-generated_.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/migrations/migrations_index._auto-generated_.ts +12 -0
- package/ts-source/browser-code-prod/models.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/models.ts +59 -0
- package/ts-source/browser-code-prod/parcel-watcher-adapter.split-namespaces.json +4 -0
- package/ts-source/browser-code-prod/parcel-watcher-adapter.ts +92 -0
- package/ts-source/websql-code/base-client-compiler.ts +75 -0
- package/ts-source/websql-code/build-info._auto-generated_.ts +18 -0
- package/ts-source/websql-code/compiler-manager.ts +49 -0
- package/ts-source/websql-code/constants.ts +18 -0
- package/ts-source/websql-code/helpers.ts +29 -0
- package/ts-source/websql-code/incremental-watcher.ts +20 -0
- package/ts-source/websql-code/index._auto-generated_.ts +12 -0
- package/ts-source/websql-code/index.scss +11 -0
- package/ts-source/websql-code/index.ts +16 -0
- package/ts-source/websql-code/lib-info.md +8 -0
- package/ts-source/websql-code/migrations/index.ts +13 -0
- package/ts-source/websql-code/migrations/migrations-info.md +6 -0
- package/ts-source/websql-code/migrations/migrations_index._auto-generated_.ts +12 -0
- package/ts-source/websql-code/models.ts +59 -0
- package/ts-source/websql-code/parcel-watcher-adapter.ts +92 -0
- package/ts-source/websql-code-prod/base-client-compiler.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/base-client-compiler.ts +75 -0
- package/ts-source/websql-code-prod/build-info._auto-generated_.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/build-info._auto-generated_.ts +18 -0
- package/ts-source/websql-code-prod/compiler-manager.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/compiler-manager.ts +49 -0
- package/ts-source/websql-code-prod/constants.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/constants.ts +18 -0
- package/ts-source/websql-code-prod/helpers.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/helpers.ts +29 -0
- package/ts-source/websql-code-prod/incremental-watcher.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/incremental-watcher.ts +20 -0
- package/ts-source/websql-code-prod/index._auto-generated_.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/index._auto-generated_.ts +12 -0
- package/ts-source/websql-code-prod/index.scss +11 -0
- package/ts-source/websql-code-prod/index.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/index.ts +16 -0
- package/ts-source/websql-code-prod/lib-info.md +8 -0
- package/ts-source/websql-code-prod/migrations/index.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/migrations/index.ts +13 -0
- package/ts-source/websql-code-prod/migrations/migrations-info.md +6 -0
- package/ts-source/websql-code-prod/migrations/migrations_index._auto-generated_.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/migrations/migrations_index._auto-generated_.ts +12 -0
- package/ts-source/websql-code-prod/models.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/models.ts +59 -0
- package/ts-source/websql-code-prod/parcel-watcher-adapter.split-namespaces.json +4 -0
- package/ts-source/websql-code-prod/parcel-watcher-adapter.ts +92 -0
- package/websql/package.json +1 -1
- package/websql-prod/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"commitHash": "
|
|
3
|
-
"commitName": "release: v21.0.
|
|
4
|
-
"commitDate": "
|
|
2
|
+
"commitHash": "957822574b3d61c1de24f31a66de6b1c29237589",
|
|
3
|
+
"commitName": "release: v21.0.66",
|
|
4
|
+
"commitDate": "18-10-2026 20:43:50"
|
|
5
5
|
}
|
package/browser/package.json
CHANGED
|
@@ -25,6 +25,6 @@ exports.CURRENT_PACKAGE_TAON_VERSION = 'v21';
|
|
|
25
25
|
/**
|
|
26
26
|
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
27
27
|
*/
|
|
28
|
-
exports.CURRENT_PACKAGE_VERSION = '21.0.
|
|
28
|
+
exports.CURRENT_PACKAGE_VERSION = '21.0.67';
|
|
29
29
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
30
30
|
//# sourceMappingURL=build-info._auto-generated_.js.map
|
package/lib/package.json
CHANGED
|
@@ -22,6 +22,6 @@ export const CURRENT_PACKAGE_TAON_VERSION = 'v21';
|
|
|
22
22
|
/**
|
|
23
23
|
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
24
24
|
*/
|
|
25
|
-
export const CURRENT_PACKAGE_VERSION = '21.0.
|
|
25
|
+
export const CURRENT_PACKAGE_VERSION = '21.0.67';
|
|
26
26
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
27
27
|
//# sourceMappingURL=build-info._auto-generated_.js.map
|
|
@@ -22,6 +22,6 @@ export const CURRENT_PACKAGE_TAON_VERSION = 'v21';
|
|
|
22
22
|
/**
|
|
23
23
|
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
24
24
|
*/
|
|
25
|
-
export const CURRENT_PACKAGE_VERSION = '21.0.
|
|
25
|
+
export const CURRENT_PACKAGE_VERSION = '21.0.67';
|
|
26
26
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
27
27
|
//# sourceMappingURL=build-info._auto-generated_.js.map
|
package/lib-prod/package.json
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
|
|
4
|
+
- TAON READONLY SOURCE
|
|
5
|
+
- DO NOT MODIFY THIS FILE.
|
|
6
|
+
- Changes may be overwritten.
|
|
7
|
+
- Use command: taon build:lib:watch
|
|
8
|
+
inside incremental-compiler project repository
|
|
9
|
+
for watch development of third party modules like this.
|
|
10
|
+
|
|
11
|
+
* ========================================================================== */
|
|
12
|
+
|
|
13
|
+
import { path, _, crossPlatformPath, UtilsMessages } from 'tnp-core/browser';
|
|
14
|
+
import { Helpers } from 'tnp-core/browser';
|
|
15
|
+
import { CLI } from 'tnp-core/browser';
|
|
16
|
+
import { CoreModels } from 'tnp-core/browser';
|
|
17
|
+
import { CompilerManager } from './compiler-manager';
|
|
18
|
+
import { mapForWatching } from './helpers';
|
|
19
|
+
import { ChangeOfFile, IncrementalWatcherOptions } from './models';
|
|
20
|
+
import { BaseClientCompilerOptions, StartAndWatchOptions, StartOptions, } from './models';
|
|
21
|
+
export class BaseClientCompiler<INITIAL_PARAMS = any> implements BaseClientCompilerOptions {
|
|
22
|
+
public readonly followSymlinks: boolean;
|
|
23
|
+
public readonly subscribeOnlyFor: CoreModels.FileExtension[] = [];
|
|
24
|
+
public readonly executeOutsideScenario: boolean;
|
|
25
|
+
public readonly taskName: string;
|
|
26
|
+
public readonly engine: IncrementalWatcherOptions['engine'];
|
|
27
|
+
public readonly debounceEventsTime: number | undefined;
|
|
28
|
+
public readonly notifyOnFileUnlink: boolean;
|
|
29
|
+
protected onlySingleRun = true;
|
|
30
|
+
public ignoreFolderPatter?: string[];
|
|
31
|
+
private pathResolve: boolean = false;
|
|
32
|
+
private isInitedWithOptions: boolean = false;
|
|
33
|
+
private __folderPath: string[] = [];
|
|
34
|
+
public lastAsyncFiles: string[] = [];
|
|
35
|
+
public readonly isWatchCompilation: boolean = false;
|
|
36
|
+
public readonly folderPathContentCheck: string[] = [];
|
|
37
|
+
public set folderPath(v) {
|
|
38
|
+
}
|
|
39
|
+
public get folderPath(): string[] {
|
|
40
|
+
return (void 0);
|
|
41
|
+
}
|
|
42
|
+
protected initOptions(options?: BaseClientCompilerOptions): void {
|
|
43
|
+
return (void 0);
|
|
44
|
+
}
|
|
45
|
+
async runTask(options?: {
|
|
46
|
+
watch?: boolean;
|
|
47
|
+
} & StartAndWatchOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>> {
|
|
48
|
+
return (void 0);
|
|
49
|
+
}
|
|
50
|
+
public async start(options?: StartOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>> {
|
|
51
|
+
return (void 0);
|
|
52
|
+
}
|
|
53
|
+
public async startAndWatch(options?: StartAndWatchOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>> {
|
|
54
|
+
return (void 0);
|
|
55
|
+
}
|
|
56
|
+
public syncAction(absolteFilesPathes?: string[], initialParams?: INITIAL_PARAMS): Promise<void> {
|
|
57
|
+
return void 0;
|
|
58
|
+
}
|
|
59
|
+
public async preAsyncAction(initialParams?: INITIAL_PARAMS): Promise<void> { }
|
|
60
|
+
public asyncAction(asyncEvents: ChangeOfFile, initialParams?: INITIAL_PARAMS): Promise<void> {
|
|
61
|
+
return void 0;
|
|
62
|
+
}
|
|
63
|
+
public getFilesFolderPatternsToWatch(): string[] {
|
|
64
|
+
return (void 0);
|
|
65
|
+
}
|
|
66
|
+
private fixAndAssignOptions(options?: BaseClientCompilerOptions): void {
|
|
67
|
+
return (void 0);
|
|
68
|
+
}
|
|
69
|
+
private fixTaskName(taskName: string): string {
|
|
70
|
+
if (!_.isString(taskName)) {
|
|
71
|
+
taskName = `${this.taskName}`;
|
|
72
|
+
}
|
|
73
|
+
return taskName;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
|
|
4
|
+
- TAON READONLY SOURCE
|
|
5
|
+
- DO NOT MODIFY THIS FILE.
|
|
6
|
+
- Changes may be overwritten.
|
|
7
|
+
- Use command: taon build:lib:watch
|
|
8
|
+
inside incremental-compiler project repository
|
|
9
|
+
for watch development of third party modules like this.
|
|
10
|
+
|
|
11
|
+
* ========================================================================== */
|
|
12
|
+
|
|
13
|
+
export const BUILD_FRAMEWORK_CLI_NAME = 'tnp';
|
|
14
|
+
export const APP_ID = 'com.domain.example.incremental-compiler';
|
|
15
|
+
export const BUILD_BASE_HREF = '';
|
|
16
|
+
export const PROJECT_NPM_NAME = 'incremental-compiler';
|
|
17
|
+
export const CURRENT_PACKAGE_TAON_VERSION = 'v21';
|
|
18
|
+
export const CURRENT_PACKAGE_VERSION = '21.0.67';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
|
|
4
|
+
- TAON READONLY SOURCE
|
|
5
|
+
- DO NOT MODIFY THIS FILE.
|
|
6
|
+
- Changes may be overwritten.
|
|
7
|
+
- Use command: taon build:lib:watch
|
|
8
|
+
inside incremental-compiler project repository
|
|
9
|
+
for watch development of third party modules like this.
|
|
10
|
+
|
|
11
|
+
* ========================================================================== */
|
|
12
|
+
|
|
13
|
+
import { path, _, crossPlatformPath } from 'tnp-core/browser';
|
|
14
|
+
import { Helpers } from 'tnp-core/browser';
|
|
15
|
+
import { CoreModels } from 'tnp-core/browser';
|
|
16
|
+
import { BaseClientCompiler } from './base-client-compiler';
|
|
17
|
+
import { IGNORE_BY_DEFAULT } from './constants';
|
|
18
|
+
import { getFilesByPattern } from './helpers';
|
|
19
|
+
import { incrementalWatcher } from './incremental-watcher';
|
|
20
|
+
import { ChangeOfFile } from './models';
|
|
21
|
+
import { IncrementalWatcherEvents, IncrementalWatcherInstance } from './models';
|
|
22
|
+
export class CompilerManager {
|
|
23
|
+
private static _instance: CompilerManager;
|
|
24
|
+
public static get Instance(): CompilerManager {
|
|
25
|
+
if (!this._instance) {
|
|
26
|
+
this._instance = new CompilerManager();
|
|
27
|
+
}
|
|
28
|
+
return this._instance;
|
|
29
|
+
}
|
|
30
|
+
private clients: BaseClientCompiler<any>[] = [];
|
|
31
|
+
private asyncEventScenario: (event: ChangeOfFile) => Promise<ChangeOfFile>;
|
|
32
|
+
private filesContentCache = {};
|
|
33
|
+
private constructor() { }
|
|
34
|
+
public async syncInit(client: BaseClientCompiler<any>, initialParams: any): Promise<void> {
|
|
35
|
+
return (void 0);
|
|
36
|
+
}
|
|
37
|
+
public async asyncInit(client: BaseClientCompiler<any>, initialParams: any): Promise<void> {
|
|
38
|
+
return (void 0);
|
|
39
|
+
}
|
|
40
|
+
private async actionForAsyncEvent(event: IncrementalWatcherEvents, absoluteFilePath: string, client: BaseClientCompiler<any>, initialParams: any): Promise<void> {
|
|
41
|
+
return (void 0);
|
|
42
|
+
}
|
|
43
|
+
public addClient(client: BaseClientCompiler<any>): void {
|
|
44
|
+
return (void 0);
|
|
45
|
+
}
|
|
46
|
+
private fileShouldBeChecked(absFilePath: string, client: BaseClientCompiler<any>): boolean {
|
|
47
|
+
return (void 0);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
|
|
4
|
+
- TAON READONLY SOURCE
|
|
5
|
+
- DO NOT MODIFY THIS FILE.
|
|
6
|
+
- Changes may be overwritten.
|
|
7
|
+
- Use command: taon build:lib:watch
|
|
8
|
+
inside incremental-compiler project repository
|
|
9
|
+
for watch development of third party modules like this.
|
|
10
|
+
|
|
11
|
+
* ========================================================================== */
|
|
12
|
+
|
|
13
|
+
export const IGNORE_BY_DEFAULT = [
|
|
14
|
+
'**/node_modules/**/*.*',
|
|
15
|
+
'**/node_modules',
|
|
16
|
+
'**/.git/**/*.*',
|
|
17
|
+
'**/.git',
|
|
18
|
+
];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
|
|
4
|
+
- TAON READONLY SOURCE
|
|
5
|
+
- DO NOT MODIFY THIS FILE.
|
|
6
|
+
- Changes may be overwritten.
|
|
7
|
+
- Use command: taon build:lib:watch
|
|
8
|
+
inside incremental-compiler project repository
|
|
9
|
+
for watch development of third party modules like this.
|
|
10
|
+
|
|
11
|
+
* ========================================================================== */
|
|
12
|
+
|
|
13
|
+
import { crossPlatformPath, fg, fse, Helpers, path, Utils, UtilsStringRegex, UtilsTime, } from 'tnp-core/browser';
|
|
14
|
+
const maybemuchEntries = 10000;
|
|
15
|
+
export const getFilesByPattern = ({ globPath, ignorePatterns = [], followSymlinks = true, searchStrategy = 'folders-and-files', taskName, }: {
|
|
16
|
+
globPath: string;
|
|
17
|
+
ignorePatterns: string[];
|
|
18
|
+
followSymlinks: boolean;
|
|
19
|
+
searchStrategy: 'files-only' | 'folders-and-files' | 'folders-only';
|
|
20
|
+
taskName?: string;
|
|
21
|
+
}): string[] => {
|
|
22
|
+
return (void 0);
|
|
23
|
+
};
|
|
24
|
+
export const mapForWatching = (c: string): string[] => {
|
|
25
|
+
return (void 0);
|
|
26
|
+
};
|
|
27
|
+
export const stripGlobToDir = (globPath: string): string => {
|
|
28
|
+
return (void 0);
|
|
29
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
|
|
4
|
+
- TAON READONLY SOURCE
|
|
5
|
+
- DO NOT MODIFY THIS FILE.
|
|
6
|
+
- Changes may be overwritten.
|
|
7
|
+
- Use command: taon build:lib:watch
|
|
8
|
+
inside incremental-compiler project repository
|
|
9
|
+
for watch development of third party modules like this.
|
|
10
|
+
|
|
11
|
+
* ========================================================================== */
|
|
12
|
+
|
|
13
|
+
import { _, path, frameworkName, Helpers, tnpPackageName, taonPackageName, } from 'tnp-core/browser';
|
|
14
|
+
import { chokidar } from 'tnp-core/browser';
|
|
15
|
+
import { IncrementalWatcherInstance } from './models';
|
|
16
|
+
import { IncrementalWatcherOptions } from './models';
|
|
17
|
+
import { ParcelWatcherAdapter } from './parcel-watcher-adapter';
|
|
18
|
+
export function incrementalWatcher(filesFolderPathOrPatternsToWatch: string[], watchOptions: IncrementalWatcherOptions): IncrementalWatcherInstance {
|
|
19
|
+
return (void 0);
|
|
20
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
|
|
4
|
+
- TAON READONLY SOURCE
|
|
5
|
+
- DO NOT MODIFY THIS FILE.
|
|
6
|
+
- Changes may be overwritten.
|
|
7
|
+
- Use command: taon build:lib:watch
|
|
8
|
+
inside incremental-compiler project repository
|
|
9
|
+
for watch development of third party modules like this.
|
|
10
|
+
|
|
11
|
+
* ========================================================================== */
|
|
12
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
|
|
3
|
+
- TAON READONLY SOURCE
|
|
4
|
+
- DO NOT MODIFY THIS FILE.
|
|
5
|
+
- Changes may be overwritten.
|
|
6
|
+
- Use command: taon build:lib:watch
|
|
7
|
+
inside incremental-compiler project repository
|
|
8
|
+
for watch development of third party modules like this.
|
|
9
|
+
|
|
10
|
+
* ========================================================================== */
|
|
11
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
|
|
4
|
+
- TAON READONLY SOURCE
|
|
5
|
+
- DO NOT MODIFY THIS FILE.
|
|
6
|
+
- Changes may be overwritten.
|
|
7
|
+
- Use command: taon build:lib:watch
|
|
8
|
+
inside incremental-compiler project repository
|
|
9
|
+
for watch development of third party modules like this.
|
|
10
|
+
|
|
11
|
+
* ========================================================================== */
|
|
12
|
+
|
|
13
|
+
export * from './constants';
|
|
14
|
+
export * from './models';
|
|
15
|
+
export * from './incremental-watcher';
|
|
16
|
+
export * from './base-client-compiler';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
|
|
4
|
+
- TAON READONLY SOURCE
|
|
5
|
+
- DO NOT MODIFY THIS FILE.
|
|
6
|
+
- Changes may be overwritten.
|
|
7
|
+
- Use command: taon build:lib:watch
|
|
8
|
+
inside incremental-compiler project repository
|
|
9
|
+
for watch development of third party modules like this.
|
|
10
|
+
|
|
11
|
+
* ========================================================================== */
|
|
12
|
+
|
|
13
|
+
export * from './migrations_index._auto-generated_';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
|
|
4
|
+
- TAON READONLY SOURCE
|
|
5
|
+
- DO NOT MODIFY THIS FILE.
|
|
6
|
+
- Changes may be overwritten.
|
|
7
|
+
- Use command: taon build:lib:watch
|
|
8
|
+
inside incremental-compiler project repository
|
|
9
|
+
for watch development of third party modules like this.
|
|
10
|
+
|
|
11
|
+
* ========================================================================== */
|
|
12
|
+
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
|
|
4
|
+
- TAON READONLY SOURCE
|
|
5
|
+
- DO NOT MODIFY THIS FILE.
|
|
6
|
+
- Changes may be overwritten.
|
|
7
|
+
- Use command: taon build:lib:watch
|
|
8
|
+
inside incremental-compiler project repository
|
|
9
|
+
for watch development of third party modules like this.
|
|
10
|
+
|
|
11
|
+
* ========================================================================== */
|
|
12
|
+
|
|
13
|
+
import { CoreModels } from 'tnp-core/browser';
|
|
14
|
+
export interface StartAndWatchOptions<INIT_PARAMS = any> {
|
|
15
|
+
afterInitCallBack?: (initialParams?: INIT_PARAMS) => void;
|
|
16
|
+
watchOnly?: boolean;
|
|
17
|
+
taskName?: string;
|
|
18
|
+
initialParams?: INIT_PARAMS;
|
|
19
|
+
}
|
|
20
|
+
export type StartOptions<T = any> = Omit<StartAndWatchOptions<T>, 'watchOnly'>;
|
|
21
|
+
export interface BaseClientCompilerOptions {
|
|
22
|
+
taskName: string;
|
|
23
|
+
folderPath?: string | string[];
|
|
24
|
+
folderPathContentCheck?: string | string[];
|
|
25
|
+
followSymlinks?: boolean;
|
|
26
|
+
notifyOnFileUnlink?: boolean;
|
|
27
|
+
ignoreFolderPatter?: string[];
|
|
28
|
+
debounceEventsTime?: number | undefined;
|
|
29
|
+
subscribeOnlyFor?: CoreModels.FileExtension[];
|
|
30
|
+
engine?: IncrementalWatcherOptions['engine'];
|
|
31
|
+
}
|
|
32
|
+
export interface ParcelEvent {
|
|
33
|
+
path: string;
|
|
34
|
+
type: ParcelEventType;
|
|
35
|
+
}
|
|
36
|
+
export type IncrementalWatcherAllEvents = 'all' | IncrementalWatcherEvents;
|
|
37
|
+
export type ListenerForAll = (eventName: IncrementalWatcherEvents, path: string) => void;
|
|
38
|
+
export type ListenerForSingleEvent = (path: string) => void;
|
|
39
|
+
export type Listener = ListenerForAll | ListenerForSingleEvent;
|
|
40
|
+
export interface IncrementalWatcherInstance {
|
|
41
|
+
add(paths: string | ReadonlyArray<string>): void;
|
|
42
|
+
on(event: 'all', listener: ListenerForAll): this;
|
|
43
|
+
on(event: IncrementalWatcherAllEvents, listener: ListenerForSingleEvent): this;
|
|
44
|
+
}
|
|
45
|
+
export interface IncrementalWatcherOptions {
|
|
46
|
+
ignored?: string[];
|
|
47
|
+
ignoreInitial?: boolean;
|
|
48
|
+
followSymlinks?: boolean;
|
|
49
|
+
debounceEventsTime?: number;
|
|
50
|
+
name: string;
|
|
51
|
+
engine?: 'chokidar' | '@parcel/watcher';
|
|
52
|
+
}
|
|
53
|
+
export type IncrementalWatcherEvents = 'add' | 'addDir' | 'change' | 'unlink' | 'unlinkDir';
|
|
54
|
+
export type ParcelEventType = 'create' | 'update' | 'delete';
|
|
55
|
+
export interface ChangeOfFile {
|
|
56
|
+
datetime: Date;
|
|
57
|
+
fileAbsolutePath: string;
|
|
58
|
+
eventName: 'add' | 'change' | 'unlink' | 'unlinkDir';
|
|
59
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
|
|
4
|
+
- TAON READONLY SOURCE
|
|
5
|
+
- DO NOT MODIFY THIS FILE.
|
|
6
|
+
- Changes may be overwritten.
|
|
7
|
+
- Use command: taon build:lib:watch
|
|
8
|
+
inside incremental-compiler project repository
|
|
9
|
+
for watch development of third party modules like this.
|
|
10
|
+
|
|
11
|
+
* ========================================================================== */
|
|
12
|
+
|
|
13
|
+
import type { AsyncSubscription, Event } from '@parcel/watcher';
|
|
14
|
+
import type parcelWatcher from '@parcel/watcher';
|
|
15
|
+
import anymatch from 'anymatch';
|
|
16
|
+
import { chokidar, fg, UtilsStringRegex } from 'tnp-core/browser';
|
|
17
|
+
import { crossPlatformPath, fse, glob, _ } from 'tnp-core/browser';
|
|
18
|
+
import { Helpers, Utils } from 'tnp-core/browser';
|
|
19
|
+
import { path } from 'tnp-core/browser';
|
|
20
|
+
import { IGNORE_BY_DEFAULT } from './constants';
|
|
21
|
+
import { getFilesByPattern, stripGlobToDir } from './helpers';
|
|
22
|
+
import { IncrementalWatcherAllEvents, Listener, ListenerForSingleEvent, ParcelEventType, ParcelEvent, IncrementalWatcherInstance, } from './models';
|
|
23
|
+
import { IncrementalWatcherOptions } from './models';
|
|
24
|
+
interface WatcherNotifierEvent {
|
|
25
|
+
listener: Listener;
|
|
26
|
+
eventAllowed: IncrementalWatcherAllEvents;
|
|
27
|
+
eventFromWatcher: ParcelEvent;
|
|
28
|
+
}
|
|
29
|
+
export class ParcelWatcherAdapter implements Partial<IncrementalWatcherInstance> {
|
|
30
|
+
public static instances: ParcelWatcherAdapter[] = [];
|
|
31
|
+
private pathsToWatch: string[] = [];
|
|
32
|
+
private listenerData: {
|
|
33
|
+
listenerFromOnFn: Listener;
|
|
34
|
+
allowedEvent: IncrementalWatcherAllEvents;
|
|
35
|
+
}[] = [];
|
|
36
|
+
private subs: AsyncSubscription[] = [];
|
|
37
|
+
private alreadyStarted: boolean = false;
|
|
38
|
+
private allFilesAndFoldersInitial: string[] = [];
|
|
39
|
+
private foldersPathes: {
|
|
40
|
+
[folderAbsPath: string]: boolean;
|
|
41
|
+
} = {};
|
|
42
|
+
private readonly ignore: IncrementalWatcherOptions['ignored'];
|
|
43
|
+
private readonly ignoreInitial: IncrementalWatcherOptions['ignoreInitial'];
|
|
44
|
+
private readonly followSymlinks: IncrementalWatcherOptions['followSymlinks'];
|
|
45
|
+
private readonly engine: IncrementalWatcherOptions['engine'];
|
|
46
|
+
private readonly name: IncrementalWatcherOptions['name'];
|
|
47
|
+
private readonly debounceEventsTime: number | undefined;
|
|
48
|
+
constructor(filesFolderPathOrPatternsToWatch: string[], initialOptions: IncrementalWatcherOptions) {
|
|
49
|
+
}
|
|
50
|
+
private async stopWatching(): Promise<void> {
|
|
51
|
+
return (void 0);
|
|
52
|
+
}
|
|
53
|
+
public async startWatching(options?: {}): Promise<void> {
|
|
54
|
+
return (void 0);
|
|
55
|
+
}
|
|
56
|
+
add(pathToAdd: string | string[], options?: {
|
|
57
|
+
fistTimeAdding?: boolean;
|
|
58
|
+
}): void {
|
|
59
|
+
return (void 0);
|
|
60
|
+
}
|
|
61
|
+
on(allowedEvent: IncrementalWatcherAllEvents, listenerFromOnFn: Listener): this {
|
|
62
|
+
return (void 0);
|
|
63
|
+
}
|
|
64
|
+
private handleErrors(watchingStartErr): void {
|
|
65
|
+
console.warn(watchingStartErr);
|
|
66
|
+
}
|
|
67
|
+
private fileDebouncers = new Map<string, ReturnType<typeof _.debounce>>();
|
|
68
|
+
private fileEventBuffers = new Map<string, WatcherNotifierEvent[]>();
|
|
69
|
+
private notifyListener(evenData: WatcherNotifierEvent): void {
|
|
70
|
+
return (void 0);
|
|
71
|
+
}
|
|
72
|
+
private handleEventData(eventData: WatcherNotifierEvent): void {
|
|
73
|
+
return (void 0);
|
|
74
|
+
}
|
|
75
|
+
private chokidarToParcel(event: string, filePath: string): ParcelEvent | null {
|
|
76
|
+
switch (event) {
|
|
77
|
+
case 'add':
|
|
78
|
+
case 'addDir':
|
|
79
|
+
return { path: filePath, type: 'create' };
|
|
80
|
+
case 'change':
|
|
81
|
+
return { path: filePath, type: 'update' };
|
|
82
|
+
case 'unlink':
|
|
83
|
+
case 'unlinkDir':
|
|
84
|
+
return { path: filePath, type: 'delete' };
|
|
85
|
+
default:
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
private pushInitial(): void {
|
|
90
|
+
return (void 0);
|
|
91
|
+
}
|
|
92
|
+
}
|