incremental-compiler 21.0.35 → 21.0.36
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/assets/shared/shared_folder_info.txt +7 -0
- package/browser/README.md +24 -0
- package/browser/fesm2022/incremental-compiler-browser.mjs +327 -0
- package/browser/fesm2022/incremental-compiler-browser.mjs.map +1 -0
- package/browser/package.json +20 -1
- package/browser/types/incremental-compiler-browser.d.ts +126 -0
- package/browser-prod/README.md +24 -0
- package/browser-prod/fesm2022/incremental-compiler-browser.mjs +327 -0
- package/browser-prod/fesm2022/incremental-compiler-browser.mjs.map +1 -0
- package/browser-prod/package.json +20 -2
- package/browser-prod/types/incremental-compiler-browser.d.ts +126 -0
- package/browser-prod.re-export.json +1 -0
- package/browser-prod.split-namespaces.json +4 -0
- package/index.d.ts +1 -0
- package/index.js +18 -0
- package/index.js.map +1 -0
- package/lib/base-client-compiler.d.ts +53 -0
- package/lib/base-client-compiler.js +263 -0
- package/lib/base-client-compiler.js.map +1 -0
- package/lib/build-info._auto-generated_.d.ts +24 -0
- package/lib/build-info._auto-generated_.js +30 -0
- package/lib/build-info._auto-generated_.js.map +1 -0
- package/lib/compiler-manager.d.ts +14 -0
- package/lib/compiler-manager.js +164 -0
- package/lib/compiler-manager.js.map +1 -0
- package/lib/constants.d.ts +1 -0
- package/lib/constants.js +10 -0
- package/lib/constants.js.map +1 -0
- package/lib/env/env.angular-node-app.d.ts +64 -0
- package/lib/env/env.angular-node-app.js +71 -0
- package/lib/env/env.angular-node-app.js.map +1 -0
- package/lib/env/env.docs-webapp.d.ts +64 -0
- package/lib/env/env.docs-webapp.js +71 -0
- package/lib/env/env.docs-webapp.js.map +1 -0
- package/lib/env/env.electron-app.d.ts +64 -0
- package/lib/env/env.electron-app.js +71 -0
- package/lib/env/env.electron-app.js.map +1 -0
- package/lib/env/env.mobile-app.d.ts +64 -0
- package/lib/env/env.mobile-app.js +71 -0
- package/lib/env/env.mobile-app.js.map +1 -0
- package/lib/env/env.npm-lib-and-cli-tool.d.ts +64 -0
- package/lib/env/env.npm-lib-and-cli-tool.js +71 -0
- package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -0
- package/lib/env/env.vscode-plugin.d.ts +64 -0
- package/lib/env/env.vscode-plugin.js +71 -0
- package/lib/env/env.vscode-plugin.js.map +1 -0
- package/lib/env/index.d.ts +6 -0
- package/lib/env/index.js +23 -0
- package/lib/env/index.js.map +1 -0
- package/lib/helpers.d.ts +12 -0
- package/lib/helpers.js +108 -0
- package/lib/helpers.js.map +1 -0
- package/lib/incremental-watcher.d.ts +3 -0
- package/lib/incremental-watcher.js +30 -0
- package/lib/incremental-watcher.js.map +1 -0
- package/lib/index._auto-generated_.d.ts +0 -0
- package/lib/index._auto-generated_.js +6 -0
- package/lib/index._auto-generated_.js.map +1 -0
- package/lib/index.d.ts +5 -0
- package/lib/index.js +22 -0
- package/lib/index.js.map +1 -0
- package/lib/migrations/index.d.ts +1 -0
- package/lib/migrations/index.js +19 -0
- package/lib/migrations/index.js.map +1 -0
- package/lib/migrations/migrations_index._auto-generated_.d.ts +0 -0
- package/lib/migrations/migrations_index._auto-generated_.js +4 -0
- package/lib/migrations/migrations_index._auto-generated_.js.map +1 -0
- package/lib/models.d.ts +67 -0
- package/lib/models.js +3 -0
- package/lib/models.js.map +1 -0
- package/lib/package.json +1 -1
- package/lib/parcel-watcher-adapter.d.ts +30 -0
- package/lib/parcel-watcher-adapter.js +300 -0
- package/lib/parcel-watcher-adapter.js.map +1 -0
- package/lib-prod/base-client-compiler.d.ts +53 -0
- package/lib-prod/base-client-compiler.js +259 -0
- package/lib-prod/base-client-compiler.js.map +1 -0
- package/lib-prod/build-info._auto-generated_.d.ts +24 -0
- package/lib-prod/build-info._auto-generated_.js +27 -0
- package/lib-prod/build-info._auto-generated_.js.map +1 -0
- package/lib-prod/compiler-manager.d.ts +14 -0
- package/lib-prod/compiler-manager.js +160 -0
- package/lib-prod/compiler-manager.js.map +1 -0
- package/lib-prod/constants.d.ts +1 -0
- package/lib-prod/constants.js +7 -0
- package/lib-prod/constants.js.map +1 -0
- package/lib-prod/env/env.angular-node-app.d.ts +64 -0
- package/lib-prod/env/env.angular-node-app.js +67 -0
- package/lib-prod/env/env.angular-node-app.js.map +1 -0
- package/lib-prod/env/env.docs-webapp.d.ts +64 -0
- package/lib-prod/env/env.docs-webapp.js +67 -0
- package/lib-prod/env/env.docs-webapp.js.map +1 -0
- package/lib-prod/env/env.electron-app.d.ts +64 -0
- package/lib-prod/env/env.electron-app.js +67 -0
- package/lib-prod/env/env.electron-app.js.map +1 -0
- package/lib-prod/env/env.mobile-app.d.ts +64 -0
- package/lib-prod/env/env.mobile-app.js +67 -0
- package/lib-prod/env/env.mobile-app.js.map +1 -0
- package/lib-prod/env/env.npm-lib-and-cli-tool.d.ts +64 -0
- package/lib-prod/env/env.npm-lib-and-cli-tool.js +67 -0
- package/lib-prod/env/env.npm-lib-and-cli-tool.js.map +1 -0
- package/lib-prod/env/env.vscode-plugin.d.ts +64 -0
- package/lib-prod/env/env.vscode-plugin.js +67 -0
- package/lib-prod/env/env.vscode-plugin.js.map +1 -0
- package/lib-prod/env/index.d.ts +6 -0
- package/lib-prod/env/index.js +7 -0
- package/lib-prod/env/index.js.map +1 -0
- package/lib-prod/helpers.d.ts +12 -0
- package/lib-prod/helpers.js +102 -0
- package/lib-prod/helpers.js.map +1 -0
- package/lib-prod/incremental-watcher.d.ts +3 -0
- package/lib-prod/incremental-watcher.js +27 -0
- package/lib-prod/incremental-watcher.js.map +1 -0
- package/lib-prod/index._auto-generated_.d.ts +0 -0
- package/lib-prod/index._auto-generated_.js +6 -0
- package/lib-prod/index._auto-generated_.js.map +1 -0
- package/lib-prod/index.d.ts +5 -0
- package/lib-prod/index.js +6 -0
- package/lib-prod/index.js.map +1 -0
- package/lib-prod/migrations/index.d.ts +1 -0
- package/lib-prod/migrations/index.js +3 -0
- package/lib-prod/migrations/index.js.map +1 -0
- package/lib-prod/migrations/migrations_index._auto-generated_.d.ts +0 -0
- package/lib-prod/migrations/migrations_index._auto-generated_.js +4 -0
- package/lib-prod/migrations/migrations_index._auto-generated_.js.map +1 -0
- package/lib-prod/models.d.ts +67 -0
- package/lib-prod/models.js +2 -0
- package/lib-prod/models.js.map +1 -0
- package/lib-prod/package.json +1 -1
- package/lib-prod/parcel-watcher-adapter.d.ts +30 -0
- package/lib-prod/parcel-watcher-adapter.js +296 -0
- package/lib-prod/parcel-watcher-adapter.js.map +1 -0
- package/lib-prod.re-export.json +1 -0
- package/lib-prod.split-namespaces.json +4 -0
- package/package.json +1 -1
- package/scss/global.scss +44 -0
- package/scss/index.scss +2 -0
- package/scss/lib/index.scss +1 -0
- package/scss/vars.scss +7 -0
- package/websql/README.md +24 -0
- package/websql/fesm2022/incremental-compiler-websql.mjs +327 -0
- package/websql/fesm2022/incremental-compiler-websql.mjs.map +1 -0
- package/websql/package.json +20 -1
- package/websql/types/incremental-compiler-websql.d.ts +126 -0
- package/websql-prod/README.md +24 -0
- package/websql-prod/fesm2022/incremental-compiler-websql.mjs +327 -0
- package/websql-prod/fesm2022/incremental-compiler-websql.mjs.map +1 -0
- package/websql-prod/package.json +20 -2
- package/websql-prod/types/incremental-compiler-websql.d.ts +126 -0
- package/websql-prod.re-export.json +1 -0
- package/websql-prod.split-namespaces.json +4 -0
|
@@ -0,0 +1,24 @@
|
|
|
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.
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
import { _ } from 'tnp-core/browser';
|
|
2
|
+
|
|
3
|
+
const IGNORE_BY_DEFAULT = [
|
|
4
|
+
'**/node_modules/**/*.*',
|
|
5
|
+
'**/node_modules',
|
|
6
|
+
'**/.git/**/*.*',
|
|
7
|
+
'**/.git',
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
function incrementalWatcher(filesFolderPathOrPatternsToWatch, watchOptions) {
|
|
12
|
+
/* */
|
|
13
|
+
/* */
|
|
14
|
+
/* */
|
|
15
|
+
/* */
|
|
16
|
+
/* */
|
|
17
|
+
/* */
|
|
18
|
+
/* */
|
|
19
|
+
/* */
|
|
20
|
+
/* */
|
|
21
|
+
/* */
|
|
22
|
+
/* */
|
|
23
|
+
/* */
|
|
24
|
+
/* */
|
|
25
|
+
/* */
|
|
26
|
+
/* */
|
|
27
|
+
/* */
|
|
28
|
+
/* */
|
|
29
|
+
/* */
|
|
30
|
+
/* */
|
|
31
|
+
/* */
|
|
32
|
+
/* */
|
|
33
|
+
/* */
|
|
34
|
+
/* */
|
|
35
|
+
/* */
|
|
36
|
+
/* */
|
|
37
|
+
/* */
|
|
38
|
+
return (void 0);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
//#region imports
|
|
42
|
+
/* */
|
|
43
|
+
//#endregion
|
|
44
|
+
class BaseClientCompiler {
|
|
45
|
+
constructor() {
|
|
46
|
+
this.subscribeOnlyFor = [];
|
|
47
|
+
this.onlySingleRun = true;
|
|
48
|
+
this.pathResolve = false;
|
|
49
|
+
this.isInitedWithOptions = false;
|
|
50
|
+
this.__folderPath = [];
|
|
51
|
+
this.lastAsyncFiles = [];
|
|
52
|
+
this.isWatchCompilation = false;
|
|
53
|
+
this.folderPathContentCheck = [];
|
|
54
|
+
//#endregion
|
|
55
|
+
//#endregion
|
|
56
|
+
}
|
|
57
|
+
set folderPath(v) {
|
|
58
|
+
/* */
|
|
59
|
+
/* */
|
|
60
|
+
/* */
|
|
61
|
+
/* */
|
|
62
|
+
/* */
|
|
63
|
+
}
|
|
64
|
+
get folderPath() {
|
|
65
|
+
/* */
|
|
66
|
+
/* */
|
|
67
|
+
/* */
|
|
68
|
+
/* */
|
|
69
|
+
/* */
|
|
70
|
+
/* */
|
|
71
|
+
/* */
|
|
72
|
+
/* */
|
|
73
|
+
/* */
|
|
74
|
+
/* */
|
|
75
|
+
/* */
|
|
76
|
+
/* */
|
|
77
|
+
/* */
|
|
78
|
+
/* */
|
|
79
|
+
/* */
|
|
80
|
+
/* */
|
|
81
|
+
/* */
|
|
82
|
+
return (void 0);
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region constructor
|
|
86
|
+
/* */
|
|
87
|
+
/* */
|
|
88
|
+
/* */
|
|
89
|
+
/* */
|
|
90
|
+
/* */
|
|
91
|
+
/* */
|
|
92
|
+
/* */
|
|
93
|
+
/* */
|
|
94
|
+
/* */
|
|
95
|
+
/* */
|
|
96
|
+
/* */
|
|
97
|
+
/* */
|
|
98
|
+
/* */
|
|
99
|
+
/* */
|
|
100
|
+
/* */
|
|
101
|
+
/* */
|
|
102
|
+
/* */
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region init options
|
|
105
|
+
/**
|
|
106
|
+
* manually init options (when no passing object to constructor super() )
|
|
107
|
+
*/
|
|
108
|
+
initOptions(options) {
|
|
109
|
+
/* */
|
|
110
|
+
/* */
|
|
111
|
+
/* */
|
|
112
|
+
/* */
|
|
113
|
+
/* */
|
|
114
|
+
/* */
|
|
115
|
+
/* */
|
|
116
|
+
/* */
|
|
117
|
+
/* */
|
|
118
|
+
/* */
|
|
119
|
+
/* */
|
|
120
|
+
/* */
|
|
121
|
+
/* */
|
|
122
|
+
/* */
|
|
123
|
+
/* */
|
|
124
|
+
return (void 0);
|
|
125
|
+
}
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region run task
|
|
128
|
+
/**
|
|
129
|
+
* do not override this
|
|
130
|
+
*/
|
|
131
|
+
async runTask(options) {
|
|
132
|
+
/* */
|
|
133
|
+
/* */
|
|
134
|
+
/* */
|
|
135
|
+
/* */
|
|
136
|
+
/* */
|
|
137
|
+
/* */
|
|
138
|
+
/* */
|
|
139
|
+
/* */
|
|
140
|
+
/* */
|
|
141
|
+
return (void 0);
|
|
142
|
+
}
|
|
143
|
+
//#endregion
|
|
144
|
+
//#region start
|
|
145
|
+
/**
|
|
146
|
+
* @deprecated use runTask instead
|
|
147
|
+
* Do not override this
|
|
148
|
+
*/
|
|
149
|
+
async start(options) {
|
|
150
|
+
/* */
|
|
151
|
+
/* */
|
|
152
|
+
/* */
|
|
153
|
+
/* */
|
|
154
|
+
/* */
|
|
155
|
+
/* */
|
|
156
|
+
/* */
|
|
157
|
+
/* */
|
|
158
|
+
/* */
|
|
159
|
+
/* */
|
|
160
|
+
/* */
|
|
161
|
+
/* */
|
|
162
|
+
/* */
|
|
163
|
+
/* */
|
|
164
|
+
/* */
|
|
165
|
+
/* */
|
|
166
|
+
/* */
|
|
167
|
+
/* */
|
|
168
|
+
/* */
|
|
169
|
+
/* */
|
|
170
|
+
/* */
|
|
171
|
+
/* */
|
|
172
|
+
/* */
|
|
173
|
+
/* */
|
|
174
|
+
/* */
|
|
175
|
+
/* */
|
|
176
|
+
/* */
|
|
177
|
+
/* */
|
|
178
|
+
/* */
|
|
179
|
+
/* */
|
|
180
|
+
return (void 0);
|
|
181
|
+
}
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region start and watch
|
|
184
|
+
/**
|
|
185
|
+
* @deprecated use runTask instead
|
|
186
|
+
* Do not override this
|
|
187
|
+
*/
|
|
188
|
+
async startAndWatch(options) {
|
|
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
|
+
/* */
|
|
218
|
+
/* */
|
|
219
|
+
/* */
|
|
220
|
+
/* */
|
|
221
|
+
/* */
|
|
222
|
+
/* */
|
|
223
|
+
/* */
|
|
224
|
+
/* */
|
|
225
|
+
/* */
|
|
226
|
+
/* */
|
|
227
|
+
/* */
|
|
228
|
+
return (void 0);
|
|
229
|
+
}
|
|
230
|
+
//#endregion
|
|
231
|
+
//#region sync action
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
* @param absolteFilesPathes for each watched file
|
|
235
|
+
* @returns
|
|
236
|
+
*/
|
|
237
|
+
syncAction(absolteFilesPathes, initialParams) {
|
|
238
|
+
return void 0;
|
|
239
|
+
}
|
|
240
|
+
//#endregion
|
|
241
|
+
//#region pre async action
|
|
242
|
+
async preAsyncAction(initialParams) { }
|
|
243
|
+
//#endregion
|
|
244
|
+
//#region async action
|
|
245
|
+
asyncAction(asyncEvents, initialParams) {
|
|
246
|
+
return void 0;
|
|
247
|
+
}
|
|
248
|
+
//#endregion
|
|
249
|
+
//#region get files to watch
|
|
250
|
+
getFilesFolderPatternsToWatch() {
|
|
251
|
+
/* */
|
|
252
|
+
/* */
|
|
253
|
+
/* */
|
|
254
|
+
/* */
|
|
255
|
+
/* */
|
|
256
|
+
/* */
|
|
257
|
+
/* */
|
|
258
|
+
/* */
|
|
259
|
+
/* */
|
|
260
|
+
/* */
|
|
261
|
+
/* */
|
|
262
|
+
/* */
|
|
263
|
+
/* */
|
|
264
|
+
/* */
|
|
265
|
+
/* */
|
|
266
|
+
return (void 0);
|
|
267
|
+
}
|
|
268
|
+
//#endregion
|
|
269
|
+
//#region private methods
|
|
270
|
+
//#region private methods / fix and assign options
|
|
271
|
+
fixAndAssignOptions(options) {
|
|
272
|
+
/* */
|
|
273
|
+
/* */
|
|
274
|
+
/* */
|
|
275
|
+
/* */
|
|
276
|
+
/* */
|
|
277
|
+
/* */
|
|
278
|
+
/* */
|
|
279
|
+
/* */
|
|
280
|
+
/* */
|
|
281
|
+
/* */
|
|
282
|
+
/* */
|
|
283
|
+
/* */
|
|
284
|
+
/* */
|
|
285
|
+
/* */
|
|
286
|
+
/* */
|
|
287
|
+
/* */
|
|
288
|
+
/* */
|
|
289
|
+
/* */
|
|
290
|
+
/* */
|
|
291
|
+
/* */
|
|
292
|
+
/* */
|
|
293
|
+
/* */
|
|
294
|
+
/* */
|
|
295
|
+
/* */
|
|
296
|
+
/* */
|
|
297
|
+
/* */
|
|
298
|
+
/* */
|
|
299
|
+
/* */
|
|
300
|
+
/* */
|
|
301
|
+
/* */
|
|
302
|
+
/* */
|
|
303
|
+
/* */
|
|
304
|
+
/* */
|
|
305
|
+
/* */
|
|
306
|
+
/* */
|
|
307
|
+
/* */
|
|
308
|
+
return (void 0);
|
|
309
|
+
}
|
|
310
|
+
//#endregion
|
|
311
|
+
//#region private methods / fix task name
|
|
312
|
+
fixTaskName(taskName) {
|
|
313
|
+
if (!_.isString(taskName)) {
|
|
314
|
+
taskName = `task "${this.taskName}"`;
|
|
315
|
+
}
|
|
316
|
+
return taskName;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/* */
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Generated bundle index. Do not edit.
|
|
324
|
+
*/
|
|
325
|
+
|
|
326
|
+
export { BaseClientCompiler, IGNORE_BY_DEFAULT, incrementalWatcher };
|
|
327
|
+
//# sourceMappingURL=incremental-compiler-browser.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"incremental-compiler-browser.mjs","sources":["../../../tmp-libs-for-dist/incremental-compiler/projects/incremental-compiler/src/lib/constants.ts","../../../tmp-libs-for-dist/incremental-compiler/projects/incremental-compiler/src/lib/incremental-watcher.ts","../../../tmp-libs-for-dist/incremental-compiler/projects/incremental-compiler/src/lib/base-client-compiler.ts","../../../tmp-libs-for-dist/incremental-compiler/projects/incremental-compiler/src/lib/index.ts","../../../tmp-libs-for-dist/incremental-compiler/projects/incremental-compiler/src/incremental-compiler-browser.ts"],"sourcesContent":["export const IGNORE_BY_DEFAULT = [\n '**/node_modules/**/*.*',\n '**/node_modules',\n '**/.git/**/*.*',\n '**/.git',\n];","//#region imports\nimport { _, path, frameworkName, Helpers } from 'tnp-core/browser';\nimport { chokidar } from 'tnp-core/browser';\n\nimport { IncrementalWatcherInstance } from './models';\nimport { IncrementalWatcherOptions } from './models';\nimport { ParcelWatcherAdapter } from './parcel-watcher-adapter';\n//#endregion\n\nexport function incrementalWatcher(\n filesFolderPathOrPatternsToWatch: string[],\n watchOptions: IncrementalWatcherOptions,\n): IncrementalWatcherInstance {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n}","//#region imports\n/* */ \nimport { path, _, crossPlatformPath, UtilsMessages } from 'tnp-core/browser';\nimport { Helpers } from 'tnp-core/browser';\nimport { CLI } from 'tnp-core/browser';\nimport { CoreModels } from 'tnp-core/browser';\n\nimport { CompilerManager } from './compiler-manager';\nimport { mapForWatching } from './helpers';\nimport { ChangeOfFile, IncrementalWatcherOptions } from './models';\nimport {\n BaseClientCompilerOptions,\n StartAndWatchOptions,\n StartOptions,\n} from './models';\n//#endregion\n\nexport class BaseClientCompiler<INITIAL_PARAMS = any>\n implements BaseClientCompilerOptions\n{\n //#region fields & getters\n public readonly followSymlinks: boolean;\n\n public readonly subscribeOnlyFor: CoreModels.FileExtension[] = [];\n\n public readonly executeOutsideScenario: boolean;\n\n public readonly taskName: string;\n\n public readonly engine: IncrementalWatcherOptions['engine'];\n\n public readonly notifyOnFileUnlink: boolean;\n\n protected onlySingleRun = true;\n\n public ignoreFolderPatter?: string[];\n\n private pathResolve: boolean = false;\n\n private isInitedWithOptions: boolean = false;\n\n private __folderPath: string[] = [];\n\n public lastAsyncFiles: string[] = [];\n\n public readonly isWatchCompilation: boolean = false;\n\n public readonly folderPathContentCheck: string[] = [];\n\n public set folderPath(v) {\n/* */\n/* */\n/* */\n/* */\n/* */\n \n }\n\n public get folderPath(): string[] {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n //#endregion\n\n //#region constructor\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n \n //#endregion\n\n //#region init options\n /**\n * manually init options (when no passing object to constructor super() )\n */\n protected initOptions(options?: BaseClientCompilerOptions): void {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n //#endregion\n\n //#region run task\n /**\n * do not override this\n */\n async runTask(\n options?: { watch?: boolean } & StartAndWatchOptions<INITIAL_PARAMS>,\n ): Promise<BaseClientCompiler<INITIAL_PARAMS>> {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n //#endregion\n\n //#region start\n /**\n * @deprecated use runTask instead\n * Do not override this\n */\n public async start(\n options?: StartOptions<INITIAL_PARAMS>,\n ): Promise<BaseClientCompiler<INITIAL_PARAMS>> {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n //#endregion\n\n //#region start and watch\n /**\n * @deprecated use runTask instead\n * Do not override this\n */\n public async startAndWatch(\n options?: StartAndWatchOptions<INITIAL_PARAMS>,\n ): Promise<BaseClientCompiler<INITIAL_PARAMS>> {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n //#endregion\n\n //#region sync action\n /**\n *\n * @param absolteFilesPathes for each watched file\n * @returns\n */\n public syncAction(\n absolteFilesPathes?: string[],\n initialParams?: INITIAL_PARAMS,\n ): Promise<void> {\n return void 0;\n }\n //#endregion\n\n //#region pre async action\n public async preAsyncAction(initialParams?: INITIAL_PARAMS): Promise<void> {}\n //#endregion\n\n //#region async action\n public asyncAction(\n asyncEvents: ChangeOfFile,\n initialParams?: INITIAL_PARAMS,\n ): Promise<void> {\n return void 0;\n }\n //#endregion\n\n //#region get files to watch\n public getFilesFolderPatternsToWatch(): string[] {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n //#endregion\n\n //#region private methods\n\n //#region private methods / fix and assign options\n private fixAndAssignOptions(options?: BaseClientCompilerOptions): void {\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n/* */\n return (void 0);\n }\n //#endregion\n\n //#region private methods / fix task name\n private fixTaskName(taskName: string): string {\n if (!_.isString(taskName)) {\n taskName = `task \"${this.taskName}\"`;\n }\n return taskName;\n }\n //#endregion\n\n //#endregion\n}","export * from './constants';\nexport * from './models';\nexport * from './incremental-watcher';\nexport * from './base-client-compiler';\n/* */ ","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAO,MAAM,iBAAiB,GAAG;IAC/B,wBAAwB;IACxB,iBAAiB;IACjB,gBAAgB;IAChB,SAAS;;;ACGX;AAEM,SAAU,kBAAkB,CAChC,gCAA0C,EAC1C,YAAuC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BvC,IAAA,QAAQ,KAAK,CAAC;AAChB;;ACxCA;AACA;AAcA;MAEa,kBAAkB,CAAA;AAA/B,IAAA,WAAA,GAAA;QAMkB,IAAA,CAAA,gBAAgB,GAA+B,EAAE;QAUvD,IAAA,CAAA,aAAa,GAAG,IAAI;QAItB,IAAA,CAAA,WAAW,GAAY,KAAK;QAE5B,IAAA,CAAA,mBAAmB,GAAY,KAAK;QAEpC,IAAA,CAAA,YAAY,GAAa,EAAE;QAE5B,IAAA,CAAA,cAAc,GAAa,EAAE;QAEpB,IAAA,CAAA,kBAAkB,GAAY,KAAK;QAEnC,IAAA,CAAA,sBAAsB,GAAa,EAAE;;;IAqSvD;IAnSE,IAAW,UAAU,CAAC,CAAC,EAAA;;;;;;IAOvB;AAEA,IAAA,IAAW,UAAU,GAAA;;;;;;;;;;;;;;;;;;AAkBnB,QAAA,QAAQ,KAAK,CAAC;IAChB;;;;;;;;;;;;;;;;;;;;;;AAyBA;;AAEG;AACO,IAAA,WAAW,CAAC,OAAmC,EAAA;;;;;;;;;;;;;;;;AAgBvD,QAAA,QAAQ,KAAK,CAAC;IAChB;;;AAIA;;AAEG;IACH,MAAM,OAAO,CACX,OAAoE,EAAA;;;;;;;;;;AAWpE,QAAA,QAAQ,KAAK,CAAC;IAChB;;;AAIA;;;AAGG;IACI,MAAM,KAAK,CAChB,OAAsC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCtC,QAAA,QAAQ,KAAK,CAAC;IAChB;;;AAIA;;;AAGG;IACI,MAAM,aAAa,CACxB,OAA8C,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyC9C,QAAA,QAAQ,KAAK,CAAC;IAChB;;;AAIA;;;;AAIG;IACI,UAAU,CACf,kBAA6B,EAC7B,aAA8B,EAAA;QAE9B,OAAO,KAAK,CAAC;IACf;;;AAIO,IAAA,MAAM,cAAc,CAAC,aAA8B,IAAkB;;;IAIrE,WAAW,CAChB,WAAyB,EACzB,aAA8B,EAAA;QAE9B,OAAO,KAAK,CAAC;IACf;;;IAIO,6BAA6B,GAAA;;;;;;;;;;;;;;;;AAgBlC,QAAA,QAAQ,KAAK,CAAC;IAChB;;;;AAMQ,IAAA,mBAAmB,CAAC,OAAmC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqC7D,QAAA,QAAQ,KAAK,CAAC;IAChB;;;AAIQ,IAAA,WAAW,CAAC,QAAgB,EAAA;QAClC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;AACzB,YAAA,QAAQ,GAAG,CAAA,MAAA,EAAS,IAAI,CAAC,QAAQ,GAAG;QACtC;AACA,QAAA,OAAO,QAAQ;IACjB;AAID;;AChVD;;ACJA;;AAEG;;;;"}
|
package/browser/package.json
CHANGED
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
+
"name": "incremental-compiler/browser",
|
|
3
|
+
"version": "21.0.36",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^21.0.0",
|
|
6
|
+
"@angular/core": "^21.0.0"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
|
+
},
|
|
2
11
|
"sideEffects": false,
|
|
3
|
-
"
|
|
12
|
+
"module": "fesm2022/incremental-compiler-browser.mjs",
|
|
13
|
+
"typings": "types/incremental-compiler-browser.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
"./package.json": {
|
|
16
|
+
"default": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./types/incremental-compiler-browser.d.ts",
|
|
20
|
+
"default": "./fesm2022/incremental-compiler-browser.mjs"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
4
23
|
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { CoreModels } from 'tnp-core/browser';
|
|
3
|
+
|
|
4
|
+
declare const IGNORE_BY_DEFAULT: string[];
|
|
5
|
+
|
|
6
|
+
interface StartAndWatchOptions<INIT_PARAMS = any> {
|
|
7
|
+
afterInitCallBack?: (initialParams?: INIT_PARAMS) => void;
|
|
8
|
+
watchOnly?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* override task name
|
|
11
|
+
*/
|
|
12
|
+
taskName?: string;
|
|
13
|
+
initialParams?: INIT_PARAMS;
|
|
14
|
+
}
|
|
15
|
+
type StartOptions<T = any> = Omit<StartAndWatchOptions<T>, 'watchOnly'>;
|
|
16
|
+
interface BaseClientCompilerOptions {
|
|
17
|
+
taskName: string;
|
|
18
|
+
folderPath?: string | string[];
|
|
19
|
+
/**
|
|
20
|
+
* It will cache in memory previouse files
|
|
21
|
+
* to limit async actions calls
|
|
22
|
+
* and prevent not changed files emiting change event
|
|
23
|
+
*/
|
|
24
|
+
folderPathContentCheck?: string | string[];
|
|
25
|
+
/**
|
|
26
|
+
* default true
|
|
27
|
+
*/
|
|
28
|
+
followSymlinks?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Notify compiler if file is unlinked
|
|
31
|
+
* default: false
|
|
32
|
+
*/
|
|
33
|
+
notifyOnFileUnlink?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* ignore glob folder pattern
|
|
36
|
+
* node_modules is always ignored
|
|
37
|
+
*/
|
|
38
|
+
ignoreFolderPatter?: string[];
|
|
39
|
+
subscribeOnlyFor?: CoreModels.FileExtension[];
|
|
40
|
+
engine?: IncrementalWatcherOptions['engine'];
|
|
41
|
+
}
|
|
42
|
+
interface ParcelEvent {
|
|
43
|
+
path: string;
|
|
44
|
+
type: ParcelEventType;
|
|
45
|
+
}
|
|
46
|
+
type IncrementalWatcherAllEvents = 'all' | IncrementalWatcherEvents;
|
|
47
|
+
type ListenerForAll = (eventName: IncrementalWatcherEvents, path: string) => void;
|
|
48
|
+
type ListenerForSingleEvent = (path: string) => void;
|
|
49
|
+
type Listener = ListenerForAll | ListenerForSingleEvent;
|
|
50
|
+
interface IncrementalWatcherInstance {
|
|
51
|
+
add(paths: string | ReadonlyArray<string>): void;
|
|
52
|
+
on(event: 'all', listener: ListenerForAll): this;
|
|
53
|
+
on(event: IncrementalWatcherAllEvents, listener: ListenerForSingleEvent): this;
|
|
54
|
+
}
|
|
55
|
+
interface IncrementalWatcherOptions {
|
|
56
|
+
ignored?: string[];
|
|
57
|
+
ignoreInitial?: boolean;
|
|
58
|
+
followSymlinks?: boolean;
|
|
59
|
+
name: string;
|
|
60
|
+
/**
|
|
61
|
+
* Default is @parcel/watcher
|
|
62
|
+
*/
|
|
63
|
+
engine?: 'chokidar' | '@parcel/watcher';
|
|
64
|
+
}
|
|
65
|
+
type IncrementalWatcherEvents = 'add' | 'addDir' | 'change' | 'unlink' | 'unlinkDir';
|
|
66
|
+
type ParcelEventType = 'create' | 'update' | 'delete';
|
|
67
|
+
interface ChangeOfFile {
|
|
68
|
+
datetime: Date;
|
|
69
|
+
fileAbsolutePath: string;
|
|
70
|
+
eventName: 'add' | 'change' | 'unlink' | 'unlinkDir';
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare function incrementalWatcher(filesFolderPathOrPatternsToWatch: string[], watchOptions: IncrementalWatcherOptions): IncrementalWatcherInstance;
|
|
74
|
+
|
|
75
|
+
declare class BaseClientCompiler<INITIAL_PARAMS = any> implements BaseClientCompilerOptions {
|
|
76
|
+
readonly followSymlinks: boolean;
|
|
77
|
+
readonly subscribeOnlyFor: CoreModels.FileExtension[];
|
|
78
|
+
readonly executeOutsideScenario: boolean;
|
|
79
|
+
readonly taskName: string;
|
|
80
|
+
readonly engine: IncrementalWatcherOptions['engine'];
|
|
81
|
+
readonly notifyOnFileUnlink: boolean;
|
|
82
|
+
protected onlySingleRun: boolean;
|
|
83
|
+
ignoreFolderPatter?: string[];
|
|
84
|
+
private pathResolve;
|
|
85
|
+
private isInitedWithOptions;
|
|
86
|
+
private __folderPath;
|
|
87
|
+
lastAsyncFiles: string[];
|
|
88
|
+
readonly isWatchCompilation: boolean;
|
|
89
|
+
readonly folderPathContentCheck: string[];
|
|
90
|
+
set folderPath(v: string[]);
|
|
91
|
+
get folderPath(): string[];
|
|
92
|
+
/**
|
|
93
|
+
* manually init options (when no passing object to constructor super() )
|
|
94
|
+
*/
|
|
95
|
+
protected initOptions(options?: BaseClientCompilerOptions): void;
|
|
96
|
+
/**
|
|
97
|
+
* do not override this
|
|
98
|
+
*/
|
|
99
|
+
runTask(options?: {
|
|
100
|
+
watch?: boolean;
|
|
101
|
+
} & StartAndWatchOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>>;
|
|
102
|
+
/**
|
|
103
|
+
* @deprecated use runTask instead
|
|
104
|
+
* Do not override this
|
|
105
|
+
*/
|
|
106
|
+
start(options?: StartOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>>;
|
|
107
|
+
/**
|
|
108
|
+
* @deprecated use runTask instead
|
|
109
|
+
* Do not override this
|
|
110
|
+
*/
|
|
111
|
+
startAndWatch(options?: StartAndWatchOptions<INITIAL_PARAMS>): Promise<BaseClientCompiler<INITIAL_PARAMS>>;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @param absolteFilesPathes for each watched file
|
|
115
|
+
* @returns
|
|
116
|
+
*/
|
|
117
|
+
syncAction(absolteFilesPathes?: string[], initialParams?: INITIAL_PARAMS): Promise<void>;
|
|
118
|
+
preAsyncAction(initialParams?: INITIAL_PARAMS): Promise<void>;
|
|
119
|
+
asyncAction(asyncEvents: ChangeOfFile, initialParams?: INITIAL_PARAMS): Promise<void>;
|
|
120
|
+
getFilesFolderPatternsToWatch(): string[];
|
|
121
|
+
private fixAndAssignOptions;
|
|
122
|
+
private fixTaskName;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export { BaseClientCompiler, IGNORE_BY_DEFAULT, incrementalWatcher };
|
|
126
|
+
export type { BaseClientCompilerOptions, ChangeOfFile, IncrementalWatcherAllEvents, IncrementalWatcherEvents, IncrementalWatcherInstance, IncrementalWatcherOptions, Listener, ListenerForAll, ListenerForSingleEvent, ParcelEvent, ParcelEventType, StartAndWatchOptions, StartOptions };
|
|
@@ -0,0 +1,24 @@
|
|
|
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.
|