@rxap/plugin-angular 19.3.1-dev.0 → 19.3.1-dev.1
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/CHANGELOG.md +7 -0
- package/GUIDES.md +50 -0
- package/package.json +10 -10
- package/src/generators/init-application/__snapshots__/generate-monolithic.spec.ts.snap +0 -4
- package/src/generators/init-application/files/shared/ngsw-config.json +1 -1
- package/src/generators/init-library/check-if-secondary-entrypoint-include-in-the-ts-config.js +1 -4
- package/src/generators/init-library/check-if-secondary-entrypoint-include-in-the-ts-config.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [19.3.1-dev.1](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@19.3.1-dev.0...@rxap/plugin-angular@19.3.1-dev.1) (2024-07-02)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- remove unused var dec ([fba82cb](https://gitlab.com/rxap/packages/commit/fba82cb77159b8471a9c8b35debeab39a5911513))
|
|
11
|
+
- use utility function ([4a867e9](https://gitlab.com/rxap/packages/commit/4a867e93b404fd3466bf054be6bb099490c6f6f6))
|
|
12
|
+
|
|
6
13
|
## [19.3.1-dev.0](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@19.3.0...@rxap/plugin-angular@19.3.1-dev.0) (2024-07-01)
|
|
7
14
|
|
|
8
15
|
### Bug Fixes
|
package/GUIDES.md
CHANGED
|
@@ -1,5 +1,55 @@
|
|
|
1
1
|
# Application
|
|
2
2
|
|
|
3
|
+
## Standalone
|
|
4
|
+
|
|
5
|
+
Use the nx generate to create a new application:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
NAME=app
|
|
9
|
+
nx g @nx/angular:application \
|
|
10
|
+
--name=user-interface-$NAME \
|
|
11
|
+
--addTailwind \
|
|
12
|
+
--directory user-interface/$NAME \
|
|
13
|
+
--projectNameAndRootFormat as-provided \
|
|
14
|
+
--style scss \
|
|
15
|
+
--tags angular
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Initialize the application:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
nx g @rxap/plugin-angular:init-application \
|
|
22
|
+
--project user-interface-$NAME \
|
|
23
|
+
--cleanup \
|
|
24
|
+
--generateMain \
|
|
25
|
+
--overwrite
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Feature Library
|
|
29
|
+
|
|
30
|
+
Use the nx generate to create a new feature library:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
NAME=feature
|
|
34
|
+
nx g @nx/angular:library \
|
|
35
|
+
--name=user-interface-feature-$NAME \
|
|
36
|
+
--addTailwind \
|
|
37
|
+
--buildable \
|
|
38
|
+
--directory user-interface/feature/$NAME \
|
|
39
|
+
--projectNameAndRootFormat as-provided \
|
|
40
|
+
--style scss \
|
|
41
|
+
--tags angular
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Initialize the feature library:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
nx g @rxap/plugin-angular:init-feature-library \
|
|
48
|
+
--project user-interface-feature-$NAME \
|
|
49
|
+
--overwrite \
|
|
50
|
+
--routes
|
|
51
|
+
```
|
|
52
|
+
|
|
3
53
|
## Module Federation
|
|
4
54
|
|
|
5
55
|
### Host
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "19.3.1-dev.
|
|
2
|
+
"version": "19.3.1-dev.1",
|
|
3
3
|
"name": "@rxap/plugin-angular",
|
|
4
4
|
"license": "GPL-3.0-or-later",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@nx/angular": "19.3.2",
|
|
7
7
|
"@nx/devkit": "19.3.2",
|
|
8
|
-
"@rxap/plugin-application": "^19.1.1-dev.
|
|
9
|
-
"@rxap/plugin-library": "^19.3.2-dev.
|
|
10
|
-
"@rxap/plugin-localazy": "^19.0.5-dev.
|
|
11
|
-
"@rxap/plugin-utilities": "^19.0.6-dev.
|
|
12
|
-
"@rxap/ts-morph": "^1.4.3-dev.
|
|
13
|
-
"@rxap/utilities": "^16.
|
|
14
|
-
"@rxap/workspace-ts-morph": "^19.1.3-dev.
|
|
15
|
-
"@rxap/workspace-utilities": "^19.
|
|
8
|
+
"@rxap/plugin-application": "^19.1.1-dev.1",
|
|
9
|
+
"@rxap/plugin-library": "^19.3.2-dev.1",
|
|
10
|
+
"@rxap/plugin-localazy": "^19.0.5-dev.1",
|
|
11
|
+
"@rxap/plugin-utilities": "^19.0.6-dev.1",
|
|
12
|
+
"@rxap/ts-morph": "^1.4.3-dev.1",
|
|
13
|
+
"@rxap/utilities": "^16.3.0-dev.0",
|
|
14
|
+
"@rxap/workspace-ts-morph": "^19.1.3-dev.1",
|
|
15
|
+
"@rxap/workspace-utilities": "^19.4.0-dev.0",
|
|
16
16
|
"colors": "1.4.0",
|
|
17
17
|
"semver": "7.5.3",
|
|
18
18
|
"tailwindcss": "^3.4.4",
|
|
@@ -55,6 +55,6 @@
|
|
|
55
55
|
},
|
|
56
56
|
"schematics": "./generators.json",
|
|
57
57
|
"type": "commonjs",
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "29fd8b26ef7da2c3f68df8a82994d5dbadae5b3f",
|
|
59
59
|
"main": "./src/index.js"
|
|
60
60
|
}
|
|
@@ -60,10 +60,6 @@ exports[`generateMonolithic() should generate a monolithic application configura
|
|
|
60
60
|
"import { NavigationWithInserts, RXAP_NAVIGATION_CONFIG } from '@rxap/layout';
|
|
61
61
|
|
|
62
62
|
export const APP_NAVIGATION: () => NavigationWithInserts = () => [];
|
|
63
|
-
export const APP_NAVIGATION_PROVIDER = {
|
|
64
|
-
provide: RXAP_NAVIGATION_CONFIG,
|
|
65
|
-
useValue: APP_NAVIGATION
|
|
66
|
-
};
|
|
67
63
|
"
|
|
68
64
|
`;
|
|
69
65
|
|
package/src/generators/init-library/check-if-secondary-entrypoint-include-in-the-ts-config.js
CHANGED
|
@@ -11,10 +11,7 @@ function checkIfSecondaryEntrypointIncludeInTheTsConfig(tree, project) {
|
|
|
11
11
|
const libTsConfig = tree.exists(libTsConfigPath) ? JSON.parse(tree.read(libTsConfigPath).toString('utf-8')) : null;
|
|
12
12
|
const specTsConfig = tree.exists(specTsConfigPath) ? JSON.parse(tree.read(specTsConfigPath).toString('utf-8')) :
|
|
13
13
|
null;
|
|
14
|
-
for (const
|
|
15
|
-
if (!path.endsWith('ng-package.json')) {
|
|
16
|
-
continue;
|
|
17
|
-
}
|
|
14
|
+
for (const path of (0, workspace_utilities_1.ForEachSecondaryEntryPoint)(tree, projectRoot)) {
|
|
18
15
|
const folder = (0, path_1.dirname)(path);
|
|
19
16
|
const entryPoint = (0, path_1.relative)(projectRoot, folder);
|
|
20
17
|
if (entryPoint) {
|
package/src/generators/init-library/check-if-secondary-entrypoint-include-in-the-ts-config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-if-secondary-entrypoint-include-in-the-ts-config.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/generators/init-library/check-if-secondary-entrypoint-include-in-the-ts-config.ts"],"names":[],"mappings":";;;AAIA,mEAGmC;AACnC,+BAIc;AAEd,SAAgB,8CAA8C,CAAC,IAAU,EAAE,OAA6B;;IACtG,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IACjC,MAAM,eAAe,GAAG,IAAA,WAAI,EAAC,WAAW,EAAE,mBAAmB,CAAC,CAAC;IAC/D,MAAM,gBAAgB,GAAG,IAAA,WAAI,EAAC,WAAW,EAAE,oBAAoB,CAAC,CAAC;IACjE,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACpH,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAC5F,IAAI,CAAC;IAC1B,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"check-if-secondary-entrypoint-include-in-the-ts-config.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/generators/init-library/check-if-secondary-entrypoint-include-in-the-ts-config.ts"],"names":[],"mappings":";;;AAIA,mEAGmC;AACnC,+BAIc;AAEd,SAAgB,8CAA8C,CAAC,IAAU,EAAE,OAA6B;;IACtG,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IACjC,MAAM,eAAe,GAAG,IAAA,WAAI,EAAC,WAAW,EAAE,mBAAmB,CAAC,CAAC;IAC/D,MAAM,gBAAgB,GAAG,IAAA,WAAI,EAAC,WAAW,EAAE,oBAAoB,CAAC,CAAC;IACjE,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACpH,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAC5F,IAAI,CAAC;IAC1B,KAAK,MAAM,IAAI,IAAI,IAAA,gDAA0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