incremental-compiler 21.0.33 → 21.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -50
- package/browser/package.json +1 -20
- package/browser-prod/package.json +2 -20
- package/lib/package.json +1 -1
- package/lib-prod/package.json +1 -1
- package/package.json +1 -1
- package/websql/package.json +1 -20
- package/websql-prod/package.json +2 -20
- package/assets/shared/shared_folder_info.txt +0 -7
- package/browser/README.md +0 -24
- package/browser/fesm2022/incremental-compiler-browser.mjs +0 -327
- package/browser/fesm2022/incremental-compiler-browser.mjs.map +0 -1
- package/browser/types/incremental-compiler-browser.d.ts +0 -126
- package/browser-prod/README.md +0 -24
- package/browser-prod/fesm2022/incremental-compiler-browser.mjs +0 -327
- package/browser-prod/fesm2022/incremental-compiler-browser.mjs.map +0 -1
- package/browser-prod/types/incremental-compiler-browser.d.ts +0 -126
- package/browser-prod.re-export.json +0 -1
- package/browser-prod.split-namespaces.json +0 -4
- package/index.d.ts +0 -1
- package/index.js +0 -18
- package/index.js.map +0 -1
- package/lib/base-client-compiler.d.ts +0 -53
- package/lib/base-client-compiler.js +0 -263
- package/lib/base-client-compiler.js.map +0 -1
- package/lib/build-info._auto-generated_.d.ts +0 -24
- package/lib/build-info._auto-generated_.js +0 -30
- package/lib/build-info._auto-generated_.js.map +0 -1
- package/lib/compiler-manager.d.ts +0 -14
- package/lib/compiler-manager.js +0 -164
- package/lib/compiler-manager.js.map +0 -1
- package/lib/constants.d.ts +0 -1
- package/lib/constants.js +0 -10
- package/lib/constants.js.map +0 -1
- package/lib/env/env.angular-node-app.d.ts +0 -64
- package/lib/env/env.angular-node-app.js +0 -71
- package/lib/env/env.angular-node-app.js.map +0 -1
- package/lib/env/env.docs-webapp.d.ts +0 -64
- package/lib/env/env.docs-webapp.js +0 -71
- package/lib/env/env.docs-webapp.js.map +0 -1
- package/lib/env/env.electron-app.d.ts +0 -64
- package/lib/env/env.electron-app.js +0 -71
- package/lib/env/env.electron-app.js.map +0 -1
- package/lib/env/env.mobile-app.d.ts +0 -64
- package/lib/env/env.mobile-app.js +0 -71
- package/lib/env/env.mobile-app.js.map +0 -1
- package/lib/env/env.npm-lib-and-cli-tool.d.ts +0 -64
- package/lib/env/env.npm-lib-and-cli-tool.js +0 -71
- package/lib/env/env.npm-lib-and-cli-tool.js.map +0 -1
- package/lib/env/env.vscode-plugin.d.ts +0 -64
- package/lib/env/env.vscode-plugin.js +0 -71
- package/lib/env/env.vscode-plugin.js.map +0 -1
- package/lib/env/index.d.ts +0 -6
- package/lib/env/index.js +0 -23
- package/lib/env/index.js.map +0 -1
- package/lib/helpers.d.ts +0 -12
- package/lib/helpers.js +0 -108
- package/lib/helpers.js.map +0 -1
- package/lib/incremental-watcher.d.ts +0 -3
- package/lib/incremental-watcher.js +0 -30
- package/lib/incremental-watcher.js.map +0 -1
- package/lib/index._auto-generated_.d.ts +0 -0
- package/lib/index._auto-generated_.js +0 -6
- package/lib/index._auto-generated_.js.map +0 -1
- package/lib/index.d.ts +0 -5
- package/lib/index.js +0 -22
- package/lib/index.js.map +0 -1
- package/lib/migrations/index.d.ts +0 -1
- package/lib/migrations/index.js +0 -19
- package/lib/migrations/index.js.map +0 -1
- package/lib/migrations/migrations_index._auto-generated_.d.ts +0 -0
- package/lib/migrations/migrations_index._auto-generated_.js +0 -4
- package/lib/migrations/migrations_index._auto-generated_.js.map +0 -1
- package/lib/models.d.ts +0 -67
- package/lib/models.js +0 -3
- package/lib/models.js.map +0 -1
- package/lib/parcel-watcher-adapter.d.ts +0 -30
- package/lib/parcel-watcher-adapter.js +0 -300
- package/lib/parcel-watcher-adapter.js.map +0 -1
- package/lib-prod/base-client-compiler.d.ts +0 -53
- package/lib-prod/base-client-compiler.js +0 -263
- package/lib-prod/base-client-compiler.js.map +0 -1
- package/lib-prod/build-info._auto-generated_.d.ts +0 -24
- package/lib-prod/build-info._auto-generated_.js +0 -30
- package/lib-prod/build-info._auto-generated_.js.map +0 -1
- package/lib-prod/compiler-manager.d.ts +0 -14
- package/lib-prod/compiler-manager.js +0 -164
- package/lib-prod/compiler-manager.js.map +0 -1
- package/lib-prod/constants.d.ts +0 -1
- package/lib-prod/constants.js +0 -10
- package/lib-prod/constants.js.map +0 -1
- package/lib-prod/env/env.angular-node-app.d.ts +0 -64
- package/lib-prod/env/env.angular-node-app.js +0 -71
- package/lib-prod/env/env.angular-node-app.js.map +0 -1
- package/lib-prod/env/env.docs-webapp.d.ts +0 -64
- package/lib-prod/env/env.docs-webapp.js +0 -71
- package/lib-prod/env/env.docs-webapp.js.map +0 -1
- package/lib-prod/env/env.electron-app.d.ts +0 -64
- package/lib-prod/env/env.electron-app.js +0 -71
- package/lib-prod/env/env.electron-app.js.map +0 -1
- package/lib-prod/env/env.mobile-app.d.ts +0 -64
- package/lib-prod/env/env.mobile-app.js +0 -71
- package/lib-prod/env/env.mobile-app.js.map +0 -1
- package/lib-prod/env/env.npm-lib-and-cli-tool.d.ts +0 -64
- package/lib-prod/env/env.npm-lib-and-cli-tool.js +0 -71
- package/lib-prod/env/env.npm-lib-and-cli-tool.js.map +0 -1
- package/lib-prod/env/env.vscode-plugin.d.ts +0 -64
- package/lib-prod/env/env.vscode-plugin.js +0 -71
- package/lib-prod/env/env.vscode-plugin.js.map +0 -1
- package/lib-prod/env/index.d.ts +0 -6
- package/lib-prod/env/index.js +0 -23
- package/lib-prod/env/index.js.map +0 -1
- package/lib-prod/helpers.d.ts +0 -12
- package/lib-prod/helpers.js +0 -108
- package/lib-prod/helpers.js.map +0 -1
- package/lib-prod/incremental-watcher.d.ts +0 -3
- package/lib-prod/incremental-watcher.js +0 -30
- package/lib-prod/incremental-watcher.js.map +0 -1
- package/lib-prod/index._auto-generated_.d.ts +0 -0
- package/lib-prod/index._auto-generated_.js +0 -6
- package/lib-prod/index._auto-generated_.js.map +0 -1
- package/lib-prod/index.d.ts +0 -5
- package/lib-prod/index.js +0 -22
- package/lib-prod/index.js.map +0 -1
- package/lib-prod/migrations/index.d.ts +0 -1
- package/lib-prod/migrations/index.js +0 -19
- package/lib-prod/migrations/index.js.map +0 -1
- package/lib-prod/migrations/migrations_index._auto-generated_.d.ts +0 -0
- package/lib-prod/migrations/migrations_index._auto-generated_.js +0 -4
- package/lib-prod/migrations/migrations_index._auto-generated_.js.map +0 -1
- package/lib-prod/models.d.ts +0 -67
- package/lib-prod/models.js +0 -3
- package/lib-prod/models.js.map +0 -1
- package/lib-prod/parcel-watcher-adapter.d.ts +0 -30
- package/lib-prod/parcel-watcher-adapter.js +0 -300
- package/lib-prod/parcel-watcher-adapter.js.map +0 -1
- package/lib-prod.re-export.json +0 -1
- package/lib-prod.split-namespaces.json +0 -4
- package/scss/global.scss +0 -44
- package/scss/index.scss +0 -2
- package/scss/lib/index.scss +0 -1
- package/scss/vars.scss +0 -7
- package/websql/README.md +0 -24
- package/websql/fesm2022/incremental-compiler-websql.mjs +0 -327
- package/websql/fesm2022/incremental-compiler-websql.mjs.map +0 -1
- package/websql/types/incremental-compiler-websql.d.ts +0 -126
- package/websql-prod/README.md +0 -24
- package/websql-prod/fesm2022/incremental-compiler-websql.mjs +0 -327
- package/websql-prod/fesm2022/incremental-compiler-websql.mjs.map +0 -1
- package/websql-prod/types/incremental-compiler-websql.d.ts +0 -126
- package/websql-prod.re-export.json +0 -1
- package/websql-prod.split-namespaces.json +0 -4
package/README.md
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
# INCREMENTAL COMPILER
|
|
2
|
-
|
|
3
|
-
A library for any kind of incremental compilers and file watchers, based on @parcel/watcher and chokidar.
|
|
4
|
-
|
|
5
|
-
## API
|
|
6
|
-
|
|
7
|
-
1. Incremental Compiler class **"IncCompiler"**
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
```ts
|
|
11
|
-
import { BaseClientCompiler, BaseClientCompilerOptions } from 'incremental-compiler/src';
|
|
12
|
-
|
|
13
|
-
export abstract class BaseCompilerForProject<
|
|
14
|
-
ADDITIONAL_DATA = any,
|
|
15
|
-
PROJECT extends BaseProject = BaseProject,
|
|
16
|
-
> extends BaseClientCompiler<ADDITIONAL_DATA> {
|
|
17
|
-
|
|
18
|
-
constructor(
|
|
19
|
-
public project: PROJECT,
|
|
20
|
-
options: BaseClientCompilerOptions,
|
|
21
|
-
) {
|
|
22
|
-
super();
|
|
23
|
-
this.initOptions(options);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
```
|
|
27
|
-
2. Incremental watcher object **"incrementalWatcher"**
|
|
28
|
-
|
|
29
|
-
```ts
|
|
30
|
-
import { incrementalWatcher } from 'incremental-compiler/src';
|
|
31
|
-
const watcher = await incrementalWatcher(
|
|
32
|
-
[
|
|
33
|
-
this.project.pathFor(`environments/**/*.ts`),
|
|
34
|
-
this.project.pathFor(`env.ts`),
|
|
35
|
-
],
|
|
36
|
-
{
|
|
37
|
-
name: 'Environment Config Watcher',
|
|
38
|
-
ignoreInitial: true,
|
|
39
|
-
followSymlinks: false,
|
|
40
|
-
},
|
|
41
|
-
);
|
|
42
|
-
watcher.on('all', async (event, filePath) => {
|
|
43
|
-
onChange();
|
|
44
|
-
});
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
## Folders ALWAYS ignored
|
|
48
|
-
|
|
49
|
-
- node_modules/
|
|
50
|
-
- .git/
|
|
1
|
+
# INCREMENTAL COMPILER
|
|
2
|
+
|
|
3
|
+
A library for any kind of incremental compilers and file watchers, based on @parcel/watcher and chokidar.
|
|
4
|
+
|
|
5
|
+
## API
|
|
6
|
+
|
|
7
|
+
1. Incremental Compiler class **"IncCompiler"**
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
```ts
|
|
11
|
+
import { BaseClientCompiler, BaseClientCompilerOptions } from 'incremental-compiler/src';
|
|
12
|
+
|
|
13
|
+
export abstract class BaseCompilerForProject<
|
|
14
|
+
ADDITIONAL_DATA = any,
|
|
15
|
+
PROJECT extends BaseProject = BaseProject,
|
|
16
|
+
> extends BaseClientCompiler<ADDITIONAL_DATA> {
|
|
17
|
+
|
|
18
|
+
constructor(
|
|
19
|
+
public project: PROJECT,
|
|
20
|
+
options: BaseClientCompilerOptions,
|
|
21
|
+
) {
|
|
22
|
+
super();
|
|
23
|
+
this.initOptions(options);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
2. Incremental watcher object **"incrementalWatcher"**
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
import { incrementalWatcher } from 'incremental-compiler/src';
|
|
31
|
+
const watcher = await incrementalWatcher(
|
|
32
|
+
[
|
|
33
|
+
this.project.pathFor(`environments/**/*.ts`),
|
|
34
|
+
this.project.pathFor(`env.ts`),
|
|
35
|
+
],
|
|
36
|
+
{
|
|
37
|
+
name: 'Environment Config Watcher',
|
|
38
|
+
ignoreInitial: true,
|
|
39
|
+
followSymlinks: false,
|
|
40
|
+
},
|
|
41
|
+
);
|
|
42
|
+
watcher.on('all', async (event, filePath) => {
|
|
43
|
+
onChange();
|
|
44
|
+
});
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Folders ALWAYS ignored
|
|
48
|
+
|
|
49
|
+
- node_modules/
|
|
50
|
+
- .git/
|
package/browser/package.json
CHANGED
|
@@ -1,23 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "incremental-compiler/browser",
|
|
3
|
-
"version": "21.0.33",
|
|
4
|
-
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^21.0.0",
|
|
6
|
-
"@angular/core": "^21.0.0"
|
|
7
|
-
},
|
|
8
|
-
"dependencies": {
|
|
9
|
-
"tslib": "^2.3.0"
|
|
10
|
-
},
|
|
11
2
|
"sideEffects": false,
|
|
12
|
-
"
|
|
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
|
-
}
|
|
3
|
+
"version": "21.0.35"
|
|
23
4
|
}
|
|
@@ -1,23 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "incremental-compiler/browser-prod",
|
|
3
|
-
"version": "21.0.33",
|
|
4
|
-
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^21.0.0",
|
|
6
|
-
"@angular/core": "^21.0.0"
|
|
7
|
-
},
|
|
8
|
-
"dependencies": {
|
|
9
|
-
"tslib": "^2.3.0"
|
|
10
|
-
},
|
|
11
2
|
"sideEffects": false,
|
|
12
|
-
"
|
|
13
|
-
"
|
|
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
|
-
}
|
|
3
|
+
"version": "21.0.35",
|
|
4
|
+
"name": "incremental-compiler/browser-prod"
|
|
23
5
|
}
|
package/lib/package.json
CHANGED
package/lib-prod/package.json
CHANGED
package/package.json
CHANGED
package/websql/package.json
CHANGED
|
@@ -1,23 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "incremental-compiler/websql",
|
|
3
|
-
"version": "21.0.33",
|
|
4
|
-
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^21.0.0",
|
|
6
|
-
"@angular/core": "^21.0.0"
|
|
7
|
-
},
|
|
8
|
-
"dependencies": {
|
|
9
|
-
"tslib": "^2.3.0"
|
|
10
|
-
},
|
|
11
2
|
"sideEffects": false,
|
|
12
|
-
"
|
|
13
|
-
"typings": "types/incremental-compiler-websql.d.ts",
|
|
14
|
-
"exports": {
|
|
15
|
-
"./package.json": {
|
|
16
|
-
"default": "./package.json"
|
|
17
|
-
},
|
|
18
|
-
".": {
|
|
19
|
-
"types": "./types/incremental-compiler-websql.d.ts",
|
|
20
|
-
"default": "./fesm2022/incremental-compiler-websql.mjs"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
3
|
+
"version": "21.0.35"
|
|
23
4
|
}
|
package/websql-prod/package.json
CHANGED
|
@@ -1,23 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "incremental-compiler/websql-prod",
|
|
3
|
-
"version": "21.0.33",
|
|
4
|
-
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^21.0.0",
|
|
6
|
-
"@angular/core": "^21.0.0"
|
|
7
|
-
},
|
|
8
|
-
"dependencies": {
|
|
9
|
-
"tslib": "^2.3.0"
|
|
10
|
-
},
|
|
11
2
|
"sideEffects": false,
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"exports": {
|
|
15
|
-
"./package.json": {
|
|
16
|
-
"default": "./package.json"
|
|
17
|
-
},
|
|
18
|
-
".": {
|
|
19
|
-
"types": "./types/incremental-compiler-websql.d.ts",
|
|
20
|
-
"default": "./fesm2022/incremental-compiler-websql.mjs"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
3
|
+
"version": "21.0.35",
|
|
4
|
+
"name": "incremental-compiler/websql-prod"
|
|
23
5
|
}
|
package/browser/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,327 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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":["\n\nexport const IGNORE_BY_DEFAULT = [\n '**/node_modules/**/*.*',\n '**/node_modules',\n '**/.git/**/*.*',\n '**/.git',\n];\n\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}\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}\n","export * from './constants';\nexport * from './models';\nexport * from './incremental-watcher';\nexport * from './base-client-compiler';\n/* */ \n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAEO,MAAM,iBAAiB,GAAG;IAC/B,wBAAwB;IACxB,iBAAiB;IACjB,gBAAgB;IAChB,SAAS;;;ACCX;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;;;;"}
|