incremental-compiler 21.0.3 → 21.0.5
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/browser/fesm2022/incremental-compiler.mjs.map +1 -1
- package/browser/package.json +1 -1
- package/browser/types/incremental-compiler.d.ts +126 -0
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/package.json +1 -1
- package/tmp-environment.json +5 -11
- package/websql/fesm2022/incremental-compiler.mjs.map +1 -1
- package/websql/package.json +1 -1
- package/websql/types/incremental-compiler.d.ts +126 -0
- package/browser/index.d.ts +0 -6
- package/browser/lib/base-client-compiler.d.ts +0 -53
- package/browser/lib/compiler-manager.d.ts +0 -15
- package/browser/lib/constants.d.ts +0 -2
- package/browser/lib/helpers.d.ts +0 -13
- package/browser/lib/incremental-watcher.d.ts +0 -4
- package/browser/lib/index.d.ts +0 -5
- package/browser/lib/models.d.ts +0 -68
- package/browser/lib/parcel-watcher-adapter.d.ts +0 -31
- package/browser/public-api.d.ts +0 -2
- package/lib/base-client-compiler.backend.d.ts +0 -56
- package/lib/base-client-compiler.backend.js +0 -325
- package/lib/base-client-compiler.backend.js.map +0 -1
- package/lib/change-of-file.backend.d.ts +0 -8
- package/lib/change-of-file.backend.js +0 -25
- package/lib/change-of-file.backend.js.map +0 -1
- package/lib/compiler-manager.backend.d.ts +0 -16
- package/lib/compiler-manager.backend.js +0 -213
- package/lib/compiler-manager.backend.js.map +0 -1
- package/lib/decorators.backend.d.ts +0 -5
- package/lib/decorators.backend.js +0 -56
- package/lib/decorators.backend.js.map +0 -1
- package/lib/helpers.backend.d.ts +0 -3
- package/lib/helpers.backend.js +0 -31
- package/lib/helpers.backend.js.map +0 -1
- package/package.json_devDependencies.json +0 -216
- package/package.json_tnp.json5 +0 -58
- package/websql/index.d.ts +0 -6
- package/websql/lib/base-client-compiler.d.ts +0 -53
- package/websql/lib/compiler-manager.d.ts +0 -15
- package/websql/lib/constants.d.ts +0 -2
- package/websql/lib/helpers.d.ts +0 -13
- package/websql/lib/incremental-watcher.d.ts +0 -4
- package/websql/lib/index.d.ts +0 -5
- package/websql/lib/models.d.ts +0 -68
- package/websql/lib/parcel-watcher-adapter.d.ts +0 -31
- package/websql/public-api.d.ts +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"incremental-compiler.mjs","sources":["../../../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.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":["export const IGNORE_BY_DEFAULT = [\n '**/node_modules/**/*.*',\n '**/node_modules',\n '**/.git/**/*.*',\n '**/.git',\n];","//#region imports\nimport { _, path, frameworkName, Helpers } from 'tnp-core/browser';\nimport { chokidar } from 'tnp-core/browser';\n\nimport { IncrementalWatcherInstance } from './models';\nimport { IncrementalWatcherOptions } from './models';\nimport { ParcelWatcherAdapter } from './parcel-watcher-adapter';\n//#endregion\n\nexport function incrementalWatcher(\n filesFolderPathOrPatternsToWatch: string[],\n watchOptions: IncrementalWatcherOptions,\n): 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 return (void 0);\n}","//#region imports\n/* */ \nimport { path, _, crossPlatformPath, UtilsMessages } from 'tnp-core/browser';\nimport { Helpers } from 'tnp-core/browser';\nimport { CLI } from 'tnp-core/browser';\nimport { CoreModels } from 'tnp-core/browser';\n\nimport { CompilerManager } from './compiler-manager';\nimport { mapForWatching } from './helpers';\nimport { ChangeOfFile, IncrementalWatcherOptions } from './models';\nimport {\n BaseClientCompilerOptions,\n StartAndWatchOptions,\n StartOptions,\n} from './models';\n//#endregion\n\nexport class BaseClientCompiler<INITIAL_PARAMS = any>\n implements BaseClientCompilerOptions\n{\n //#region fields & getters\n public readonly followSymlinks: boolean;\n\n public readonly subscribeOnlyFor: CoreModels.FileExtension[] = [];\n\n public readonly executeOutsideScenario: boolean;\n\n public readonly taskName: string;\n\n public readonly engine: IncrementalWatcherOptions['engine'];\n\n public readonly notifyOnFileUnlink: boolean;\n\n protected onlySingleRun = true;\n\n public ignoreFolderPatter?: string[];\n\n private pathResolve: boolean = false;\n\n private isInitedWithOptions: boolean = false;\n\n private __folderPath: string[] = [];\n\n public lastAsyncFiles: string[] = [];\n\n public readonly isWatchCompilation: boolean = false;\n\n public readonly folderPathContentCheck: string[] = [];\n\n public set folderPath(v) {\n/* */\n/* */\n/* */\n/* */\n/* */\n \n }\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 //#region constructor\n/* */\n/* */\n/* */\n/* */\n/* */\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?: BaseClientCompilerOptions): void {\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 run task\n /**\n * do not override this\n */\n async runTask(\n options?: { watch?: boolean } & StartAndWatchOptions<INITIAL_PARAMS>,\n ): Promise<BaseClientCompiler<INITIAL_PARAMS>> {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n //#endregion\n\n //#region start\n /**\n * @deprecated use runTask instead\n * Do not override this\n */\n public async start(\n options?: 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 start and watch\n /**\n * @deprecated use runTask instead\n * Do not override this\n */\n public async startAndWatch(\n options?: 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 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 pre async action\n public async preAsyncAction(initialParams?: INITIAL_PARAMS): Promise<void> {}\n //#endregion\n\n //#region async action\n public asyncAction(\n asyncEvents: ChangeOfFile,\n initialParams?: INITIAL_PARAMS,\n ): Promise<void> {\n return void 0;\n }\n //#endregion\n\n //#region get files to watch\n public getFilesFolderPatternsToWatch(): string[] {\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\n\n //#region private methods / fix and assign options\n private fixAndAssignOptions(options?: BaseClientCompilerOptions): void {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\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): string {\n if (!_.isString(taskName)) {\n taskName = `task \"${this.taskName}\"`;\n }\n return taskName;\n }\n //#endregion\n\n //#endregion\n}","export * from './constants';\nexport * from './models';\nexport * from './incremental-watcher';\nexport * from './base-client-compiler';\n/* */ ","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"incremental-compiler.mjs","sources":["../../../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.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":["export const IGNORE_BY_DEFAULT = [\n '**/node_modules/**/*.*',\n '**/node_modules',\n '**/.git/**/*.*',\n '**/.git',\n];","//#region imports\nimport { _, path, frameworkName, Helpers } from 'tnp-core/browser';\nimport { chokidar } from 'tnp-core/browser';\n\nimport { IncrementalWatcherInstance } from './models';\nimport { IncrementalWatcherOptions } from './models';\nimport { ParcelWatcherAdapter } from './parcel-watcher-adapter';\n//#endregion\n\nexport function incrementalWatcher(\n filesFolderPathOrPatternsToWatch: string[],\n watchOptions: IncrementalWatcherOptions,\n): 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 return (void 0);\n}","//#region imports\n/* */ \nimport { path, _, crossPlatformPath, UtilsMessages } from 'tnp-core/browser';\nimport { Helpers } from 'tnp-core/browser';\nimport { CLI } from 'tnp-core/browser';\nimport { CoreModels } from 'tnp-core/browser';\n\nimport { CompilerManager } from './compiler-manager';\nimport { mapForWatching } from './helpers';\nimport { ChangeOfFile, IncrementalWatcherOptions } from './models';\nimport {\n BaseClientCompilerOptions,\n StartAndWatchOptions,\n StartOptions,\n} from './models';\n//#endregion\n\nexport class BaseClientCompiler<INITIAL_PARAMS = any>\n implements BaseClientCompilerOptions\n{\n //#region fields & getters\n public readonly followSymlinks: boolean;\n\n public readonly subscribeOnlyFor: CoreModels.FileExtension[] = [];\n\n public readonly executeOutsideScenario: boolean;\n\n public readonly taskName: string;\n\n public readonly engine: IncrementalWatcherOptions['engine'];\n\n public readonly notifyOnFileUnlink: boolean;\n\n protected onlySingleRun = true;\n\n public ignoreFolderPatter?: string[];\n\n private pathResolve: boolean = false;\n\n private isInitedWithOptions: boolean = false;\n\n private __folderPath: string[] = [];\n\n public lastAsyncFiles: string[] = [];\n\n public readonly isWatchCompilation: boolean = false;\n\n public readonly folderPathContentCheck: string[] = [];\n\n public set folderPath(v) {\n/* */\n/* */\n/* */\n/* */\n/* */\n \n }\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 //#region constructor\n/* */\n/* */\n/* */\n/* */\n/* */\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?: BaseClientCompilerOptions): void {\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 run task\n /**\n * do not override this\n */\n async runTask(\n options?: { watch?: boolean } & StartAndWatchOptions<INITIAL_PARAMS>,\n ): Promise<BaseClientCompiler<INITIAL_PARAMS>> {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n //#endregion\n\n //#region start\n /**\n * @deprecated use runTask instead\n * Do not override this\n */\n public async start(\n options?: 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 start and watch\n /**\n * @deprecated use runTask instead\n * Do not override this\n */\n public async startAndWatch(\n options?: 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 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 pre async action\n public async preAsyncAction(initialParams?: INITIAL_PARAMS): Promise<void> {}\n //#endregion\n\n //#region async action\n public asyncAction(\n asyncEvents: ChangeOfFile,\n initialParams?: INITIAL_PARAMS,\n ): Promise<void> {\n return void 0;\n }\n //#endregion\n\n //#region get files to watch\n public getFilesFolderPatternsToWatch(): string[] {\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\n\n //#region private methods / fix and assign options\n private fixAndAssignOptions(options?: BaseClientCompilerOptions): void {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\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): string {\n if (!_.isString(taskName)) {\n taskName = `task \"${this.taskName}\"`;\n }\n return taskName;\n }\n //#endregion\n\n //#endregion\n}","export * from './constants';\nexport * from './models';\nexport * from './incremental-watcher';\nexport * from './base-client-compiler';\n/* */ ","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAO,MAAM,iBAAiB,GAAG;IAC/B,wBAAwB;IACxB,iBAAiB;IACjB,gBAAgB;IAChB,SAAS;;;ACGX;AAEM,SAAU,kBAAkB,CAChC,gCAA0C,EAC1C,YAAuC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BvC,IAAA,QAAQ,KAAK,CAAC;AAChB;;ACxCA;AACA;AAcA;MAEa,kBAAkB,CAAA;AAA/B,IAAA,WAAA,GAAA;QAMkB,IAAA,CAAA,gBAAgB,GAA+B,EAAE;QAUvD,IAAA,CAAA,aAAa,GAAG,IAAI;QAItB,IAAA,CAAA,WAAW,GAAY,KAAK;QAE5B,IAAA,CAAA,mBAAmB,GAAY,KAAK;QAEpC,IAAA,CAAA,YAAY,GAAa,EAAE;QAE5B,IAAA,CAAA,cAAc,GAAa,EAAE;QAEpB,IAAA,CAAA,kBAAkB,GAAY,KAAK;QAEnC,IAAA,CAAA,sBAAsB,GAAa,EAAE;;;IAqSvD;IAnSE,IAAW,UAAU,CAAC,CAAC,EAAA;;;;;;IAOvB;AAEA,IAAA,IAAW,UAAU,GAAA;;;;;;;;;;;;;;;;;;AAkBnB,QAAA,QAAQ,KAAK,CAAC;IAChB;;;;;;;;;;;;;;;;;;;;;;AAyBA;;AAEG;AACO,IAAA,WAAW,CAAC,OAAmC,EAAA;;;;;;;;;;;;;;;;AAgBvD,QAAA,QAAQ,KAAK,CAAC;IAChB;;;AAIA;;AAEG;IACH,MAAM,OAAO,CACX,OAAoE,EAAA;;;;;;;;;;AAWpE,QAAA,QAAQ,KAAK,CAAC;IAChB;;;AAIA;;;AAGG;IACI,MAAM,KAAK,CAChB,OAAsC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCtC,QAAA,QAAQ,KAAK,CAAC;IAChB;;;AAIA;;;AAGG;IACI,MAAM,aAAa,CACxB,OAA8C,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyC9C,QAAA,QAAQ,KAAK,CAAC;IAChB;;;AAIA;;;;AAIG;IACI,UAAU,CACf,kBAA6B,EAC7B,aAA8B,EAAA;QAE9B,OAAO,KAAK,CAAC;IACf;;;AAIO,IAAA,MAAM,cAAc,CAAC,aAA8B,IAAkB;;;IAIrE,WAAW,CAChB,WAAyB,EACzB,aAA8B,EAAA;QAE9B,OAAO,KAAK,CAAC;IACf;;;IAIO,6BAA6B,GAAA;;;;;;;;;;;;;;;;AAgBlC,QAAA,QAAQ,KAAK,CAAC;IAChB;;;;AAMQ,IAAA,mBAAmB,CAAC,OAAmC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqC7D,QAAA,QAAQ,KAAK,CAAC;IAChB;;;AAIQ,IAAA,WAAW,CAAC,QAAgB,EAAA;QAClC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;AACzB,YAAA,QAAQ,GAAG,CAAA,MAAA,EAAS,IAAI,CAAC,QAAQ,GAAG;QACtC;AACA,QAAA,OAAO,QAAQ;IACjB;AAID;;AChVD;;ACJA;;AAEG;;;;"}
|
package/browser/package.json
CHANGED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { CoreModels } from 'tnp-core/browser';
|
|
3
|
+
|
|
4
|
+
declare const IGNORE_BY_DEFAULT: string[];
|
|
5
|
+
|
|
6
|
+
interface StartAndWatchOptions<INIT_PARAMS = any> {
|
|
7
|
+
afterInitCallBack?: (initialParams?: INIT_PARAMS) => void;
|
|
8
|
+
watchOnly?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* override task name
|
|
11
|
+
*/
|
|
12
|
+
taskName?: string;
|
|
13
|
+
initialParams?: INIT_PARAMS;
|
|
14
|
+
}
|
|
15
|
+
type StartOptions<T = any> = Omit<StartAndWatchOptions<T>, 'watchOnly'>;
|
|
16
|
+
interface BaseClientCompilerOptions {
|
|
17
|
+
taskName: string;
|
|
18
|
+
folderPath?: string | string[];
|
|
19
|
+
/**
|
|
20
|
+
* It will cache in memory previouse files
|
|
21
|
+
* to limit async actions calls
|
|
22
|
+
* and prevent not changed files emiting change event
|
|
23
|
+
*/
|
|
24
|
+
folderPathContentCheck?: string | string[];
|
|
25
|
+
/**
|
|
26
|
+
* default true
|
|
27
|
+
*/
|
|
28
|
+
followSymlinks?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Notify compiler if file is unlinked
|
|
31
|
+
* default: false
|
|
32
|
+
*/
|
|
33
|
+
notifyOnFileUnlink?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* ignore glob folder pattern
|
|
36
|
+
* node_modules is always ignored
|
|
37
|
+
*/
|
|
38
|
+
ignoreFolderPatter?: string[];
|
|
39
|
+
subscribeOnlyFor?: CoreModels.FileExtension[];
|
|
40
|
+
engine?: IncrementalWatcherOptions['engine'];
|
|
41
|
+
}
|
|
42
|
+
interface ParcelEvent {
|
|
43
|
+
path: string;
|
|
44
|
+
type: ParcelEventType;
|
|
45
|
+
}
|
|
46
|
+
type IncrementalWatcherAllEvents = 'all' | IncrementalWatcherEvents;
|
|
47
|
+
type ListenerForAll = (eventName: IncrementalWatcherEvents, path: string) => void;
|
|
48
|
+
type ListenerForSingleEvent = (path: string) => void;
|
|
49
|
+
type Listener = ListenerForAll | ListenerForSingleEvent;
|
|
50
|
+
interface IncrementalWatcherInstance {
|
|
51
|
+
add(paths: string | ReadonlyArray<string>): void;
|
|
52
|
+
on(event: 'all', listener: ListenerForAll): this;
|
|
53
|
+
on(event: IncrementalWatcherAllEvents, listener: ListenerForSingleEvent): this;
|
|
54
|
+
}
|
|
55
|
+
interface IncrementalWatcherOptions {
|
|
56
|
+
ignored?: string[];
|
|
57
|
+
ignoreInitial?: boolean;
|
|
58
|
+
followSymlinks?: boolean;
|
|
59
|
+
name: string;
|
|
60
|
+
/**
|
|
61
|
+
* Default is @parcel/watcher
|
|
62
|
+
*/
|
|
63
|
+
engine?: 'chokidar' | '@parcel/watcher';
|
|
64
|
+
}
|
|
65
|
+
type IncrementalWatcherEvents = 'add' | 'addDir' | 'change' | 'unlink' | 'unlinkDir';
|
|
66
|
+
type ParcelEventType = 'create' | 'update' | 'delete';
|
|
67
|
+
interface ChangeOfFile {
|
|
68
|
+
datetime: Date;
|
|
69
|
+
fileAbsolutePath: string;
|
|
70
|
+
eventName: 'add' | 'change' | 'unlink' | 'unlinkDir';
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare function incrementalWatcher(filesFolderPathOrPatternsToWatch: string[], watchOptions: IncrementalWatcherOptions): IncrementalWatcherInstance;
|
|
74
|
+
|
|
75
|
+
declare class BaseClientCompiler<INITIAL_PARAMS = any> implements BaseClientCompilerOptions {
|
|
76
|
+
readonly followSymlinks: boolean;
|
|
77
|
+
readonly subscribeOnlyFor: CoreModels.FileExtension[];
|
|
78
|
+
readonly executeOutsideScenario: boolean;
|
|
79
|
+
readonly taskName: string;
|
|
80
|
+
readonly engine: IncrementalWatcherOptions['engine'];
|
|
81
|
+
readonly notifyOnFileUnlink: boolean;
|
|
82
|
+
protected onlySingleRun: boolean;
|
|
83
|
+
ignoreFolderPatter?: string[];
|
|
84
|
+
private pathResolve;
|
|
85
|
+
private isInitedWithOptions;
|
|
86
|
+
private __folderPath;
|
|
87
|
+
lastAsyncFiles: string[];
|
|
88
|
+
readonly isWatchCompilation: boolean;
|
|
89
|
+
readonly folderPathContentCheck: string[];
|
|
90
|
+
set folderPath(v: string[]);
|
|
91
|
+
get folderPath(): string[];
|
|
92
|
+
/**
|
|
93
|
+
* manually init options (when no passing object to constructor super() )
|
|
94
|
+
*/
|
|
95
|
+
protected initOptions(options?: BaseClientCompilerOptions): void;
|
|
96
|
+
/**
|
|
97
|
+
* do not override this
|
|
98
|
+
*/
|
|
99
|
+
runTask(options?: {
|
|
100
|
+
watch?: boolean;
|
|
101
|
+
} & StartAndWatchOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>>;
|
|
102
|
+
/**
|
|
103
|
+
* @deprecated use runTask instead
|
|
104
|
+
* Do not override this
|
|
105
|
+
*/
|
|
106
|
+
start(options?: StartOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>>;
|
|
107
|
+
/**
|
|
108
|
+
* @deprecated use runTask instead
|
|
109
|
+
* Do not override this
|
|
110
|
+
*/
|
|
111
|
+
startAndWatch(options?: StartAndWatchOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>>;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @param absolteFilesPathes for each watched file
|
|
115
|
+
* @returns
|
|
116
|
+
*/
|
|
117
|
+
syncAction(absolteFilesPathes?: string[], initialParams?: INITIAL_PARAMS): Promise<void>;
|
|
118
|
+
preAsyncAction(initialParams?: INITIAL_PARAMS): Promise<void>;
|
|
119
|
+
asyncAction(asyncEvents: ChangeOfFile, initialParams?: INITIAL_PARAMS): Promise<void>;
|
|
120
|
+
getFilesFolderPatternsToWatch(): string[];
|
|
121
|
+
private fixAndAssignOptions;
|
|
122
|
+
private fixTaskName;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export { BaseClientCompiler, IGNORE_BY_DEFAULT, incrementalWatcher };
|
|
126
|
+
export type { BaseClientCompilerOptions, ChangeOfFile, IncrementalWatcherAllEvents, IncrementalWatcherEvents, IncrementalWatcherInstance, IncrementalWatcherOptions, Listener, ListenerForAll, ListenerForSingleEvent, ParcelEvent, ParcelEventType, StartAndWatchOptions, StartOptions };
|
|
@@ -17,4 +17,4 @@ export declare const PROJECT_NPM_NAME = "incremental-compiler";
|
|
|
17
17
|
/**
|
|
18
18
|
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
19
19
|
*/
|
|
20
|
-
export declare const CURRENT_PACKAGE_VERSION = "21.0.
|
|
20
|
+
export declare const CURRENT_PACKAGE_VERSION = "21.0.5";
|
|
@@ -21,6 +21,6 @@ exports.PROJECT_NPM_NAME = 'incremental-compiler';
|
|
|
21
21
|
/**
|
|
22
22
|
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
23
23
|
*/
|
|
24
|
-
exports.CURRENT_PACKAGE_VERSION = '21.0.
|
|
24
|
+
exports.CURRENT_PACKAGE_VERSION = '21.0.5';
|
|
25
25
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
26
26
|
//# sourceMappingURL=build-info._auto-generated_.js.map
|
package/package.json
CHANGED
package/tmp-environment.json
CHANGED
|
@@ -5,14 +5,8 @@
|
|
|
5
5
|
},
|
|
6
6
|
"paths": {},
|
|
7
7
|
"config": {},
|
|
8
|
-
"container": {
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
"ports": {
|
|
12
|
-
"ngNormalAppPort": 4223,
|
|
13
|
-
"ngWebsqlAppPort": 4224,
|
|
14
|
-
"nodeBeAppPort": 4109
|
|
15
|
-
},
|
|
8
|
+
"container": {},
|
|
9
|
+
"ports": {},
|
|
16
10
|
"init": {},
|
|
17
11
|
"build": {
|
|
18
12
|
"pwa": {},
|
|
@@ -30,12 +24,12 @@
|
|
|
30
24
|
"releaseType": "manual",
|
|
31
25
|
"targetArtifact": "npm-lib-and-cli-tool",
|
|
32
26
|
"envName": "__",
|
|
33
|
-
"resolvedNewVersion": "19.0.
|
|
27
|
+
"resolvedNewVersion": "19.0.15"
|
|
34
28
|
},
|
|
35
29
|
"copyToManager": {},
|
|
36
30
|
"buildInfo": {
|
|
37
|
-
"date": "2025-05-
|
|
38
|
-
"hash": "
|
|
31
|
+
"date": "2025-05-13T20:50:23.000Z",
|
|
32
|
+
"hash": "22c4433ba019d05bce4f43e07fa45270c8bb5f39"
|
|
39
33
|
},
|
|
40
34
|
"currentProjectName": "incremental-compiler",
|
|
41
35
|
"currentProjectType": "isomorphic-lib",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"incremental-compiler.mjs","sources":["../../../tmp-libs-for-dist-websql/incremental-compiler/projects/incremental-compiler/src/lib/constants.ts","../../../tmp-libs-for-dist-websql/incremental-compiler/projects/incremental-compiler/src/lib/incremental-watcher.ts","../../../tmp-libs-for-dist-websql/incremental-compiler/projects/incremental-compiler/src/lib/base-client-compiler.ts","../../../tmp-libs-for-dist-websql/incremental-compiler/projects/incremental-compiler/src/lib/index.ts","../../../tmp-libs-for-dist-websql/incremental-compiler/projects/incremental-compiler/src/incremental-compiler.ts"],"sourcesContent":["export const IGNORE_BY_DEFAULT = [\n '**/node_modules/**/*.*',\n '**/node_modules',\n '**/.git/**/*.*',\n '**/.git',\n];","//#region imports\nimport { _, path, frameworkName, Helpers } from 'tnp-core/websql';\nimport { chokidar } from 'tnp-core/websql';\n\nimport { IncrementalWatcherInstance } from './models';\nimport { IncrementalWatcherOptions } from './models';\nimport { ParcelWatcherAdapter } from './parcel-watcher-adapter';\n//#endregion\n\nexport function incrementalWatcher(\n filesFolderPathOrPatternsToWatch: string[],\n watchOptions: IncrementalWatcherOptions,\n): 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 return (void 0);\n}","//#region imports\n/* */ \nimport { path, _, crossPlatformPath, UtilsMessages } from 'tnp-core/websql';\nimport { Helpers } from 'tnp-core/websql';\nimport { CLI } from 'tnp-core/websql';\nimport { CoreModels } from 'tnp-core/websql';\n\nimport { CompilerManager } from './compiler-manager';\nimport { mapForWatching } from './helpers';\nimport { ChangeOfFile, IncrementalWatcherOptions } from './models';\nimport {\n BaseClientCompilerOptions,\n StartAndWatchOptions,\n StartOptions,\n} from './models';\n//#endregion\n\nexport class BaseClientCompiler<INITIAL_PARAMS = any>\n implements BaseClientCompilerOptions\n{\n //#region fields & getters\n public readonly followSymlinks: boolean;\n\n public readonly subscribeOnlyFor: CoreModels.FileExtension[] = [];\n\n public readonly executeOutsideScenario: boolean;\n\n public readonly taskName: string;\n\n public readonly engine: IncrementalWatcherOptions['engine'];\n\n public readonly notifyOnFileUnlink: boolean;\n\n protected onlySingleRun = true;\n\n public ignoreFolderPatter?: string[];\n\n private pathResolve: boolean = false;\n\n private isInitedWithOptions: boolean = false;\n\n private __folderPath: string[] = [];\n\n public lastAsyncFiles: string[] = [];\n\n public readonly isWatchCompilation: boolean = false;\n\n public readonly folderPathContentCheck: string[] = [];\n\n public set folderPath(v) {\n/* */\n/* */\n/* */\n/* */\n/* */\n \n }\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 //#region constructor\n/* */\n/* */\n/* */\n/* */\n/* */\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?: BaseClientCompilerOptions): void {\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 run task\n /**\n * do not override this\n */\n async runTask(\n options?: { watch?: boolean } & StartAndWatchOptions<INITIAL_PARAMS>,\n ): Promise<BaseClientCompiler<INITIAL_PARAMS>> {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n //#endregion\n\n //#region start\n /**\n * @deprecated use runTask instead\n * Do not override this\n */\n public async start(\n options?: 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 start and watch\n /**\n * @deprecated use runTask instead\n * Do not override this\n */\n public async startAndWatch(\n options?: 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 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 pre async action\n public async preAsyncAction(initialParams?: INITIAL_PARAMS): Promise<void> {}\n //#endregion\n\n //#region async action\n public asyncAction(\n asyncEvents: ChangeOfFile,\n initialParams?: INITIAL_PARAMS,\n ): Promise<void> {\n return void 0;\n }\n //#endregion\n\n //#region get files to watch\n public getFilesFolderPatternsToWatch(): string[] {\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\n\n //#region private methods / fix and assign options\n private fixAndAssignOptions(options?: BaseClientCompilerOptions): void {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\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): string {\n if (!_.isString(taskName)) {\n taskName = `task \"${this.taskName}\"`;\n }\n return taskName;\n }\n //#endregion\n\n //#endregion\n}","export * from './constants';\nexport * from './models';\nexport * from './incremental-watcher';\nexport * from './base-client-compiler';\n/* */ ","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"incremental-compiler.mjs","sources":["../../../tmp-libs-for-dist-websql/incremental-compiler/projects/incremental-compiler/src/lib/constants.ts","../../../tmp-libs-for-dist-websql/incremental-compiler/projects/incremental-compiler/src/lib/incremental-watcher.ts","../../../tmp-libs-for-dist-websql/incremental-compiler/projects/incremental-compiler/src/lib/base-client-compiler.ts","../../../tmp-libs-for-dist-websql/incremental-compiler/projects/incremental-compiler/src/lib/index.ts","../../../tmp-libs-for-dist-websql/incremental-compiler/projects/incremental-compiler/src/incremental-compiler.ts"],"sourcesContent":["export const IGNORE_BY_DEFAULT = [\n '**/node_modules/**/*.*',\n '**/node_modules',\n '**/.git/**/*.*',\n '**/.git',\n];","//#region imports\nimport { _, path, frameworkName, Helpers } from 'tnp-core/websql';\nimport { chokidar } from 'tnp-core/websql';\n\nimport { IncrementalWatcherInstance } from './models';\nimport { IncrementalWatcherOptions } from './models';\nimport { ParcelWatcherAdapter } from './parcel-watcher-adapter';\n//#endregion\n\nexport function incrementalWatcher(\n filesFolderPathOrPatternsToWatch: string[],\n watchOptions: IncrementalWatcherOptions,\n): 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 return (void 0);\n}","//#region imports\n/* */ \nimport { path, _, crossPlatformPath, UtilsMessages } from 'tnp-core/websql';\nimport { Helpers } from 'tnp-core/websql';\nimport { CLI } from 'tnp-core/websql';\nimport { CoreModels } from 'tnp-core/websql';\n\nimport { CompilerManager } from './compiler-manager';\nimport { mapForWatching } from './helpers';\nimport { ChangeOfFile, IncrementalWatcherOptions } from './models';\nimport {\n BaseClientCompilerOptions,\n StartAndWatchOptions,\n StartOptions,\n} from './models';\n//#endregion\n\nexport class BaseClientCompiler<INITIAL_PARAMS = any>\n implements BaseClientCompilerOptions\n{\n //#region fields & getters\n public readonly followSymlinks: boolean;\n\n public readonly subscribeOnlyFor: CoreModels.FileExtension[] = [];\n\n public readonly executeOutsideScenario: boolean;\n\n public readonly taskName: string;\n\n public readonly engine: IncrementalWatcherOptions['engine'];\n\n public readonly notifyOnFileUnlink: boolean;\n\n protected onlySingleRun = true;\n\n public ignoreFolderPatter?: string[];\n\n private pathResolve: boolean = false;\n\n private isInitedWithOptions: boolean = false;\n\n private __folderPath: string[] = [];\n\n public lastAsyncFiles: string[] = [];\n\n public readonly isWatchCompilation: boolean = false;\n\n public readonly folderPathContentCheck: string[] = [];\n\n public set folderPath(v) {\n/* */\n/* */\n/* */\n/* */\n/* */\n \n }\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 //#region constructor\n/* */\n/* */\n/* */\n/* */\n/* */\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?: BaseClientCompilerOptions): void {\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 run task\n /**\n * do not override this\n */\n async runTask(\n options?: { watch?: boolean } & StartAndWatchOptions<INITIAL_PARAMS>,\n ): Promise<BaseClientCompiler<INITIAL_PARAMS>> {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n //#endregion\n\n //#region start\n /**\n * @deprecated use runTask instead\n * Do not override this\n */\n public async start(\n options?: 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 start and watch\n /**\n * @deprecated use runTask instead\n * Do not override this\n */\n public async startAndWatch(\n options?: 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 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 pre async action\n public async preAsyncAction(initialParams?: INITIAL_PARAMS): Promise<void> {}\n //#endregion\n\n //#region async action\n public asyncAction(\n asyncEvents: ChangeOfFile,\n initialParams?: INITIAL_PARAMS,\n ): Promise<void> {\n return void 0;\n }\n //#endregion\n\n //#region get files to watch\n public getFilesFolderPatternsToWatch(): string[] {\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\n\n //#region private methods / fix and assign options\n private fixAndAssignOptions(options?: BaseClientCompilerOptions): void {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\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): string {\n if (!_.isString(taskName)) {\n taskName = `task \"${this.taskName}\"`;\n }\n return taskName;\n }\n //#endregion\n\n //#endregion\n}","export * from './constants';\nexport * from './models';\nexport * from './incremental-watcher';\nexport * from './base-client-compiler';\n/* */ ","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAO,MAAM,iBAAiB,GAAG;IAC/B,wBAAwB;IACxB,iBAAiB;IACjB,gBAAgB;IAChB,SAAS;;;ACGX;AAEM,SAAU,kBAAkB,CAChC,gCAA0C,EAC1C,YAAuC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BvC,IAAA,QAAQ,KAAK,CAAC;AAChB;;ACxCA;AACA;AAcA;MAEa,kBAAkB,CAAA;AAA/B,IAAA,WAAA,GAAA;QAMkB,IAAA,CAAA,gBAAgB,GAA+B,EAAE;QAUvD,IAAA,CAAA,aAAa,GAAG,IAAI;QAItB,IAAA,CAAA,WAAW,GAAY,KAAK;QAE5B,IAAA,CAAA,mBAAmB,GAAY,KAAK;QAEpC,IAAA,CAAA,YAAY,GAAa,EAAE;QAE5B,IAAA,CAAA,cAAc,GAAa,EAAE;QAEpB,IAAA,CAAA,kBAAkB,GAAY,KAAK;QAEnC,IAAA,CAAA,sBAAsB,GAAa,EAAE;;;IAqSvD;IAnSE,IAAW,UAAU,CAAC,CAAC,EAAA;;;;;;IAOvB;AAEA,IAAA,IAAW,UAAU,GAAA;;;;;;;;;;;;;;;;;;AAkBnB,QAAA,QAAQ,KAAK,CAAC;IAChB;;;;;;;;;;;;;;;;;;;;;;AAyBA;;AAEG;AACO,IAAA,WAAW,CAAC,OAAmC,EAAA;;;;;;;;;;;;;;;;AAgBvD,QAAA,QAAQ,KAAK,CAAC;IAChB;;;AAIA;;AAEG;IACH,MAAM,OAAO,CACX,OAAoE,EAAA;;;;;;;;;;AAWpE,QAAA,QAAQ,KAAK,CAAC;IAChB;;;AAIA;;;AAGG;IACI,MAAM,KAAK,CAChB,OAAsC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCtC,QAAA,QAAQ,KAAK,CAAC;IAChB;;;AAIA;;;AAGG;IACI,MAAM,aAAa,CACxB,OAA8C,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyC9C,QAAA,QAAQ,KAAK,CAAC;IAChB;;;AAIA;;;;AAIG;IACI,UAAU,CACf,kBAA6B,EAC7B,aAA8B,EAAA;QAE9B,OAAO,KAAK,CAAC;IACf;;;AAIO,IAAA,MAAM,cAAc,CAAC,aAA8B,IAAkB;;;IAIrE,WAAW,CAChB,WAAyB,EACzB,aAA8B,EAAA;QAE9B,OAAO,KAAK,CAAC;IACf;;;IAIO,6BAA6B,GAAA;;;;;;;;;;;;;;;;AAgBlC,QAAA,QAAQ,KAAK,CAAC;IAChB;;;;AAMQ,IAAA,mBAAmB,CAAC,OAAmC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqC7D,QAAA,QAAQ,KAAK,CAAC;IAChB;;;AAIQ,IAAA,WAAW,CAAC,QAAgB,EAAA;QAClC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;AACzB,YAAA,QAAQ,GAAG,CAAA,MAAA,EAAS,IAAI,CAAC,QAAQ,GAAG;QACtC;AACA,QAAA,OAAO,QAAQ;IACjB;AAID;;AChVD;;ACJA;;AAEG;;;;"}
|
package/websql/package.json
CHANGED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { CoreModels } from 'tnp-core/websql';
|
|
3
|
+
|
|
4
|
+
declare const IGNORE_BY_DEFAULT: string[];
|
|
5
|
+
|
|
6
|
+
interface StartAndWatchOptions<INIT_PARAMS = any> {
|
|
7
|
+
afterInitCallBack?: (initialParams?: INIT_PARAMS) => void;
|
|
8
|
+
watchOnly?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* override task name
|
|
11
|
+
*/
|
|
12
|
+
taskName?: string;
|
|
13
|
+
initialParams?: INIT_PARAMS;
|
|
14
|
+
}
|
|
15
|
+
type StartOptions<T = any> = Omit<StartAndWatchOptions<T>, 'watchOnly'>;
|
|
16
|
+
interface BaseClientCompilerOptions {
|
|
17
|
+
taskName: string;
|
|
18
|
+
folderPath?: string | string[];
|
|
19
|
+
/**
|
|
20
|
+
* It will cache in memory previouse files
|
|
21
|
+
* to limit async actions calls
|
|
22
|
+
* and prevent not changed files emiting change event
|
|
23
|
+
*/
|
|
24
|
+
folderPathContentCheck?: string | string[];
|
|
25
|
+
/**
|
|
26
|
+
* default true
|
|
27
|
+
*/
|
|
28
|
+
followSymlinks?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Notify compiler if file is unlinked
|
|
31
|
+
* default: false
|
|
32
|
+
*/
|
|
33
|
+
notifyOnFileUnlink?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* ignore glob folder pattern
|
|
36
|
+
* node_modules is always ignored
|
|
37
|
+
*/
|
|
38
|
+
ignoreFolderPatter?: string[];
|
|
39
|
+
subscribeOnlyFor?: CoreModels.FileExtension[];
|
|
40
|
+
engine?: IncrementalWatcherOptions['engine'];
|
|
41
|
+
}
|
|
42
|
+
interface ParcelEvent {
|
|
43
|
+
path: string;
|
|
44
|
+
type: ParcelEventType;
|
|
45
|
+
}
|
|
46
|
+
type IncrementalWatcherAllEvents = 'all' | IncrementalWatcherEvents;
|
|
47
|
+
type ListenerForAll = (eventName: IncrementalWatcherEvents, path: string) => void;
|
|
48
|
+
type ListenerForSingleEvent = (path: string) => void;
|
|
49
|
+
type Listener = ListenerForAll | ListenerForSingleEvent;
|
|
50
|
+
interface IncrementalWatcherInstance {
|
|
51
|
+
add(paths: string | ReadonlyArray<string>): void;
|
|
52
|
+
on(event: 'all', listener: ListenerForAll): this;
|
|
53
|
+
on(event: IncrementalWatcherAllEvents, listener: ListenerForSingleEvent): this;
|
|
54
|
+
}
|
|
55
|
+
interface IncrementalWatcherOptions {
|
|
56
|
+
ignored?: string[];
|
|
57
|
+
ignoreInitial?: boolean;
|
|
58
|
+
followSymlinks?: boolean;
|
|
59
|
+
name: string;
|
|
60
|
+
/**
|
|
61
|
+
* Default is @parcel/watcher
|
|
62
|
+
*/
|
|
63
|
+
engine?: 'chokidar' | '@parcel/watcher';
|
|
64
|
+
}
|
|
65
|
+
type IncrementalWatcherEvents = 'add' | 'addDir' | 'change' | 'unlink' | 'unlinkDir';
|
|
66
|
+
type ParcelEventType = 'create' | 'update' | 'delete';
|
|
67
|
+
interface ChangeOfFile {
|
|
68
|
+
datetime: Date;
|
|
69
|
+
fileAbsolutePath: string;
|
|
70
|
+
eventName: 'add' | 'change' | 'unlink' | 'unlinkDir';
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare function incrementalWatcher(filesFolderPathOrPatternsToWatch: string[], watchOptions: IncrementalWatcherOptions): IncrementalWatcherInstance;
|
|
74
|
+
|
|
75
|
+
declare class BaseClientCompiler<INITIAL_PARAMS = any> implements BaseClientCompilerOptions {
|
|
76
|
+
readonly followSymlinks: boolean;
|
|
77
|
+
readonly subscribeOnlyFor: CoreModels.FileExtension[];
|
|
78
|
+
readonly executeOutsideScenario: boolean;
|
|
79
|
+
readonly taskName: string;
|
|
80
|
+
readonly engine: IncrementalWatcherOptions['engine'];
|
|
81
|
+
readonly notifyOnFileUnlink: boolean;
|
|
82
|
+
protected onlySingleRun: boolean;
|
|
83
|
+
ignoreFolderPatter?: string[];
|
|
84
|
+
private pathResolve;
|
|
85
|
+
private isInitedWithOptions;
|
|
86
|
+
private __folderPath;
|
|
87
|
+
lastAsyncFiles: string[];
|
|
88
|
+
readonly isWatchCompilation: boolean;
|
|
89
|
+
readonly folderPathContentCheck: string[];
|
|
90
|
+
set folderPath(v: string[]);
|
|
91
|
+
get folderPath(): string[];
|
|
92
|
+
/**
|
|
93
|
+
* manually init options (when no passing object to constructor super() )
|
|
94
|
+
*/
|
|
95
|
+
protected initOptions(options?: BaseClientCompilerOptions): void;
|
|
96
|
+
/**
|
|
97
|
+
* do not override this
|
|
98
|
+
*/
|
|
99
|
+
runTask(options?: {
|
|
100
|
+
watch?: boolean;
|
|
101
|
+
} & StartAndWatchOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>>;
|
|
102
|
+
/**
|
|
103
|
+
* @deprecated use runTask instead
|
|
104
|
+
* Do not override this
|
|
105
|
+
*/
|
|
106
|
+
start(options?: StartOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>>;
|
|
107
|
+
/**
|
|
108
|
+
* @deprecated use runTask instead
|
|
109
|
+
* Do not override this
|
|
110
|
+
*/
|
|
111
|
+
startAndWatch(options?: StartAndWatchOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>>;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @param absolteFilesPathes for each watched file
|
|
115
|
+
* @returns
|
|
116
|
+
*/
|
|
117
|
+
syncAction(absolteFilesPathes?: string[], initialParams?: INITIAL_PARAMS): Promise<void>;
|
|
118
|
+
preAsyncAction(initialParams?: INITIAL_PARAMS): Promise<void>;
|
|
119
|
+
asyncAction(asyncEvents: ChangeOfFile, initialParams?: INITIAL_PARAMS): Promise<void>;
|
|
120
|
+
getFilesFolderPatternsToWatch(): string[];
|
|
121
|
+
private fixAndAssignOptions;
|
|
122
|
+
private fixTaskName;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export { BaseClientCompiler, IGNORE_BY_DEFAULT, incrementalWatcher };
|
|
126
|
+
export type { BaseClientCompilerOptions, ChangeOfFile, IncrementalWatcherAllEvents, IncrementalWatcherEvents, IncrementalWatcherInstance, IncrementalWatcherOptions, Listener, ListenerForAll, ListenerForSingleEvent, ParcelEvent, ParcelEventType, StartAndWatchOptions, StartOptions };
|
package/browser/index.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { CoreModels } from 'tnp-core/browser';
|
|
3
|
-
import { ChangeOfFile, IncrementalWatcherOptions } from './models';
|
|
4
|
-
import { BaseClientCompilerOptions, StartAndWatchOptions, StartOptions } from './models';
|
|
5
|
-
export declare class BaseClientCompiler<INITIAL_PARAMS = any> implements BaseClientCompilerOptions {
|
|
6
|
-
readonly followSymlinks: boolean;
|
|
7
|
-
readonly subscribeOnlyFor: CoreModels.FileExtension[];
|
|
8
|
-
readonly executeOutsideScenario: boolean;
|
|
9
|
-
readonly taskName: string;
|
|
10
|
-
readonly engine: IncrementalWatcherOptions['engine'];
|
|
11
|
-
readonly notifyOnFileUnlink: boolean;
|
|
12
|
-
protected onlySingleRun: boolean;
|
|
13
|
-
ignoreFolderPatter?: string[];
|
|
14
|
-
private pathResolve;
|
|
15
|
-
private isInitedWithOptions;
|
|
16
|
-
private __folderPath;
|
|
17
|
-
lastAsyncFiles: string[];
|
|
18
|
-
readonly isWatchCompilation: boolean;
|
|
19
|
-
readonly folderPathContentCheck: string[];
|
|
20
|
-
set folderPath(v: string[]);
|
|
21
|
-
get folderPath(): string[];
|
|
22
|
-
/**
|
|
23
|
-
* manually init options (when no passing object to constructor super() )
|
|
24
|
-
*/
|
|
25
|
-
protected initOptions(options?: BaseClientCompilerOptions): void;
|
|
26
|
-
/**
|
|
27
|
-
* do not override this
|
|
28
|
-
*/
|
|
29
|
-
runTask(options?: {
|
|
30
|
-
watch?: boolean;
|
|
31
|
-
} & StartAndWatchOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>>;
|
|
32
|
-
/**
|
|
33
|
-
* @deprecated use runTask instead
|
|
34
|
-
* Do not override this
|
|
35
|
-
*/
|
|
36
|
-
start(options?: StartOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>>;
|
|
37
|
-
/**
|
|
38
|
-
* @deprecated use runTask instead
|
|
39
|
-
* Do not override this
|
|
40
|
-
*/
|
|
41
|
-
startAndWatch(options?: StartAndWatchOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>>;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @param absolteFilesPathes for each watched file
|
|
45
|
-
* @returns
|
|
46
|
-
*/
|
|
47
|
-
syncAction(absolteFilesPathes?: string[], initialParams?: INITIAL_PARAMS): Promise<void>;
|
|
48
|
-
preAsyncAction(initialParams?: INITIAL_PARAMS): Promise<void>;
|
|
49
|
-
asyncAction(asyncEvents: ChangeOfFile, initialParams?: INITIAL_PARAMS): Promise<void>;
|
|
50
|
-
getFilesFolderPatternsToWatch(): string[];
|
|
51
|
-
private fixAndAssignOptions;
|
|
52
|
-
private fixTaskName;
|
|
53
|
-
}
|
|
@@ -1,15 +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 filesContentCache;
|
|
9
|
-
private constructor();
|
|
10
|
-
syncInit(client: BaseClientCompiler<any>, initialParams: any): Promise<void>;
|
|
11
|
-
asyncInit(client: BaseClientCompiler<any>, initialParams: any): Promise<void>;
|
|
12
|
-
private actionForAsyncEvent;
|
|
13
|
-
addClient(client: BaseClientCompiler<any>): void;
|
|
14
|
-
private fileShouldBeChecked;
|
|
15
|
-
}
|
package/browser/lib/helpers.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
/**
|
|
3
|
-
* @returns Absolute paths of files/folders matching the given pattern
|
|
4
|
-
*/
|
|
5
|
-
export declare const getFilesByPattern: ({ globPath, ignorePatterns, followSymlinks, searchStrategy, taskName, }: {
|
|
6
|
-
globPath: string;
|
|
7
|
-
ignorePatterns: string[];
|
|
8
|
-
followSymlinks: boolean;
|
|
9
|
-
searchStrategy: "files-only" | "folders-and-files" | "folders-only";
|
|
10
|
-
taskName?: string;
|
|
11
|
-
}) => string[];
|
|
12
|
-
export declare const mapForWatching: (c: string) => string[];
|
|
13
|
-
export declare const stripGlobToDir: (globPath: string) => string;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { IncrementalWatcherInstance } from './models';
|
|
3
|
-
import { IncrementalWatcherOptions } from './models';
|
|
4
|
-
export declare function incrementalWatcher(filesFolderPathOrPatternsToWatch: string[], watchOptions: IncrementalWatcherOptions): IncrementalWatcherInstance;
|
package/browser/lib/index.d.ts
DELETED
package/browser/lib/models.d.ts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { CoreModels } from 'tnp-core/browser';
|
|
3
|
-
export interface StartAndWatchOptions<INIT_PARAMS = any> {
|
|
4
|
-
afterInitCallBack?: (initialParams?: INIT_PARAMS) => void;
|
|
5
|
-
watchOnly?: boolean;
|
|
6
|
-
/**
|
|
7
|
-
* override task name
|
|
8
|
-
*/
|
|
9
|
-
taskName?: string;
|
|
10
|
-
initialParams?: INIT_PARAMS;
|
|
11
|
-
}
|
|
12
|
-
export type StartOptions<T = any> = Omit<StartAndWatchOptions<T>, 'watchOnly'>;
|
|
13
|
-
export interface BaseClientCompilerOptions {
|
|
14
|
-
taskName: string;
|
|
15
|
-
folderPath?: string | string[];
|
|
16
|
-
/**
|
|
17
|
-
* It will cache in memory previouse files
|
|
18
|
-
* to limit async actions calls
|
|
19
|
-
* and prevent not changed files emiting change event
|
|
20
|
-
*/
|
|
21
|
-
folderPathContentCheck?: string | string[];
|
|
22
|
-
/**
|
|
23
|
-
* default true
|
|
24
|
-
*/
|
|
25
|
-
followSymlinks?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Notify compiler if file is unlinked
|
|
28
|
-
* default: false
|
|
29
|
-
*/
|
|
30
|
-
notifyOnFileUnlink?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* ignore glob folder pattern
|
|
33
|
-
* node_modules is always ignored
|
|
34
|
-
*/
|
|
35
|
-
ignoreFolderPatter?: string[];
|
|
36
|
-
subscribeOnlyFor?: CoreModels.FileExtension[];
|
|
37
|
-
engine?: IncrementalWatcherOptions['engine'];
|
|
38
|
-
}
|
|
39
|
-
export interface ParcelEvent {
|
|
40
|
-
path: string;
|
|
41
|
-
type: ParcelEventType;
|
|
42
|
-
}
|
|
43
|
-
export type IncrementalWatcherAllEvents = 'all' | IncrementalWatcherEvents;
|
|
44
|
-
export type ListenerForAll = (eventName: IncrementalWatcherEvents, path: string) => void;
|
|
45
|
-
export type ListenerForSingleEvent = (path: string) => void;
|
|
46
|
-
export type Listener = ListenerForAll | ListenerForSingleEvent;
|
|
47
|
-
export interface IncrementalWatcherInstance {
|
|
48
|
-
add(paths: string | ReadonlyArray<string>): void;
|
|
49
|
-
on(event: 'all', listener: ListenerForAll): this;
|
|
50
|
-
on(event: IncrementalWatcherAllEvents, listener: ListenerForSingleEvent): this;
|
|
51
|
-
}
|
|
52
|
-
export interface IncrementalWatcherOptions {
|
|
53
|
-
ignored?: string[];
|
|
54
|
-
ignoreInitial?: boolean;
|
|
55
|
-
followSymlinks?: boolean;
|
|
56
|
-
name: string;
|
|
57
|
-
/**
|
|
58
|
-
* Default is @parcel/watcher
|
|
59
|
-
*/
|
|
60
|
-
engine?: 'chokidar' | '@parcel/watcher';
|
|
61
|
-
}
|
|
62
|
-
export type IncrementalWatcherEvents = 'add' | 'addDir' | 'change' | 'unlink' | 'unlinkDir';
|
|
63
|
-
export type ParcelEventType = 'create' | 'update' | 'delete';
|
|
64
|
-
export interface ChangeOfFile {
|
|
65
|
-
datetime: Date;
|
|
66
|
-
fileAbsolutePath: string;
|
|
67
|
-
eventName: 'add' | 'change' | 'unlink' | 'unlinkDir';
|
|
68
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { IncrementalWatcherAllEvents, Listener, IncrementalWatcherInstance } from './models';
|
|
3
|
-
import { IncrementalWatcherOptions } from './models';
|
|
4
|
-
/**
|
|
5
|
-
* Adapter for chokidar watcher that uses @parcel/watcher under the hood
|
|
6
|
-
*/
|
|
7
|
-
export declare class ParcelWatcherAdapter implements Partial<IncrementalWatcherInstance> {
|
|
8
|
-
static instances: ParcelWatcherAdapter[];
|
|
9
|
-
private pathsToWatch;
|
|
10
|
-
private listenerData;
|
|
11
|
-
private subs;
|
|
12
|
-
private alreadyStarted;
|
|
13
|
-
private allFilesAndFoldersInitial;
|
|
14
|
-
private foldersPathes;
|
|
15
|
-
private readonly ignore;
|
|
16
|
-
private readonly ignoreInitial;
|
|
17
|
-
private readonly followSymlinks;
|
|
18
|
-
private readonly engine;
|
|
19
|
-
private readonly name;
|
|
20
|
-
constructor(filesFolderPathOrPatternsToWatch: string[], initialOptions: IncrementalWatcherOptions);
|
|
21
|
-
private stopWatching;
|
|
22
|
-
startWatching(options?: {}): Promise<void>;
|
|
23
|
-
add(pathToAdd: string | string[], options?: {
|
|
24
|
-
fistTimeAdding?: boolean;
|
|
25
|
-
}): void;
|
|
26
|
-
on(allowedEvent: IncrementalWatcherAllEvents, listenerFromOnFn: Listener): this;
|
|
27
|
-
private handleErrors;
|
|
28
|
-
private notifyListener;
|
|
29
|
-
private chokidarToParcel;
|
|
30
|
-
private pushInitial;
|
|
31
|
-
}
|