incremental-compiler 19.0.27 → 19.0.29

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 (44) hide show
  1. package/browser/package.json +1 -1
  2. package/client/package.json +1 -1
  3. package/lib/build-info._auto-generated_.d.ts +1 -1
  4. package/lib/build-info._auto-generated_.js +1 -1
  5. package/lib/env/env.angular-node-app.d.ts +4 -0
  6. package/lib/env/env.angular-node-app.js +10 -0
  7. package/lib/env/env.angular-node-app.js.map +1 -0
  8. package/lib/env/env.docs-webapp.d.ts +4 -0
  9. package/lib/env/env.docs-webapp.js +10 -0
  10. package/lib/env/env.docs-webapp.js.map +1 -0
  11. package/lib/env/env.electron-app.d.ts +4 -0
  12. package/lib/env/env.electron-app.js +10 -0
  13. package/lib/env/env.electron-app.js.map +1 -0
  14. package/lib/env/env.mobile-app.d.ts +4 -0
  15. package/lib/env/env.mobile-app.js +10 -0
  16. package/lib/env/env.mobile-app.js.map +1 -0
  17. package/lib/env/env.npm-lib-and-cli-tool.d.ts +4 -0
  18. package/lib/env/env.npm-lib-and-cli-tool.js +10 -0
  19. package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -0
  20. package/lib/env/env.vscode-plugin.d.ts +4 -0
  21. package/lib/env/env.vscode-plugin.js +10 -0
  22. package/lib/env/env.vscode-plugin.js.map +1 -0
  23. package/lib/env/index.d.ts +6 -0
  24. package/lib/env/index.js +23 -0
  25. package/lib/env/index.js.map +1 -0
  26. package/package.json +1 -1
  27. package/scss/vars.scss +7 -0
  28. package/websql/package.json +1 -1
  29. package/client/README.md +0 -24
  30. package/client/fesm2022/incremental-compiler.mjs +0 -387
  31. package/client/fesm2022/incremental-compiler.mjs.map +0 -1
  32. package/client/index.d.ts +0 -6
  33. package/client/lib/base-client-compiler.d.ts +0 -55
  34. package/client/lib/change-of-file.d.ts +0 -9
  35. package/client/lib/compiler-manager.d.ts +0 -17
  36. package/client/lib/constants.d.ts +0 -4
  37. package/client/lib/incremental-watcher/incremental-watcher-events.d.ts +0 -6
  38. package/client/lib/incremental-watcher/incremental-watcher-instance.d.ts +0 -7
  39. package/client/lib/incremental-watcher/incremental-watcher-options.d.ts +0 -10
  40. package/client/lib/incremental-watcher/incremental-watcher.d.ts +0 -4
  41. package/client/lib/incremental-watcher/index.d.ts +0 -4
  42. package/client/lib/index.d.ts +0 -25
  43. package/client/lib/models.d.ts +0 -39
  44. package/client/public-api.d.ts +0 -2
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incremental-compiler/browser",
3
- "version": "19.0.27",
3
+ "version": "19.0.29",
4
4
  "module": "fesm2022/incremental-compiler.mjs",
5
5
  "typings": "index.d.ts",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incremental-compiler/client",
3
- "version": "19.0.27",
3
+ "version": "19.0.29",
4
4
  "module": "fesm2022/incremental-compiler.mjs",
5
5
  "typings": "index.d.ts",
6
6
  "exports": {
@@ -1,3 +1,3 @@
1
1
  export declare const BUILD_FRAMEWORK_CLI_NAME = "tnp";
2
2
  export declare const PROJECT_NPM_NAME = "incremental-compiler";
3
- export declare const CURRENT_PACKAGE_VERSION = "19.0.27";
3
+ export declare const CURRENT_PACKAGE_VERSION = "19.0.29";
@@ -4,6 +4,6 @@ exports.CURRENT_PACKAGE_VERSION = exports.PROJECT_NPM_NAME = exports.BUILD_FRAME
4
4
  // THIS FILE IS GENERATED - DO NOT MODIFY
5
5
  exports.BUILD_FRAMEWORK_CLI_NAME = 'tnp';
6
6
  exports.PROJECT_NPM_NAME = 'incremental-compiler';
7
- exports.CURRENT_PACKAGE_VERSION = '19.0.27';
7
+ exports.CURRENT_PACKAGE_VERSION = '19.0.29';
8
8
  // THIS FILE IS GENERATED - DO NOT MODIFY
9
9
  //# sourceMappingURL=build-info._auto-generated_.js.map
@@ -0,0 +1,4 @@
1
+ export declare const ENV_ANGULAR_NODE_APP_WEBSITE_DOMAIN = "incremental-compiler.example.domain.com";
2
+ export declare const ENV_ANGULAR_NODE_APP_WEBSITE_TITLE = "Incremental Compiler";
3
+ export declare const ENV_ANGULAR_NODE_APP_RELEASE_TARGET_ARTIFACT = "angular-node-app";
4
+ export declare const ENV_ANGULAR_NODE_APP_RELEASE_ENV_NAME = "__";
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ENV_ANGULAR_NODE_APP_RELEASE_ENV_NAME = exports.ENV_ANGULAR_NODE_APP_RELEASE_TARGET_ARTIFACT = exports.ENV_ANGULAR_NODE_APP_WEBSITE_TITLE = exports.ENV_ANGULAR_NODE_APP_WEBSITE_DOMAIN = void 0;
4
+ // THIS FILE IS GENERATED - DO NOT MODIFY
5
+ exports.ENV_ANGULAR_NODE_APP_WEBSITE_DOMAIN = 'incremental-compiler.example.domain.com';
6
+ exports.ENV_ANGULAR_NODE_APP_WEBSITE_TITLE = 'Incremental Compiler';
7
+ exports.ENV_ANGULAR_NODE_APP_RELEASE_TARGET_ARTIFACT = 'angular-node-app';
8
+ exports.ENV_ANGULAR_NODE_APP_RELEASE_ENV_NAME = '__';
9
+ // THIS FILE IS GENERATED - DO NOT MODIFY
10
+ //# sourceMappingURL=env.angular-node-app.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env.angular-node-app.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/incremental-compiler/src/lib/env/env.angular-node-app.ts"],"names":[],"mappings":";;;AAAA,yCAAyC;AAC5B,QAAA,mCAAmC,GAAG,yCAAyC,CAAA;AAC/E,QAAA,kCAAkC,GAAG,sBAAsB,CAAA;AAC3D,QAAA,4CAA4C,GAAG,kBAAkB,CAAA;AACjE,QAAA,qCAAqC,GAAG,IAAI,CAAA;AACzD,yCAAyC"}
@@ -0,0 +1,4 @@
1
+ export declare const ENV_DOCS_WEBAPP_WEBSITE_DOMAIN = "incremental-compiler.example.domain.com";
2
+ export declare const ENV_DOCS_WEBAPP_WEBSITE_TITLE = "Incremental Compiler";
3
+ export declare const ENV_DOCS_WEBAPP_RELEASE_TARGET_ARTIFACT = "docs-webapp";
4
+ export declare const ENV_DOCS_WEBAPP_RELEASE_ENV_NAME = "__";
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ENV_DOCS_WEBAPP_RELEASE_ENV_NAME = exports.ENV_DOCS_WEBAPP_RELEASE_TARGET_ARTIFACT = exports.ENV_DOCS_WEBAPP_WEBSITE_TITLE = exports.ENV_DOCS_WEBAPP_WEBSITE_DOMAIN = void 0;
4
+ // THIS FILE IS GENERATED - DO NOT MODIFY
5
+ exports.ENV_DOCS_WEBAPP_WEBSITE_DOMAIN = 'incremental-compiler.example.domain.com';
6
+ exports.ENV_DOCS_WEBAPP_WEBSITE_TITLE = 'Incremental Compiler';
7
+ exports.ENV_DOCS_WEBAPP_RELEASE_TARGET_ARTIFACT = 'docs-webapp';
8
+ exports.ENV_DOCS_WEBAPP_RELEASE_ENV_NAME = '__';
9
+ // THIS FILE IS GENERATED - DO NOT MODIFY
10
+ //# sourceMappingURL=env.docs-webapp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env.docs-webapp.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/incremental-compiler/src/lib/env/env.docs-webapp.ts"],"names":[],"mappings":";;;AAAA,yCAAyC;AAC5B,QAAA,8BAA8B,GAAG,yCAAyC,CAAA;AAC1E,QAAA,6BAA6B,GAAG,sBAAsB,CAAA;AACtD,QAAA,uCAAuC,GAAG,aAAa,CAAA;AACvD,QAAA,gCAAgC,GAAG,IAAI,CAAA;AACpD,yCAAyC"}
@@ -0,0 +1,4 @@
1
+ export declare const ENV_ELECTRON_APP_WEBSITE_DOMAIN = "incremental-compiler.example.domain.com";
2
+ export declare const ENV_ELECTRON_APP_WEBSITE_TITLE = "Incremental Compiler";
3
+ export declare const ENV_ELECTRON_APP_RELEASE_TARGET_ARTIFACT = "electron-app";
4
+ export declare const ENV_ELECTRON_APP_RELEASE_ENV_NAME = "__";
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ENV_ELECTRON_APP_RELEASE_ENV_NAME = exports.ENV_ELECTRON_APP_RELEASE_TARGET_ARTIFACT = exports.ENV_ELECTRON_APP_WEBSITE_TITLE = exports.ENV_ELECTRON_APP_WEBSITE_DOMAIN = void 0;
4
+ // THIS FILE IS GENERATED - DO NOT MODIFY
5
+ exports.ENV_ELECTRON_APP_WEBSITE_DOMAIN = 'incremental-compiler.example.domain.com';
6
+ exports.ENV_ELECTRON_APP_WEBSITE_TITLE = 'Incremental Compiler';
7
+ exports.ENV_ELECTRON_APP_RELEASE_TARGET_ARTIFACT = 'electron-app';
8
+ exports.ENV_ELECTRON_APP_RELEASE_ENV_NAME = '__';
9
+ // THIS FILE IS GENERATED - DO NOT MODIFY
10
+ //# sourceMappingURL=env.electron-app.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env.electron-app.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/incremental-compiler/src/lib/env/env.electron-app.ts"],"names":[],"mappings":";;;AAAA,yCAAyC;AAC5B,QAAA,+BAA+B,GAAG,yCAAyC,CAAA;AAC3E,QAAA,8BAA8B,GAAG,sBAAsB,CAAA;AACvD,QAAA,wCAAwC,GAAG,cAAc,CAAA;AACzD,QAAA,iCAAiC,GAAG,IAAI,CAAA;AACrD,yCAAyC"}
@@ -0,0 +1,4 @@
1
+ export declare const ENV_MOBILE_APP_WEBSITE_DOMAIN = "incremental-compiler.example.domain.com";
2
+ export declare const ENV_MOBILE_APP_WEBSITE_TITLE = "Incremental Compiler";
3
+ export declare const ENV_MOBILE_APP_RELEASE_TARGET_ARTIFACT = "mobile-app";
4
+ export declare const ENV_MOBILE_APP_RELEASE_ENV_NAME = "__";
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ENV_MOBILE_APP_RELEASE_ENV_NAME = exports.ENV_MOBILE_APP_RELEASE_TARGET_ARTIFACT = exports.ENV_MOBILE_APP_WEBSITE_TITLE = exports.ENV_MOBILE_APP_WEBSITE_DOMAIN = void 0;
4
+ // THIS FILE IS GENERATED - DO NOT MODIFY
5
+ exports.ENV_MOBILE_APP_WEBSITE_DOMAIN = 'incremental-compiler.example.domain.com';
6
+ exports.ENV_MOBILE_APP_WEBSITE_TITLE = 'Incremental Compiler';
7
+ exports.ENV_MOBILE_APP_RELEASE_TARGET_ARTIFACT = 'mobile-app';
8
+ exports.ENV_MOBILE_APP_RELEASE_ENV_NAME = '__';
9
+ // THIS FILE IS GENERATED - DO NOT MODIFY
10
+ //# sourceMappingURL=env.mobile-app.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env.mobile-app.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/incremental-compiler/src/lib/env/env.mobile-app.ts"],"names":[],"mappings":";;;AAAA,yCAAyC;AAC5B,QAAA,6BAA6B,GAAG,yCAAyC,CAAA;AACzE,QAAA,4BAA4B,GAAG,sBAAsB,CAAA;AACrD,QAAA,sCAAsC,GAAG,YAAY,CAAA;AACrD,QAAA,+BAA+B,GAAG,IAAI,CAAA;AACnD,yCAAyC"}
@@ -0,0 +1,4 @@
1
+ export declare const ENV_NPM_LIB_AND_CLI_TOOL_WEBSITE_DOMAIN = "incremental-compiler.example.domain.com";
2
+ export declare const ENV_NPM_LIB_AND_CLI_TOOL_WEBSITE_TITLE = "Incremental Compiler";
3
+ export declare const ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_TARGET_ARTIFACT = "npm-lib-and-cli-tool";
4
+ export declare const ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_ENV_NAME = "__";
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_ENV_NAME = exports.ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_TARGET_ARTIFACT = exports.ENV_NPM_LIB_AND_CLI_TOOL_WEBSITE_TITLE = exports.ENV_NPM_LIB_AND_CLI_TOOL_WEBSITE_DOMAIN = void 0;
4
+ // THIS FILE IS GENERATED - DO NOT MODIFY
5
+ exports.ENV_NPM_LIB_AND_CLI_TOOL_WEBSITE_DOMAIN = 'incremental-compiler.example.domain.com';
6
+ exports.ENV_NPM_LIB_AND_CLI_TOOL_WEBSITE_TITLE = 'Incremental Compiler';
7
+ exports.ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_TARGET_ARTIFACT = 'npm-lib-and-cli-tool';
8
+ exports.ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_ENV_NAME = '__';
9
+ // THIS FILE IS GENERATED - DO NOT MODIFY
10
+ //# sourceMappingURL=env.npm-lib-and-cli-tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env.npm-lib-and-cli-tool.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/incremental-compiler/src/lib/env/env.npm-lib-and-cli-tool.ts"],"names":[],"mappings":";;;AAAA,yCAAyC;AAC5B,QAAA,uCAAuC,GAAG,yCAAyC,CAAA;AACnF,QAAA,sCAAsC,GAAG,sBAAsB,CAAA;AAC/D,QAAA,gDAAgD,GAAG,sBAAsB,CAAA;AACzE,QAAA,yCAAyC,GAAG,IAAI,CAAA;AAC7D,yCAAyC"}
@@ -0,0 +1,4 @@
1
+ export declare const ENV_VSCODE_PLUGIN_WEBSITE_DOMAIN = "incremental-compiler.example.domain.com";
2
+ export declare const ENV_VSCODE_PLUGIN_WEBSITE_TITLE = "Incremental Compiler";
3
+ export declare const ENV_VSCODE_PLUGIN_RELEASE_TARGET_ARTIFACT = "vscode-plugin";
4
+ export declare const ENV_VSCODE_PLUGIN_RELEASE_ENV_NAME = "__";
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ENV_VSCODE_PLUGIN_RELEASE_ENV_NAME = exports.ENV_VSCODE_PLUGIN_RELEASE_TARGET_ARTIFACT = exports.ENV_VSCODE_PLUGIN_WEBSITE_TITLE = exports.ENV_VSCODE_PLUGIN_WEBSITE_DOMAIN = void 0;
4
+ // THIS FILE IS GENERATED - DO NOT MODIFY
5
+ exports.ENV_VSCODE_PLUGIN_WEBSITE_DOMAIN = 'incremental-compiler.example.domain.com';
6
+ exports.ENV_VSCODE_PLUGIN_WEBSITE_TITLE = 'Incremental Compiler';
7
+ exports.ENV_VSCODE_PLUGIN_RELEASE_TARGET_ARTIFACT = 'vscode-plugin';
8
+ exports.ENV_VSCODE_PLUGIN_RELEASE_ENV_NAME = '__';
9
+ // THIS FILE IS GENERATED - DO NOT MODIFY
10
+ //# sourceMappingURL=env.vscode-plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env.vscode-plugin.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/incremental-compiler/src/lib/env/env.vscode-plugin.ts"],"names":[],"mappings":";;;AAAA,yCAAyC;AAC5B,QAAA,gCAAgC,GAAG,yCAAyC,CAAA;AAC5E,QAAA,+BAA+B,GAAG,sBAAsB,CAAA;AACxD,QAAA,yCAAyC,GAAG,eAAe,CAAA;AAC3D,QAAA,kCAAkC,GAAG,IAAI,CAAA;AACtD,yCAAyC"}
@@ -0,0 +1,6 @@
1
+ export * from './env.angular-node-app';
2
+ export * from './env.docs-webapp';
3
+ export * from './env.electron-app';
4
+ export * from './env.mobile-app';
5
+ export * from './env.npm-lib-and-cli-tool';
6
+ export * from './env.vscode-plugin';
@@ -0,0 +1,23 @@
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
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./env.angular-node-app"), exports);
18
+ __exportStar(require("./env.docs-webapp"), exports);
19
+ __exportStar(require("./env.electron-app"), exports);
20
+ __exportStar(require("./env.mobile-app"), exports);
21
+ __exportStar(require("./env.npm-lib-and-cli-tool"), exports);
22
+ __exportStar(require("./env.vscode-plugin"), exports);
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/incremental-compiler/src/lib/env/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,oDAAkC;AAClC,qDAAmC;AACnC,mDAAiC;AACjC,6DAA2C;AAC3C,sDAAoC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incremental-compiler",
3
- "version": "19.0.27",
3
+ "version": "19.0.29",
4
4
  "scripts": {
5
5
  "taon init": "taon init",
6
6
  "taon start": "taon start",
package/scss/vars.scss ADDED
@@ -0,0 +1,7 @@
1
+ // THIS FILE IS GENERATED - DO NOT MODIFY
2
+ // CORE ASSETS BASENAME - use it only for asset from core container
3
+ $basename: 'undefined';
4
+ $website_title: 'Incremental Compiler';
5
+ $website_domain: 'incremental-compiler.example.domain.com';
6
+ $project_npm_name: 'incremental-compiler';
7
+ // THIS FILE IS GENERATED - DO NOT MODIFY
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incremental-compiler/websql",
3
- "version": "19.0.27",
3
+ "version": "19.0.29",
4
4
  "module": "fesm2022/incremental-compiler.mjs",
5
5
  "typings": "index.d.ts",
6
6
  "exports": {
package/client/README.md DELETED
@@ -1,24 +0,0 @@
1
- # MyLib
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
- > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
@@ -1,387 +0,0 @@
1
- import { path, _ } from 'tnp-core/browser';
2
-
3
- //#region imports
4
- //#endregion
5
- class ChangeOfFile {
6
- constructor(fileAbsolutePath = void 0, eventName = void 0) {
7
- this.fileAbsolutePath = fileAbsolutePath;
8
- this.eventName = eventName;
9
- this.datetime = new Date();
10
- }
11
- get fileExt() {
12
- return path
13
- .extname(this.fileAbsolutePath)
14
- .replace('.', '');
15
- }
16
- }
17
-
18
- let COMPILER_POOLING = {};
19
- const IGNORE_BY_DEFAULT = [
20
- '**/node_modules/**/*.*',
21
- '**/node_modules',
22
- '**/.git/**/*.*',
23
- '**/.git',
24
- ];
25
-
26
- /* */
27
- /* */
28
- /* */
29
- /* */
30
- async function incrementalWatcher(filePath, watchOptions) {
31
- /* */
32
- /* */
33
- /* */
34
- /* */
35
- /* */
36
- /* */
37
- /* */
38
- /* */
39
- /* */
40
- /* */
41
- /* */
42
- /* */
43
- /* */
44
- /* */
45
- /* */
46
- /* */
47
- /* */
48
- /* */
49
- /* */
50
- /* */
51
- /* */
52
- /* */
53
- /* */
54
- /* */
55
- /* */
56
- /* */
57
- /* */
58
- /* */
59
- /* */
60
- /* */
61
- /* */
62
- /* */
63
- /* */
64
- /* */
65
- /* */
66
- /* */
67
- /* */
68
- /* */
69
- /* */
70
- return (void 0);
71
- }
72
-
73
- //#region imports
74
- /* */
75
- //#endregion
76
- class BaseClientCompiler {
77
- constructor() {
78
- this.subscribeOnlyFor = [];
79
- this.onlySingleRun = true;
80
- /* */
81
- /* */
82
- this.pathResolve = false;
83
- this.isInitedWithOptions = false;
84
- this.__folderPath = [];
85
- this.lastAsyncFiles = [];
86
- this._folderPathContentCheck = [];
87
- this.isWatchCompilation = false;
88
- //#endregion
89
- }
90
- //#endregion
91
- //#region getters & setteres
92
- //#region getters & setteres / folder path content check
93
- get folderPathContentCheck() {
94
- return this._folderPathContentCheck;
95
- }
96
- set folderPathContentCheck(v) {
97
- this._folderPathContentCheck = v;
98
- }
99
- //#endregion
100
- //#region getters & setteres / folder path
101
- set folderPath(v) {
102
- if (_.isString(v)) {
103
- v = [v];
104
- }
105
- this.__folderPath = v;
106
- }
107
- get folderPath() {
108
- /* */
109
- /* */
110
- /* */
111
- /* */
112
- /* */
113
- /* */
114
- /* */
115
- /* */
116
- /* */
117
- /* */
118
- /* */
119
- /* */
120
- /* */
121
- /* */
122
- /* */
123
- /* */
124
- /* */
125
- return (void 0);
126
- }
127
- //#endregion
128
- //#endregion
129
- //#region constructor
130
- /* */
131
- /* */
132
- /* */
133
- /* */
134
- /* */
135
- /* */
136
- /* */
137
- /* */
138
- /* */
139
- /* */
140
- /* */
141
- /* */
142
- //#endregion
143
- //#region / init options
144
- /**
145
- * manually init options (when no passing object to constructor super() )
146
- */
147
- initOptions(options) {
148
- /* */
149
- /* */
150
- /* */
151
- /* */
152
- /* */
153
- /* */
154
- /* */
155
- /* */
156
- /* */
157
- /* */
158
- /* */
159
- /* */
160
- /* */
161
- /* */
162
- /* */
163
- return (void 0);
164
- }
165
- //#endregion
166
- //#region api methods / start
167
- /**
168
- * do not override this
169
- */
170
- async runTask(options) {
171
- /* */
172
- /* */
173
- /* */
174
- /* */
175
- /* */
176
- /* */
177
- /* */
178
- /* */
179
- return (void 0);
180
- }
181
- //#region api methods / start
182
- /**
183
- * @deprecated use runTask instead
184
- * Do not override this
185
- */
186
- async start(options) {
187
- /* */
188
- /* */
189
- /* */
190
- /* */
191
- /* */
192
- /* */
193
- /* */
194
- /* */
195
- /* */
196
- /* */
197
- /* */
198
- /* */
199
- /* */
200
- /* */
201
- /* */
202
- /* */
203
- /* */
204
- /* */
205
- /* */
206
- /* */
207
- /* */
208
- /* */
209
- /* */
210
- /* */
211
- /* */
212
- /* */
213
- /* */
214
- /* */
215
- /* */
216
- /* */
217
- return (void 0);
218
- }
219
- //#endregion
220
- //#region api methods / start and watch
221
- /**
222
- * @deprecated use runTask instead
223
- * Do not override this
224
- */
225
- async startAndWatch(options) {
226
- /* */
227
- /* */
228
- /* */
229
- /* */
230
- /* */
231
- /* */
232
- /* */
233
- /* */
234
- /* */
235
- /* */
236
- /* */
237
- /* */
238
- /* */
239
- /* */
240
- /* */
241
- /* */
242
- /* */
243
- /* */
244
- /* */
245
- /* */
246
- /* */
247
- /* */
248
- /* */
249
- /* */
250
- /* */
251
- /* */
252
- /* */
253
- /* */
254
- /* */
255
- /* */
256
- /* */
257
- /* */
258
- /* */
259
- /* */
260
- /* */
261
- /* */
262
- /* */
263
- /* */
264
- /* */
265
- return (void 0);
266
- }
267
- //#endregion
268
- //#region api methods / sync action
269
- /**
270
- *
271
- * @param absolteFilesPathes for each watched file
272
- * @returns
273
- */
274
- syncAction(absolteFilesPathes, initialParams) {
275
- return void 0;
276
- }
277
- //#endregion
278
- //#region api methods / pre async action
279
- async preAsyncAction(initialParams) { }
280
- //#endregion
281
- //#region api methods / async action
282
- asyncAction(asyncEvents, initialParams) {
283
- return void 0;
284
- }
285
- //#endregion
286
- //#endregion
287
- //#region private methods
288
- //#region private methods / _init
289
- _init(options) {
290
- /* */
291
- /* */
292
- /* */
293
- /* */
294
- /* */
295
- /* */
296
- /* */
297
- /* */
298
- /* */
299
- /* */
300
- /* */
301
- /* */
302
- /* */
303
- /* */
304
- /* */
305
- /* */
306
- /* */
307
- /* */
308
- /* */
309
- /* */
310
- /* */
311
- /* */
312
- /* */
313
- /* */
314
- /* */
315
- /* */
316
- /* */
317
- /* */
318
- /* */
319
- /* */
320
- /* */
321
- /* */
322
- /* */
323
- /* */
324
- /* */
325
- /* */
326
- return (void 0);
327
- }
328
- //#endregion
329
- //#region private methods / fix task name
330
- fixTaskName(taskName) {
331
- if (!_.isString(taskName)) {
332
- taskName = `task "${this.taskName}"`;
333
- }
334
- return taskName;
335
- }
336
- //#endregion
337
- filesToWatch() {
338
- /* */
339
- /* */
340
- /* */
341
- /* */
342
- /* */
343
- /* */
344
- /* */
345
- /* */
346
- /* */
347
- /* */
348
- /* */
349
- /* */
350
- /* */
351
- /* */
352
- return (void 0);
353
- }
354
- mapForWatching(c) {
355
- /* */
356
- /* */
357
- /* */
358
- /* */
359
- /* */
360
- return (void 0);
361
- }
362
- }
363
-
364
- /**
365
- * Template for watcher client:
366
- *
367
- * import { IncCompiler } from 'incremental-compiler';
368
- *
369
- * export class TestWatcher extends IncCompiler.Base {
370
- *
371
- * syncAction(files = []) { }
372
- * preAsyncAction() { }
373
- * asyncAction(change: IncCompiler.Change, additionalData:any ) { }
374
- * }
375
- */
376
- var IncCompiler;
377
- (function (IncCompiler) {
378
- IncCompiler.Base = BaseClientCompiler;
379
- IncCompiler.Change = ChangeOfFile;
380
- })(IncCompiler || (IncCompiler = {}));
381
-
382
- /**
383
- * Generated bundle index. Do not edit.
384
- */
385
-
386
- export { BaseClientCompiler, COMPILER_POOLING, ChangeOfFile, IGNORE_BY_DEFAULT, IncCompiler, incrementalWatcher };
387
- //# sourceMappingURL=incremental-compiler.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"incremental-compiler.mjs","sources":["../../../tmp-libs-for-dist/incremental-compiler/projects/incremental-compiler/src/lib/change-of-file.ts","../../../tmp-libs-for-dist/incremental-compiler/projects/incremental-compiler/src/lib/constants.ts","../../../tmp-libs-for-dist/incremental-compiler/projects/incremental-compiler/src/lib/incremental-watcher/incremental-watcher.ts","../../../tmp-libs-for-dist/incremental-compiler/projects/incremental-compiler/src/lib/base-client-compiler.ts","../../../tmp-libs-for-dist/incremental-compiler/projects/incremental-compiler/src/lib/index.ts","../../../tmp-libs-for-dist/incremental-compiler/projects/incremental-compiler/src/incremental-compiler.ts"],"sourcesContent":["//#region imports\nimport { path, _ } from 'tnp-core/browser';\nimport { CoreModels } from 'tnp-core/browser';\n//#endregion\n\nexport class ChangeOfFile {\n public readonly datetime: Date;\n\n constructor(\n public fileAbsolutePath: string = void 0,\n public readonly eventName:\n | 'add'\n | 'change'\n | 'unlink'\n | 'unlinkDir' = void 0,\n ) {\n this.datetime = new Date();\n }\n\n public get fileExt(): CoreModels.FileExtension {\n return path\n .extname(this.fileAbsolutePath)\n .replace('.', '') as CoreModels.FileExtension;\n }\n}","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];","import { _, path, frameworkName, Helpers } from 'tnp-core/browser';\nimport { IncrementalWatcherInstance } from './incremental-watcher-instance';\nimport { IncrementalWatcherOptions } from './incremental-watcher-options';\n/* */\n/* */\n/* */\n/* */\n \n\nexport async function incrementalWatcher(\n filePath: string | string[],\n watchOptions: IncrementalWatcherOptions,\n): Promise<IncrementalWatcherInstance> {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n}","//#region imports\n/* */ \nimport { path, _, crossPlatformPath } from 'tnp-core/browser';\nimport { Helpers } from 'tnp-core/browser';\nimport { CLI } from 'tnp-core/browser';\nimport { CoreModels } from 'tnp-core/browser';\n\nimport { ChangeOfFile } from './change-of-file';\nimport { CompilerManager } from './compiler-manager';\nimport { Models } from './models';\n//#endregion\n\nexport class BaseClientCompiler<INITIAL_PARAMS = any>\n implements Models.BaseClientCompilerOptions\n{\n //#region fields\n public readonly followSymlinks: boolean;\n public readonly subscribeOnlyFor: CoreModels.FileExtension[] = [];\n public readonly executeOutsideScenario: boolean;\n public readonly taskName: string;\n public readonly notifyOnFileUnlink: boolean;\n\n protected onlySingleRun = true;\n public ignoreFolderPatter?: string[];\n/* */\n/* */\n \n private pathResolve: boolean = false;\n private isInitedWithOptions: boolean = false;\n private __folderPath: string[] = [];\n public lastAsyncFiles: string[] = [];\n private _folderPathContentCheck: string[] = [];\n isWatchCompilation: boolean = false;\n\n //#endregion\n\n //#region getters & setteres\n\n //#region getters & setteres / folder path content check\n get folderPathContentCheck() {\n return this._folderPathContentCheck;\n }\n private set folderPathContentCheck(v) {\n this._folderPathContentCheck = v;\n }\n //#endregion\n\n //#region getters & setteres / folder path\n public set folderPath(v) {\n if (_.isString(v)) {\n v = [v];\n }\n this.__folderPath = v;\n }\n public get folderPath(): string[] {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n //#endregion\n\n //#endregion\n\n //#region constructor\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n \n //#endregion\n\n //#region / init options\n /**\n * manually init options (when no passing object to constructor super() )\n */\n protected initOptions(options?: Models.BaseClientCompilerOptions) {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n //#endregion\n\n //#region api methods / start\n /**\n * do not override this\n */\n async runTask(\n options?: { watch?: boolean } & Models.StartAndWatchOptions<INITIAL_PARAMS>,\n ): Promise<BaseClientCompiler<INITIAL_PARAMS>> {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n\n //#region api methods / start\n /**\n * @deprecated use runTask instead\n * Do not override this\n */\n public async start(\n options?: Models.StartOptions<INITIAL_PARAMS>,\n ): Promise<BaseClientCompiler<INITIAL_PARAMS>> {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n //#endregion\n\n //#region api methods / start and watch\n /**\n * @deprecated use runTask instead\n * Do not override this\n */\n public async startAndWatch(\n options?: Models.StartAndWatchOptions<INITIAL_PARAMS>,\n ): Promise<BaseClientCompiler<INITIAL_PARAMS>> {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n //#endregion\n\n //#region api methods / sync action\n /**\n *\n * @param absolteFilesPathes for each watched file\n * @returns\n */\n public syncAction(\n absolteFilesPathes?: string[],\n initialParams?: INITIAL_PARAMS,\n ): Promise<void> {\n return void 0;\n }\n //#endregion\n\n //#region api methods / pre async action\n public async preAsyncAction(initialParams?: INITIAL_PARAMS): Promise<void> {}\n //#endregion\n\n //#region api methods / async action\n public asyncAction(\n asyncEvents: ChangeOfFile,\n initialParams?: INITIAL_PARAMS,\n ): Promise<void> {\n return void 0;\n }\n //#endregion\n\n //#endregion\n\n //#region private methods\n\n //#region private methods / _init\n private _init(options?: Models.BaseClientCompilerOptions) {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n //#endregion\n\n //#region private methods / fix task name\n private fixTaskName(taskName: string) {\n if (!_.isString(taskName)) {\n taskName = `task \"${this.taskName}\"`;\n }\n return taskName;\n }\n //#endregion\n\n filesToWatch() {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n\n private mapForWatching(c: string): string[] {\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n\n //#endregion\n}","import * as models from './models';\nexport * from './change-of-file';\nexport * from './constants';\nexport * from './incremental-watcher';\nimport * as change from './change-of-file';\nexport * from './base-client-compiler';\nimport * as incBase from './base-client-compiler';\n/* */\n/* */\n \n\nimport { _ } from 'tnp-core/browser';\n/**\n * Template for watcher client:\n *\n * import { IncCompiler } from 'incremental-compiler';\n *\n * export class TestWatcher extends IncCompiler.Base {\n *\n * syncAction(files = []) { }\n * preAsyncAction() { }\n * asyncAction(change: IncCompiler.Change, additionalData:any ) { }\n * }\n */\nexport namespace IncCompiler {\n export import Models = models.Models;\n export import Base = incBase.BaseClientCompiler;\n export import Change = change.ChangeOfFile;\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["incBase.BaseClientCompiler","change.ChangeOfFile"],"mappings":"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"}
package/client/index.d.ts DELETED
@@ -1,6 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Generated bundle index. Do not edit.
4
- */
5
- /// <amd-module name="incremental-compiler" />
6
- export * from './public-api';
@@ -1,55 +0,0 @@
1
- // @ts-nocheck
2
- import { CoreModels } from 'tnp-core/browser';
3
- import { ChangeOfFile } from './change-of-file';
4
- import { Models } from './models';
5
- export declare class BaseClientCompiler<INITIAL_PARAMS = any> implements Models.BaseClientCompilerOptions {
6
- readonly followSymlinks: boolean;
7
- readonly subscribeOnlyFor: CoreModels.FileExtension[];
8
- readonly executeOutsideScenario: boolean;
9
- readonly taskName: string;
10
- readonly notifyOnFileUnlink: boolean;
11
- protected onlySingleRun: boolean;
12
- ignoreFolderPatter?: string[];
13
- private pathResolve;
14
- private isInitedWithOptions;
15
- private __folderPath;
16
- lastAsyncFiles: string[];
17
- private _folderPathContentCheck;
18
- isWatchCompilation: 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
- /**
28
- * do not override this
29
- */
30
- runTask(options?: {
31
- watch?: boolean;
32
- } & Models.StartAndWatchOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>>;
33
- /**
34
- * @deprecated use runTask instead
35
- * Do not override this
36
- */
37
- start(options?: Models.StartOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>>;
38
- /**
39
- * @deprecated use runTask instead
40
- * Do not override this
41
- */
42
- startAndWatch(options?: Models.StartAndWatchOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>>;
43
- /**
44
- *
45
- * @param absolteFilesPathes for each watched file
46
- * @returns
47
- */
48
- syncAction(absolteFilesPathes?: string[], initialParams?: INITIAL_PARAMS): Promise<void>;
49
- preAsyncAction(initialParams?: INITIAL_PARAMS): Promise<void>;
50
- asyncAction(asyncEvents: ChangeOfFile, initialParams?: INITIAL_PARAMS): Promise<void>;
51
- private _init;
52
- private fixTaskName;
53
- filesToWatch(): any;
54
- private mapForWatching;
55
- }
@@ -1,9 +0,0 @@
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
- }
@@ -1,17 +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 inited;
9
- private filesContentCache;
10
- private constructor();
11
- syncInit(client: BaseClientCompiler<any>, initialParams: 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
- }
@@ -1,4 +0,0 @@
1
- // @ts-nocheck
2
- declare let COMPILER_POOLING: {};
3
- export { COMPILER_POOLING };
4
- export declare const IGNORE_BY_DEFAULT: string[];
@@ -1,6 +0,0 @@
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;
@@ -1,7 +0,0 @@
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
- }
@@ -1,10 +0,0 @@
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
- }
@@ -1,4 +0,0 @@
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>;
@@ -1,4 +0,0 @@
1
- // @ts-nocheck
2
- export * from './incremental-watcher-instance';
3
- export * from './incremental-watcher-options';
4
- export * from './incremental-watcher';
@@ -1,25 +0,0 @@
1
- // @ts-nocheck
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
- *
12
- * import { IncCompiler } from 'incremental-compiler';
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
- }
@@ -1,39 +0,0 @@
1
- // @ts-nocheck
2
- import { CoreModels } from 'tnp-core/browser';
3
- export declare namespace Models {
4
- interface StartAndWatchOptions<INIT_PARAMS = any> {
5
- afterInitCallBack?: (initialParams?: INIT_PARAMS) => void;
6
- watchOnly?: boolean;
7
- /**
8
- * override task name
9
- */
10
- taskName?: string;
11
- initialParams?: INIT_PARAMS;
12
- }
13
- type StartOptions<T = any> = Omit<StartAndWatchOptions<T>, 'watchOnly'>;
14
- interface BaseClientCompilerOptions {
15
- taskName: string;
16
- folderPath?: string | string[];
17
- /**
18
- * It will cache in memory previouse files
19
- * to limit async actions calls
20
- * and prevent not changed files emiting change event
21
- */
22
- folderPathContentCheck?: string | string[];
23
- /**
24
- * default true
25
- */
26
- followSymlinks?: boolean;
27
- /**
28
- * Notify compiler if file is unlinked
29
- * default: false
30
- */
31
- notifyOnFileUnlink?: boolean;
32
- /**
33
- * ignore glob folder pattern
34
- * node_modules is always ignored
35
- */
36
- ignoreFolderPatter?: string[];
37
- subscribeOnlyFor?: CoreModels.FileExtension[];
38
- }
39
- }
@@ -1,2 +0,0 @@
1
- // @ts-nocheck
2
- export * from './lib';