incremental-compiler 18.0.21 → 18.0.23
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/assets/shared/shared_folder_info.txt +1 -1
- package/browser/README.md +24 -24
- package/browser/esm2022/lib/base-client-compiler.mjs +4 -4
- package/browser/esm2022/lib/compiler-manager.mjs +3 -3
- package/browser/esm2022/lib/constants.mjs +12 -2
- package/browser/esm2022/lib/models.mjs +1 -1
- package/browser/fesm2022/incremental-compiler.mjs +4 -4
- package/browser/fesm2022/incremental-compiler.mjs.map +1 -1
- package/browser/lib/base-client-compiler.d.ts +7 -7
- package/browser/lib/compiler-manager.d.ts +1 -1
- package/browser/lib/constants.d.ts +2 -1
- package/browser/lib/models.d.ts +2 -2
- package/client/README.md +24 -24
- package/client/esm2022/lib/base-client-compiler.mjs +4 -4
- package/client/esm2022/lib/compiler-manager.mjs +3 -3
- package/client/esm2022/lib/constants.mjs +12 -2
- package/client/esm2022/lib/models.mjs +1 -1
- package/client/fesm2022/incremental-compiler.mjs +4 -4
- package/client/fesm2022/incremental-compiler.mjs.map +1 -1
- package/client/lib/base-client-compiler.d.ts +7 -7
- package/client/lib/compiler-manager.d.ts +1 -1
- package/client/lib/constants.d.ts +2 -1
- package/client/lib/models.d.ts +2 -2
- package/index.js +15 -2
- package/index.js.map +1 -1
- package/lib/base-client-compiler.d.ts +7 -7
- package/lib/base-client-compiler.js +158 -221
- package/lib/base-client-compiler.js.map +1 -1
- package/lib/build-info._auto-generated_.js.map +1 -1
- package/lib/change-of-file.js +12 -16
- package/lib/change-of-file.js.map +1 -1
- package/lib/compiler-manager.d.ts +1 -1
- package/lib/compiler-manager.js +147 -176
- package/lib/compiler-manager.js.map +1 -1
- package/lib/constants.d.ts +2 -1
- package/lib/constants.js +11 -9
- 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 +36 -42
- package/lib/incremental-watcher/incremental-watcher.js.map +1 -1
- package/lib/incremental-watcher/index.js +17 -4
- package/lib/incremental-watcher/index.js.map +1 -1
- package/lib/incremental-watcher/parcel-watcher-adapter.backend.js +112 -262
- package/lib/incremental-watcher/parcel-watcher-adapter.backend.js.map +1 -1
- package/lib/index._auto-generated_.js.map +1 -1
- package/lib/index.js +21 -8
- package/lib/index.js.map +1 -1
- package/lib/models.d.ts +2 -2
- package/lib/models.js.map +1 -1
- package/migrations/index.js +15 -2
- package/migrations/index.js.map +1 -1
- package/migrations/migrations_index._auto-generated_.js.map +1 -1
- package/package.json +13 -61
- package/src.d.ts +1 -1
- package/taon.jsonc +26 -50
- package/tmp-environment.json +8 -384
- package/websql/README.md +24 -24
- package/websql/esm2022/lib/base-client-compiler.mjs +4 -4
- package/websql/esm2022/lib/compiler-manager.mjs +3 -3
- package/websql/esm2022/lib/constants.mjs +12 -2
- package/websql/esm2022/lib/models.mjs +1 -1
- package/websql/fesm2022/incremental-compiler.mjs +4 -4
- package/websql/fesm2022/incremental-compiler.mjs.map +1 -1
- package/websql/lib/base-client-compiler.d.ts +7 -7
- package/websql/lib/compiler-manager.d.ts +1 -1
- package/websql/lib/constants.d.ts +2 -1
- package/websql/lib/models.d.ts +2 -2
- package/browser/package.json +0 -25
- package/websql/package.json +0 -25
@@ -1,4 +1,14 @@
|
|
1
|
-
|
1
|
+
let COMPILER_POOLING = {};
|
2
|
+
/* */
|
3
|
+
/* */
|
4
|
+
/* */
|
5
|
+
/* */
|
6
|
+
/* */
|
7
|
+
/* */
|
8
|
+
/* */
|
9
|
+
/* */
|
10
|
+
/* */
|
11
|
+
export { COMPILER_POOLING };
|
2
12
|
export const IGNORE_BY_DEFAULT = [
|
3
13
|
'**/node_modules/**/*.*',
|
4
14
|
'**/node_modules',
|
@@ -7,4 +17,4 @@ export const IGNORE_BY_DEFAULT = [
|
|
7
17
|
];
|
8
18
|
;
|
9
19
|
({}); // @--end-of-file-for-module=incremental-compiler lib/constants.ts
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vdG1wLWxpYnMtZm9yLWRpc3QvaW5jcmVtZW50YWwtY29tcGlsZXIvcHJvamVjdHMvaW5jcmVtZW50YWwtY29tcGlsZXIvc3JjL2xpYi9jb25zdGFudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSUMsSUFBSSxnQkFBZ0IsR0FBRyxFQUFFLENBQUM7QUFFM0IsS0FBSztBQUNMLEtBQUs7QUFDTCxLQUFLO0FBQ0wsS0FBSztBQUNMLEtBQUs7QUFDTCxLQUFLO0FBQ0wsS0FBSztBQUNMLEtBQUs7QUFDTCxLQUFLO0FBR0wsT0FBTyxFQUFDLGdCQUFnQixFQUFDLENBQUM7QUFHMUIsTUFBTSxDQUFDLE1BQU0saUJBQWlCLEdBQUc7SUFDL0Isd0JBQXdCO0lBQ3hCLGlCQUFpQjtJQUNqQixnQkFBZ0I7SUFDaEIsU0FBUztDQUNWLENBQUM7QUFFRCxDQUFDO0FBQUEsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLGtFQUFrRSIsInNvdXJjZXNDb250ZW50IjpbIlxuXG5cblxuIGxldCBDT01QSUxFUl9QT09MSU5HID0ge307XG5cbi8qICovXG4vKiAqL1xuLyogKi9cbi8qICovXG4vKiAqL1xuLyogKi9cbi8qICovXG4vKiAqL1xuLyogKi9cbiAgXG5cbmV4cG9ydCB7Q09NUElMRVJfUE9PTElOR307XG5cblxuZXhwb3J0IGNvbnN0IElHTk9SRV9CWV9ERUZBVUxUID0gW1xuICAnKiovbm9kZV9tb2R1bGVzLyoqLyouKicsXG4gICcqKi9ub2RlX21vZHVsZXMnLFxuICAnKiovLmdpdC8qKi8qLionLFxuICAnKiovLmdpdCcsXG5dO1xuXG4gOyh7fSk7IC8vIEAtLWVuZC1vZi1maWxlLWZvci1tb2R1bGU9aW5jcmVtZW50YWwtY29tcGlsZXIgbGliL2NvbnN0YW50cy50cyJdfQ==
|
@@ -1,4 +1,4 @@
|
|
1
1
|
;
|
2
2
|
({}); // @--end-of-file-for-module=incremental-compiler lib/models.ts
|
3
3
|
export {};
|
4
|
-
//# sourceMappingURL=data:application/json;base64,
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kZWxzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vdG1wLWxpYnMtZm9yLWRpc3QvaW5jcmVtZW50YWwtY29tcGlsZXIvcHJvamVjdHMvaW5jcmVtZW50YWwtY29tcGlsZXIvc3JjL2xpYi9tb2RlbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBbURDLENBQUM7QUFBQSxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsK0RBQStEIiwic291cmNlc0NvbnRlbnQiOlsiXG5cblxuaW1wb3J0IHsgQ29yZU1vZGVscyB9IGZyb20gJ3RucC1jb3JlL2Jyb3dzZXInO1xuXG5leHBvcnQgbmFtZXNwYWNlIE1vZGVscyB7XG5cbiAgZXhwb3J0IGludGVyZmFjZSBTdGFydEFuZFdhdGNoT3B0aW9uczxJTklUX1BBUkFNUyA9IGFueT4ge1xuICAgIGFmdGVySW5pdENhbGxCYWNrPzogKGluaXRpYWxQYXJhbXM/OiBJTklUX1BBUkFNUykgPT4gdm9pZDtcbiAgICB3YXRjaE9ubHk/OiBib29sZWFuO1xuICAgIC8qKlxuICAgICAqIG92ZXJyaWRlIHRhc2sgbmFtZVxuICAgICAqL1xuICAgIHRhc2tOYW1lPzogc3RyaW5nXG4gICAgaW5pdGlhb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uIDsoe30pOyAvLyBALS1lbmQtb2YtZmlsZS1mb3ItbW9kdWxlPWluY3JlbWVudGFsLWNvbXBpbGVyIGxpYi9tb2RlbHMudHMiXX0=
|
@@ -15,7 +15,7 @@ class ChangeOfFile {
|
|
15
15
|
;
|
16
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 = [
|
20
20
|
'**/node_modules/**/*.*',
|
21
21
|
'**/node_modules',
|
@@ -270,11 +270,11 @@ class BaseClientCompiler {
|
|
270
270
|
* @param absolteFilesPathes for each watched file
|
271
271
|
* @returns
|
272
272
|
*/
|
273
|
-
syncAction(absolteFilesPathes,
|
273
|
+
syncAction(absolteFilesPathes, initialParams) {
|
274
274
|
return void 0;
|
275
275
|
}
|
276
|
-
async preAsyncAction(
|
277
|
-
asyncAction(asyncEvents,
|
276
|
+
async preAsyncAction(initialParams) { }
|
277
|
+
asyncAction(asyncEvents, initialParams) {
|
278
278
|
return void 0;
|
279
279
|
}
|
280
280
|
_init(options) {
|
@@ -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\nexport const COMPILER_POOLING = (process.platform === 'win32') ? {\n\n\n\n\n} : {};\n\n\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<INITAL_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<INITAL_PARAMS>,\n ): Promise<BaseClientCompiler<INITAL_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<INITAL_PARAMS>,\n ): Promise<BaseClientCompiler<INITAL_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<INITAL_PARAMS>,\n ): Promise<BaseClientCompiler<INITAL_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 initalParams?: INITAL_PARAMS,\n ): Promise<void> {\n return void 0;\n }\n\n\n\n public async preAsyncAction(initalParams?: INITAL_PARAMS): Promise<void> {}\n\n\n\n public asyncAction(\n asyncEvents: ChangeOfFile,\n initalParams?: INITAL_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;;AC1BM,MAAA,gBAAgB,GAAG,CAAC,OAAO,CAAC,QAAQ,KAAK,OAAO,IAAI,EAKhE,GAAG;AAKS,MAAA,iBAAiB,GAAG;IAC/B,wBAAwB;IACxB,iBAAiB;IACjB,gBAAgB;IAChB,SAAS;;AAGV;AAAC,CAAC,EAAE,EAAE;;ACJN;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;;ACnD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AAGG;IACI,MAAM,aAAa,CACxB,OAAoD,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCpD,QAAA,QAAQ,KAAK,CAAC;;AAKhB;;;;AAIG;IACI,UAAU,CACf,kBAA6B,EAC7B,YAA4B,EAAA;QAE5B,OAAO,KAAK,CAAC;;AAKR,IAAA,MAAM,cAAc,CAAC,YAA4B;IAIjD,WAAW,CAChB,WAAyB,EACzB,YAA4B,EAAA;QAE5B,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-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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B,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;;;;"}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
import { ChangeOfFile } from './change-of-file';
|
3
3
|
import { Models } from './models';
|
4
4
|
import { CoreModels } from 'tnp-core/browser';
|
5
|
-
export declare class BaseClientCompiler<
|
5
|
+
export declare class BaseClientCompiler<INITIAL_PARAMS = any> implements Models.BaseClientCompilerOptions {
|
6
6
|
readonly followSymlinks: boolean;
|
7
7
|
readonly subscribeOnlyFor: CoreModels.FileExtension[];
|
8
8
|
readonly executeOutsideScenario: boolean;
|
@@ -30,25 +30,25 @@ export declare class BaseClientCompiler<INITAL_PARAMS = any> implements Models.B
|
|
30
30
|
*/
|
31
31
|
runTask(options?: {
|
32
32
|
watch?: boolean;
|
33
|
-
} & Models.StartAndWatchOptions<
|
33
|
+
} & Models.StartAndWatchOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>>;
|
34
34
|
/**
|
35
35
|
* @deprecated use runTask instead
|
36
36
|
* Do not override this
|
37
37
|
*/
|
38
|
-
start(options?: Models.StartOptions<
|
38
|
+
start(options?: Models.StartOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>>;
|
39
39
|
/**
|
40
40
|
* @deprecated use runTask instead
|
41
41
|
* Do not override this
|
42
42
|
*/
|
43
|
-
startAndWatch(options?: Models.StartAndWatchOptions<
|
43
|
+
startAndWatch(options?: Models.StartAndWatchOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>>;
|
44
44
|
/**
|
45
45
|
*
|
46
46
|
* @param absolteFilesPathes for each watched file
|
47
47
|
* @returns
|
48
48
|
*/
|
49
|
-
syncAction(absolteFilesPathes?: string[],
|
50
|
-
preAsyncAction(
|
51
|
-
asyncAction(asyncEvents: ChangeOfFile,
|
49
|
+
syncAction(absolteFilesPathes?: string[], initialParams?: INITIAL_PARAMS): Promise<void>;
|
50
|
+
preAsyncAction(initialParams?: INITIAL_PARAMS): Promise<void>;
|
51
|
+
asyncAction(asyncEvents: ChangeOfFile, initialParams?: INITIAL_PARAMS): Promise<void>;
|
52
52
|
private _init;
|
53
53
|
private fixTaskName;
|
54
54
|
filesToWatch(): any;
|
@@ -8,7 +8,7 @@ export declare class CompilerManager {
|
|
8
8
|
private inited;
|
9
9
|
private filesContentCache;
|
10
10
|
private constructor();
|
11
|
-
syncInit(client: BaseClientCompiler<any>,
|
11
|
+
syncInit(client: BaseClientCompiler<any>, initialParams: any): Promise<any>;
|
12
12
|
asyncInit(client: BaseClientCompiler<any>, initialParams: any): Promise<any>;
|
13
13
|
private actionForAsyncEvent;
|
14
14
|
addClient(client: BaseClientCompiler<any>): any;
|
package/client/lib/models.d.ts
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
import { CoreModels } from 'tnp-core/browser';
|
3
3
|
export declare namespace Models {
|
4
4
|
interface StartAndWatchOptions<INIT_PARAMS = any> {
|
5
|
-
afterInitCallBack?: (
|
5
|
+
afterInitCallBack?: (initialParams?: INIT_PARAMS) => void;
|
6
6
|
watchOnly?: boolean;
|
7
7
|
/**
|
8
8
|
* override task name
|
9
9
|
*/
|
10
10
|
taskName?: string;
|
11
|
-
|
11
|
+
initialParams?: INIT_PARAMS;
|
12
12
|
}
|
13
13
|
type StartOptions<T = any> = Omit<StartAndWatchOptions<T>, 'watchOnly'>;
|
14
14
|
interface BaseClientCompilerOptions {
|
package/index.js
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
|
4
|
-
tslib_1.__exportStar(require("./lib"), exports);
|
17
|
+
__exportStar(require("./lib"), exports);
|
5
18
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/incremental-compiler/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ChangeOfFile } from './change-of-file';
|
2
2
|
import { Models } from './models';
|
3
3
|
import { CoreModels } from 'tnp-core';
|
4
|
-
export declare class BaseClientCompiler<
|
4
|
+
export declare class BaseClientCompiler<INITIAL_PARAMS = any> implements Models.BaseClientCompilerOptions {
|
5
5
|
readonly followSymlinks: boolean;
|
6
6
|
readonly subscribeOnlyFor: CoreModels.FileExtension[];
|
7
7
|
readonly executeOutsideScenario: boolean;
|
@@ -31,25 +31,25 @@ export declare class BaseClientCompiler<INITAL_PARAMS = any> implements Models.B
|
|
31
31
|
*/
|
32
32
|
runTask(options?: {
|
33
33
|
watch?: boolean;
|
34
|
-
} & Models.StartAndWatchOptions<
|
34
|
+
} & Models.StartAndWatchOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>>;
|
35
35
|
/**
|
36
36
|
* @deprecated use runTask instead
|
37
37
|
* Do not override this
|
38
38
|
*/
|
39
|
-
start(options?: Models.StartOptions<
|
39
|
+
start(options?: Models.StartOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>>;
|
40
40
|
/**
|
41
41
|
* @deprecated use runTask instead
|
42
42
|
* Do not override this
|
43
43
|
*/
|
44
|
-
startAndWatch(options?: Models.StartAndWatchOptions<
|
44
|
+
startAndWatch(options?: Models.StartAndWatchOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>>;
|
45
45
|
/**
|
46
46
|
*
|
47
47
|
* @param absolteFilesPathes for each watched file
|
48
48
|
* @returns
|
49
49
|
*/
|
50
|
-
syncAction(absolteFilesPathes?: string[],
|
51
|
-
preAsyncAction(
|
52
|
-
asyncAction(asyncEvents: ChangeOfFile,
|
50
|
+
syncAction(absolteFilesPathes?: string[], initialParams?: INITIAL_PARAMS): Promise<void>;
|
51
|
+
preAsyncAction(initialParams?: INITIAL_PARAMS): Promise<void>;
|
52
|
+
asyncAction(asyncEvents: ChangeOfFile, initialParams?: INITIAL_PARAMS): Promise<void>;
|
53
53
|
private _init;
|
54
54
|
private fixTaskName;
|
55
55
|
filesToWatch(): string[];
|