incremental-compiler 18.0.10 → 18.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/README.md +4 -8
  2. package/assets/shared/shared_folder_info.txt +1 -1
  3. package/browser/esm2022/lib/base-client-compiler.mjs +269 -0
  4. package/browser/esm2022/lib/change-of-file.mjs +16 -0
  5. package/browser/esm2022/lib/compiler-manager.mjs +197 -0
  6. package/browser/esm2022/lib/constants.mjs +10 -0
  7. package/browser/esm2022/lib/incremental-watcher/incremental-watcher-events.mjs +4 -0
  8. package/browser/esm2022/lib/incremental-watcher/incremental-watcher-instance.mjs +4 -0
  9. package/browser/esm2022/lib/incremental-watcher/incremental-watcher-options.mjs +4 -0
  10. package/browser/esm2022/lib/incremental-watcher/incremental-watcher.mjs +49 -0
  11. package/browser/esm2022/lib/incremental-watcher/index.mjs +6 -0
  12. package/browser/esm2022/lib/index.mjs +24 -75
  13. package/browser/esm2022/lib/models.mjs +1 -3
  14. package/browser/fesm2022/incremental-compiler.mjs +366 -68
  15. package/browser/fesm2022/incremental-compiler.mjs.map +1 -1
  16. package/browser/lib/base-client-compiler.d.ts +56 -0
  17. package/browser/lib/change-of-file.d.ts +9 -0
  18. package/browser/lib/compiler-manager.d.ts +17 -0
  19. package/browser/lib/constants.d.ts +3 -0
  20. package/browser/lib/incremental-watcher/incremental-watcher-events.d.ts +6 -0
  21. package/browser/lib/incremental-watcher/incremental-watcher-instance.d.ts +7 -0
  22. package/browser/lib/incremental-watcher/incremental-watcher-options.d.ts +10 -0
  23. package/browser/lib/incremental-watcher/incremental-watcher.d.ts +4 -0
  24. package/browser/lib/incremental-watcher/index.d.ts +4 -0
  25. package/browser/lib/index.d.ts +24 -1
  26. package/browser/lib/models.d.ts +7 -6
  27. package/client/esm2022/lib/base-client-compiler.mjs +269 -0
  28. package/client/esm2022/lib/change-of-file.mjs +16 -0
  29. package/client/esm2022/lib/compiler-manager.mjs +197 -0
  30. package/client/esm2022/lib/constants.mjs +10 -0
  31. package/client/esm2022/lib/incremental-watcher/incremental-watcher-events.mjs +4 -0
  32. package/client/esm2022/lib/incremental-watcher/incremental-watcher-instance.mjs +4 -0
  33. package/client/esm2022/lib/incremental-watcher/incremental-watcher-options.mjs +4 -0
  34. package/client/esm2022/lib/incremental-watcher/incremental-watcher.mjs +49 -0
  35. package/client/esm2022/lib/incremental-watcher/index.mjs +6 -0
  36. package/client/esm2022/lib/index.mjs +24 -75
  37. package/client/esm2022/lib/models.mjs +1 -3
  38. package/client/fesm2022/incremental-compiler.mjs +366 -68
  39. package/client/fesm2022/incremental-compiler.mjs.map +1 -1
  40. package/client/lib/base-client-compiler.d.ts +56 -0
  41. package/client/lib/change-of-file.d.ts +9 -0
  42. package/client/lib/compiler-manager.d.ts +17 -0
  43. package/client/lib/constants.d.ts +3 -0
  44. package/client/lib/incremental-watcher/incremental-watcher-events.d.ts +6 -0
  45. package/client/lib/incremental-watcher/incremental-watcher-instance.d.ts +7 -0
  46. package/client/lib/incremental-watcher/incremental-watcher-options.d.ts +10 -0
  47. package/client/lib/incremental-watcher/incremental-watcher.d.ts +4 -0
  48. package/client/lib/incremental-watcher/index.d.ts +4 -0
  49. package/client/lib/index.d.ts +24 -1
  50. package/client/lib/models.d.ts +7 -6
  51. package/lib/{base-client-compiler.backend.d.ts → base-client-compiler.d.ts} +11 -11
  52. package/lib/{base-client-compiler.backend.js → base-client-compiler.js} +108 -83
  53. package/lib/base-client-compiler.js.map +1 -0
  54. package/lib/change-of-file.d.ts +8 -0
  55. package/lib/change-of-file.js +27 -0
  56. package/lib/change-of-file.js.map +1 -0
  57. package/lib/{compiler-manager.backend.d.ts → compiler-manager.d.ts} +1 -11
  58. package/lib/compiler-manager.js +219 -0
  59. package/lib/compiler-manager.js.map +1 -0
  60. package/lib/constants.d.ts +1 -0
  61. package/lib/constants.js +7 -1
  62. package/lib/constants.js.map +1 -1
  63. package/lib/incremental-watcher/incremental-watcher.js +14 -10
  64. package/lib/incremental-watcher/incremental-watcher.js.map +1 -1
  65. package/lib/incremental-watcher/parcel-watcher-adapter.backend.js +12 -13
  66. package/lib/incremental-watcher/parcel-watcher-adapter.backend.js.map +1 -1
  67. package/lib/index._auto-generated_.d.ts +0 -0
  68. package/lib/index._auto-generated_.js +6 -0
  69. package/lib/index._auto-generated_.js.map +1 -0
  70. package/lib/index.d.ts +8 -25
  71. package/lib/index.js +8 -55
  72. package/lib/index.js.map +1 -1
  73. package/lib/models.d.ts +7 -6
  74. package/package.json +4 -6
  75. package/taon.jsonc +2 -3
  76. package/tmp-environment.json +33 -31
  77. package/websql/esm2022/lib/base-client-compiler.mjs +269 -0
  78. package/websql/esm2022/lib/change-of-file.mjs +16 -0
  79. package/websql/esm2022/lib/compiler-manager.mjs +197 -0
  80. package/websql/esm2022/lib/constants.mjs +10 -0
  81. package/websql/esm2022/lib/incremental-watcher/incremental-watcher-events.mjs +4 -0
  82. package/websql/esm2022/lib/incremental-watcher/incremental-watcher-instance.mjs +4 -0
  83. package/websql/esm2022/lib/incremental-watcher/incremental-watcher-options.mjs +4 -0
  84. package/websql/esm2022/lib/incremental-watcher/incremental-watcher.mjs +49 -0
  85. package/websql/esm2022/lib/incremental-watcher/index.mjs +6 -0
  86. package/websql/esm2022/lib/index.mjs +24 -75
  87. package/websql/esm2022/lib/models.mjs +1 -3
  88. package/websql/fesm2022/incremental-compiler.mjs +366 -68
  89. package/websql/fesm2022/incremental-compiler.mjs.map +1 -1
  90. package/websql/lib/base-client-compiler.d.ts +56 -0
  91. package/websql/lib/change-of-file.d.ts +9 -0
  92. package/websql/lib/compiler-manager.d.ts +17 -0
  93. package/websql/lib/constants.d.ts +3 -0
  94. package/websql/lib/incremental-watcher/incremental-watcher-events.d.ts +6 -0
  95. package/websql/lib/incremental-watcher/incremental-watcher-instance.d.ts +7 -0
  96. package/websql/lib/incremental-watcher/incremental-watcher-options.d.ts +10 -0
  97. package/websql/lib/incremental-watcher/incremental-watcher.d.ts +4 -0
  98. package/websql/lib/incremental-watcher/index.d.ts +4 -0
  99. package/websql/lib/index.d.ts +24 -1
  100. package/websql/lib/models.d.ts +7 -6
  101. package/lib/base-client-compiler.backend.js.map +0 -1
  102. package/lib/change-of-file.backend.d.ts +0 -14
  103. package/lib/change-of-file.backend.js +0 -54
  104. package/lib/change-of-file.backend.js.map +0 -1
  105. package/lib/compiler-manager.backend.js +0 -307
  106. package/lib/compiler-manager.backend.js.map +0 -1
  107. package/lib/decorators.backend.d.ts +0 -5
  108. package/lib/decorators.backend.js +0 -56
  109. package/lib/decorators.backend.js.map +0 -1
  110. package/lib/helpers.backend.d.ts +0 -3
  111. package/lib/helpers.backend.js +0 -31
  112. package/lib/helpers.backend.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"incremental-compiler.mjs","sources":["../../../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\nimport * as models from './models';\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\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":[],"mappings":"AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGC,CAAC;AAAA,CAAC,EAAE,EAAE;;;AC9EP;;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\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":";;M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AK,CAAC,EAAE;KACjB;AAID;;;;AAIG;IACI,UAAU,CACf,kBAA6B,EAC7B,YAA4B,EAAA;QAE5B,OAAO,KAAK,CAAC,CAAC;KACf;AAIM,IAAA,MAAM,cAAc,CAAC,YAA4B,KAAmB;IAIpE,WAAW,CAChB,WAAyB,EACzB,YAA4B,EAAA;QAE5B,OAAO,KAAK,CAAC,CAAC;KACf;AAQO,IAAA,KAAK,CAAC,OAA0C,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCtD,QAAA,QAAQ,KAAK,CAAC,EAAE;KACjB;AAIO,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,CAAC;SACtC;AACD,QAAA,OAAO,QAAQ,CAAC;KACjB;IAGD,YAAY,GAAA;;;;;;;;;;;;;;;AAeV,QAAA,QAAQ,KAAK,CAAC,EAAE;KACjB;AAEO,IAAA,cAAc,CAAC,CAAS,EAAA;;;;;;AAM9B,QAAA,QAAQ,KAAK,CAAC,EAAE;KACjB;AAGF,CAAA;AAEA,CAAC;AAAA,CAAC,EAAE,EAAE;;AClVP;;;;;;;;;;;AAWG;AACG,IAAW,YAIhB;AAJD,CAAA,UAAiB,WAAW,EAAA;AAEZ,IAAA,WAAA,CAAA,IAAI,GAAGA,kBAA0B,CAAC;AAClC,IAAA,WAAA,CAAA,MAAM,GAAGC,YAAmB,CAAC;AAC7C,CAAC,EAJgB,WAAW,KAAX,WAAW,GAI3B,EAAA,CAAA,CAAA,CAAA;AAEA,CAAC;AAAA,CAAC,EAAE,EAAE;;AChCP;;AAEG;;;;"}
@@ -0,0 +1,56 @@
1
+ // @ts-nocheck
2
+ import { ChangeOfFile } from './change-of-file';
3
+ import { Models } from './models';
4
+ import { CoreModels } from 'tnp-core/browser';
5
+ export declare class BaseClientCompiler<INITAL_PARAMS = any> implements Models.BaseClientCompilerOptions {
6
+ readonly followSymlinks: boolean;
7
+ readonly subscribeOnlyFor: CoreModels.FileExtension[];
8
+ readonly executeOutsideScenario: boolean;
9
+ readonly taskName: string;
10
+ ignoreFolderPatter?: string[];
11
+ readonly notifyOnFileUnlink: boolean;
12
+ private pathResolve;
13
+ private initedWithOptions;
14
+ private __folderPath;
15
+ lastAsyncFiles: string[];
16
+ private _folderPathContentCheck;
17
+ isWatchCompilation: boolean;
18
+ get isInited(): boolean;
19
+ get folderPathContentCheck(): string[];
20
+ private set folderPathContentCheck(value);
21
+ set folderPath(v: string[]);
22
+ get folderPath(): string[];
23
+ /**
24
+ * manually init options (when no passing object to constructor super() )
25
+ */
26
+ protected initOptions(options?: Models.BaseClientCompilerOptions): any;
27
+ protected onlySingleRun: boolean;
28
+ /**
29
+ * do not override this
30
+ */
31
+ runTask(options?: {
32
+ watch?: boolean;
33
+ } & Models.StartAndWatchOptions<INITAL_PARAMS>): Promise<BaseClientCompiler<INITAL_PARAMS>>;
34
+ /**
35
+ * @deprecated use runTask instead
36
+ * Do not override this
37
+ */
38
+ start(options?: Models.StartOptions<INITAL_PARAMS>): Promise<BaseClientCompiler<INITAL_PARAMS>>;
39
+ /**
40
+ * @deprecated use runTask instead
41
+ * Do not override this
42
+ */
43
+ startAndWatch(options?: Models.StartAndWatchOptions<INITAL_PARAMS>): Promise<BaseClientCompiler<INITAL_PARAMS>>;
44
+ /**
45
+ *
46
+ * @param absolteFilesPathes for each watched file
47
+ * @returns
48
+ */
49
+ syncAction(absolteFilesPathes?: string[], initalParams?: INITAL_PARAMS): Promise<void>;
50
+ preAsyncAction(initalParams?: INITAL_PARAMS): Promise<void>;
51
+ asyncAction(asyncEvents: ChangeOfFile, initalParams?: INITAL_PARAMS): Promise<void>;
52
+ private _init;
53
+ private fixTaskName;
54
+ filesToWatch(): any;
55
+ private mapForWatching;
56
+ }
@@ -0,0 +1,9 @@
1
+ // @ts-nocheck
2
+ import { CoreModels } from 'tnp-core/browser';
3
+ export declare class ChangeOfFile {
4
+ fileAbsolutePath: string;
5
+ readonly eventName: 'add' | 'change' | 'unlink' | 'unlinkDir';
6
+ readonly datetime: Date;
7
+ constructor(fileAbsolutePath?: string, eventName?: 'add' | 'change' | 'unlink' | 'unlinkDir');
8
+ get fileExt(): CoreModels.FileExtension;
9
+ }
@@ -0,0 +1,17 @@
1
+ // @ts-nocheck
2
+ import { BaseClientCompiler } from './base-client-compiler';
3
+ export declare class CompilerManager {
4
+ private static _instance;
5
+ static get Instance(): CompilerManager;
6
+ private clients;
7
+ private asyncEventScenario;
8
+ private inited;
9
+ private filesContentCache;
10
+ private constructor();
11
+ syncInit(client: BaseClientCompiler<any>, initalParams: any): Promise<any>;
12
+ asyncInit(client: BaseClientCompiler<any>, initialParams: any): Promise<any>;
13
+ private actionForAsyncEvent;
14
+ addClient(client: BaseClientCompiler<any>): any;
15
+ private preventAlreadyInited;
16
+ private fileShouldBeChecked;
17
+ }
@@ -0,0 +1,3 @@
1
+ // @ts-nocheck
2
+ export declare const COMPILER_POOLING: {};
3
+ export declare const IGNORE_BY_DEFAULT: string[];
@@ -0,0 +1,6 @@
1
+ // @ts-nocheck
2
+ export type IncrementalWatcherEvents = 'add' | 'addDir' | 'change' | 'unlink' | 'unlinkDir';
3
+ export type IncrementalWatcherAllEvents = 'all' | IncrementalWatcherEvents;
4
+ export type ListenerForAll = (eventName: IncrementalWatcherEvents, path: string) => void;
5
+ export type ListenerForSingleEvent = (path: string) => void;
6
+ export type Listener = ListenerForAll | ListenerForSingleEvent;
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import { IncrementalWatcherAllEvents, ListenerForAll, ListenerForSingleEvent } from "./incremental-watcher-events";
3
+ export interface IncrementalWatcherInstance {
4
+ add(paths: string | ReadonlyArray<string>): void;
5
+ on(event: 'all', listener: ListenerForAll): this;
6
+ on(event: IncrementalWatcherAllEvents, listener: ListenerForSingleEvent): this;
7
+ }
@@ -0,0 +1,10 @@
1
+ // @ts-nocheck
2
+ import { Matcher } from 'anymatch';
3
+ export interface IncrementalWatcherOptions {
4
+ cwd?: string;
5
+ ignored?: Matcher;
6
+ ignoreInitial?: boolean;
7
+ followSymlinks?: boolean;
8
+ name: string;
9
+ engine?: 'chokidar' | '@parcel/watcher';
10
+ }
@@ -0,0 +1,4 @@
1
+ // @ts-nocheck
2
+ import { IncrementalWatcherInstance } from './incremental-watcher-instance';
3
+ import { IncrementalWatcherOptions } from './incremental-watcher-options';
4
+ export declare function incrementalWatcher(filePath: string | string[], watchOptions: IncrementalWatcherOptions): Promise<IncrementalWatcherInstance>;
@@ -0,0 +1,4 @@
1
+ // @ts-nocheck
2
+ export * from './incremental-watcher-instance';
3
+ export * from './incremental-watcher-options';
4
+ export * from './incremental-watcher';
@@ -1,2 +1,25 @@
1
1
  // @ts-nocheck
2
- export {};
2
+ import * as models from './models';
3
+ export * from './change-of-file';
4
+ export * from './constants';
5
+ export * from './incremental-watcher';
6
+ import * as change from './change-of-file';
7
+ export * from './base-client-compiler';
8
+ import * as incBase from './base-client-compiler';
9
+ /**
10
+ * Template for watcher client:
11
+ * // @ts-ignore
12
+ * import { IncCompiler } from '../lib';
13
+ *
14
+ * export class TestWatcher extends IncCompiler.Base {
15
+ *
16
+ * syncAction(files = []) { }
17
+ * preAsyncAction() { }
18
+ * asyncAction(change: IncCompiler.Change, additionalData:any ) { }
19
+ * }
20
+ */
21
+ export declare namespace IncCompiler {
22
+ export import Models = models.Models;
23
+ export import Base = incBase.BaseClientCompiler;
24
+ export import Change = change.ChangeOfFile;
25
+ }
@@ -4,11 +4,15 @@ export declare namespace Models {
4
4
  interface StartAndWatchOptions<INIT_PARAMS = any> {
5
5
  afterInitCallBack?: (initalParams?: INIT_PARAMS) => void;
6
6
  watchOnly?: boolean;
7
+ /**
8
+ * override task name
9
+ */
7
10
  taskName?: string;
8
11
  initalParams?: INIT_PARAMS;
9
12
  }
10
13
  type StartOptions<T = any> = Omit<StartAndWatchOptions<T>, 'watchOnly'>;
11
14
  interface BaseClientCompilerOptions {
15
+ taskName: string;
12
16
  folderPath?: string | string[];
13
17
  /**
14
18
  * It will cache in memory previouse files
@@ -16,7 +20,6 @@ export declare namespace Models {
16
20
  * and prevent not changed files emiting change event
17
21
  */
18
22
  folderPathContentCheck?: string | string[];
19
- watchDepth?: Number;
20
23
  /**
21
24
  * default true
22
25
  */
@@ -26,13 +29,11 @@ export declare namespace Models {
26
29
  * default: false
27
30
  */
28
31
  notifyOnFileUnlink?: boolean;
29
- ignoreFolderPatter?: string[];
30
- allowedOnlyFileExt?: string[];
31
32
  /**
32
- * useful when using **allowedOnlyFileExt**
33
+ * ignore glob folder pattern
34
+ * node_modules is always ignored
33
35
  */
34
- additionallyAllowedFilesWithNames?: string[];
35
- executeOutsideScenario?: boolean;
36
+ ignoreFolderPatter?: string[];
36
37
  subscribeOnlyFor?: CoreModels.FileExtension[];
37
38
  }
38
39
  }
@@ -1,15 +1,12 @@
1
- import { ChangeOfFile } from './change-of-file.backend';
1
+ import { ChangeOfFile } from './change-of-file';
2
2
  import { Models } from './models';
3
3
  import { CoreModels } from 'tnp-core/src';
4
4
  export declare class BaseClientCompiler<INITAL_PARAMS = any> implements Models.BaseClientCompilerOptions {
5
5
  readonly followSymlinks: boolean;
6
6
  readonly subscribeOnlyFor: CoreModels.FileExtension[];
7
7
  readonly executeOutsideScenario: boolean;
8
- readonly watchDepth: Number;
9
8
  readonly taskName: string;
10
9
  ignoreFolderPatter?: string[];
11
- allowedOnlyFileExt?: string[];
12
- additionallyAllowedFilesWithNames?: string[];
13
10
  readonly notifyOnFileUnlink: boolean;
14
11
  compilationWrapper: (fn: () => void, taskName?: string, executionType?: "Compilation of" | "Code execution of" | "Event:") => Promise<void>;
15
12
  private pathResolve;
@@ -17,7 +14,7 @@ export declare class BaseClientCompiler<INITAL_PARAMS = any> implements Models.B
17
14
  private __folderPath;
18
15
  lastAsyncFiles: string[];
19
16
  private _folderPathContentCheck;
20
- get key(): string;
17
+ isWatchCompilation: boolean;
21
18
  get isInited(): boolean;
22
19
  get folderPathContentCheck(): string[];
23
20
  private set folderPathContentCheck(value);
@@ -30,10 +27,18 @@ export declare class BaseClientCompiler<INITAL_PARAMS = any> implements Models.B
30
27
  protected initOptions(options?: Models.BaseClientCompilerOptions): void;
31
28
  protected onlySingleRun: boolean;
32
29
  /**
30
+ * do not override this
31
+ */
32
+ runTask(options?: {
33
+ watch?: boolean;
34
+ } & Models.StartAndWatchOptions<INITAL_PARAMS>): Promise<BaseClientCompiler<INITAL_PARAMS>>;
35
+ /**
36
+ * @deprecated use runTask instead
33
37
  * Do not override this
34
38
  */
35
39
  start(options?: Models.StartOptions<INITAL_PARAMS>): Promise<BaseClientCompiler<INITAL_PARAMS>>;
36
40
  /**
41
+ * @deprecated use runTask instead
37
42
  * Do not override this
38
43
  */
39
44
  startAndWatch(options?: Models.StartAndWatchOptions<INITAL_PARAMS>): Promise<BaseClientCompiler<INITAL_PARAMS>>;
@@ -45,13 +50,8 @@ export declare class BaseClientCompiler<INITAL_PARAMS = any> implements Models.B
45
50
  syncAction(absolteFilesPathes?: string[], initalParams?: INITAL_PARAMS): Promise<void>;
46
51
  preAsyncAction(initalParams?: INITAL_PARAMS): Promise<void>;
47
52
  asyncAction(asyncEvents: ChangeOfFile, initalParams?: INITAL_PARAMS): Promise<void>;
48
- watchOptions: {
49
- allowedExt?: string[];
50
- addionalAllowed: string[];
51
- allowedExtEnable: boolean;
52
- addionalAllowedEnable: boolean;
53
- };
54
53
  private _init;
55
54
  private fixTaskName;
56
55
  filesToWatch(): string[];
56
+ private mapForWatching;
57
57
  }