@rxap/plugin-angular 19.1.0-dev.1 → 19.1.0-dev.11
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 +58 -0
- package/GUIDES.md +29 -0
- package/package.json +16 -69
- package/src/generators/fix-schematic/generator.js +1 -1
- package/src/generators/fix-schematic/generator.js.map +1 -1
- package/src/generators/init/coerce-nx-json.d.ts +3 -0
- package/src/generators/init/coerce-nx-json.js +78 -0
- package/src/generators/init/coerce-nx-json.js.map +1 -0
- package/src/generators/init/generator.js +8 -7
- package/src/generators/init/generator.js.map +1 -1
- package/src/generators/init/schema.d.ts +1 -0
- package/src/generators/init/schema.json +4 -0
- package/src/generators/init-application/files/styles/_theme.scss +0 -17
- package/src/generators/init-application/generate-monolithic.js +2 -1
- package/src/generators/init-application/generate-monolithic.js.map +1 -1
- package/src/generators/init-application/generator.js +21 -27
- package/src/generators/init-application/generator.js.map +1 -1
- package/src/generators/init-application/schema.json +36 -11
- package/src/generators/init-component/generator.d.ts +1 -0
- package/src/generators/init-component/generator.js +4 -0
- package/src/generators/init-component/generator.js.map +1 -1
- package/src/generators/init-feature-library/generator.js +3 -0
- package/src/generators/init-feature-library/generator.js.map +1 -1
- package/src/generators/init-feature-library/init-project.js +1 -0
- package/src/generators/init-feature-library/init-project.js.map +1 -1
- package/src/generators/init-library/check-if-secondary-entrypoint-include-in-the-ts-config.js +2 -2
- package/src/generators/init-library/check-if-secondary-entrypoint-include-in-the-ts-config.js.map +1 -1
- package/src/generators/init-library/cleanup.js +1 -1
- package/src/generators/init-library/cleanup.js.map +1 -1
- package/src/generators/init-library/coerce-tailwind-theme-scss.js +1 -3
- package/src/generators/init-library/coerce-tailwind-theme-scss.js.map +1 -1
- package/src/generators/init-library/extend-angular-specific-eslint.js +1 -1
- package/src/generators/init-library/extend-angular-specific-eslint.js.map +1 -1
- package/src/generators/init-library/init-project.js +2 -3
- package/src/generators/init-library/init-project.js.map +1 -1
- package/src/generators/init-library/schema.d.ts +1 -0
- package/src/generators/init-library/update-package-json.d.ts +1 -2
- package/src/generators/init-library/update-package-json.js +9 -15
- package/src/generators/init-library/update-package-json.js.map +1 -1
- package/src/generators/init-library/update-project-targets.d.ts +2 -1
- package/src/generators/init-library/update-project-targets.js +12 -2
- package/src/generators/init-library/update-project-targets.js.map +1 -1
- package/src/lib/coerce-cypress-component-testing.js +2 -2
- package/src/lib/coerce-cypress-component-testing.js.map +1 -1
- package/src/lib/coerce-test-setup.js +2 -4
- package/src/lib/coerce-test-setup.js.map +1 -1
- package/src/generators/init-library/get-angular-major-version.d.ts +0 -2
- package/src/generators/init-library/get-angular-major-version.js +0 -20
- package/src/generators/init-library/get-angular-major-version.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,64 @@
|
|
|
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.1.0-dev.11](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@19.1.0-dev.10...@rxap/plugin-angular@19.1.0-dev.11) (2024-06-18)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- add defaults ([2db7304](https://gitlab.com/rxap/packages/commit/2db73049adf2167a5fb61f2c63fbdbe1cb0f5480))
|
|
11
|
+
|
|
12
|
+
# [19.1.0-dev.10](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@19.1.0-dev.9...@rxap/plugin-angular@19.1.0-dev.10) (2024-06-18)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @rxap/plugin-angular
|
|
15
|
+
|
|
16
|
+
# [19.1.0-dev.9](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@19.1.0-dev.8...@rxap/plugin-angular@19.1.0-dev.9) (2024-06-18)
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
- ensure only valid options are stored ([c754404](https://gitlab.com/rxap/packages/commit/c75440438fe03e550dad208b46b378aee888a995))
|
|
21
|
+
|
|
22
|
+
# [19.1.0-dev.8](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@19.1.0-dev.7...@rxap/plugin-angular@19.1.0-dev.8) (2024-06-17)
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
- add nx packages to workspace ([18c54bb](https://gitlab.com/rxap/packages/commit/18c54bbf7fe4cbe994fafa35e9eb5356b74c61e2))
|
|
27
|
+
|
|
28
|
+
# [19.1.0-dev.7](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@19.1.0-dev.6...@rxap/plugin-angular@19.1.0-dev.7) (2024-06-17)
|
|
29
|
+
|
|
30
|
+
### Bug Fixes
|
|
31
|
+
|
|
32
|
+
- remove include dualization ([b69a3e5](https://gitlab.com/rxap/packages/commit/b69a3e537d7fcd979530270c850be08c2b85d1b5))
|
|
33
|
+
- update to latest sentry version ([9caf6ce](https://gitlab.com/rxap/packages/commit/9caf6ce42f72b053d1ea779a457fe73dd46dea8b))
|
|
34
|
+
|
|
35
|
+
# [19.1.0-dev.6](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@19.1.0-dev.5...@rxap/plugin-angular@19.1.0-dev.6) (2024-06-17)
|
|
36
|
+
|
|
37
|
+
### Bug Fixes
|
|
38
|
+
|
|
39
|
+
- add defaults ([fe2eb67](https://gitlab.com/rxap/packages/commit/fe2eb6704744ae8f538e22a3de3633d9d0f18db5))
|
|
40
|
+
|
|
41
|
+
# [19.1.0-dev.5](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@19.1.0-dev.4...@rxap/plugin-angular@19.1.0-dev.5) (2024-06-17)
|
|
42
|
+
|
|
43
|
+
**Note:** Version bump only for package @rxap/plugin-angular
|
|
44
|
+
|
|
45
|
+
# [19.1.0-dev.4](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@19.1.0-dev.3...@rxap/plugin-angular@19.1.0-dev.4) (2024-06-17)
|
|
46
|
+
|
|
47
|
+
### Bug Fixes
|
|
48
|
+
|
|
49
|
+
- ensure the package version is only updated if required ([b1a9cd3](https://gitlab.com/rxap/packages/commit/b1a9cd33ba603401361dacc100ef6ff14317a6f1))
|
|
50
|
+
|
|
51
|
+
# [19.1.0-dev.3](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@19.1.0-dev.2...@rxap/plugin-angular@19.1.0-dev.3) (2024-06-17)
|
|
52
|
+
|
|
53
|
+
### Features
|
|
54
|
+
|
|
55
|
+
- add get major version functions ([dfb514a](https://gitlab.com/rxap/packages/commit/dfb514ae53c9b603cfd57b425f6d32d9e8f12ead))
|
|
56
|
+
|
|
57
|
+
# [19.1.0-dev.2](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@19.1.0-dev.1...@rxap/plugin-angular@19.1.0-dev.2) (2024-06-17)
|
|
58
|
+
|
|
59
|
+
### Bug Fixes
|
|
60
|
+
|
|
61
|
+
- minor issues ([52147cf](https://gitlab.com/rxap/packages/commit/52147cf02859638b2c06d74ec3240121a7ffd4a7))
|
|
62
|
+
- use coerce file function ([822c33c](https://gitlab.com/rxap/packages/commit/822c33c0021276844114e859d53c79cad6feb51a))
|
|
63
|
+
|
|
6
64
|
# [19.1.0-dev.1](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@19.1.0-dev.0...@rxap/plugin-angular@19.1.0-dev.1) (2024-06-05)
|
|
7
65
|
|
|
8
66
|
**Note:** Version bump only for package @rxap/plugin-angular
|
package/GUIDES.md
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Application
|
|
2
|
+
|
|
3
|
+
## Module Federation
|
|
4
|
+
|
|
5
|
+
### Host
|
|
6
|
+
|
|
7
|
+
Use the nx generate to create a new module federation host application:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
NAME=host
|
|
11
|
+
nx g @nx/angular:host \
|
|
12
|
+
--name=user-interface-$NAME \
|
|
13
|
+
--addTailwind \
|
|
14
|
+
--directory user-interface/$NAME \
|
|
15
|
+
--dynamic \
|
|
16
|
+
--projectNameAndRootFormat as-provided \
|
|
17
|
+
--style scss \
|
|
18
|
+
--tags angular
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Initialize the module federation host application:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
nx g @rxap/plugin-angular:init-application \
|
|
25
|
+
--project user-interface-$NAME \
|
|
26
|
+
--moduleFederation host \
|
|
27
|
+
--cleanup \
|
|
28
|
+
--generateMain
|
|
29
|
+
```
|
package/package.json
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "19.1.0-dev.
|
|
2
|
+
"version": "19.1.0-dev.11",
|
|
3
3
|
"name": "@rxap/plugin-angular",
|
|
4
4
|
"license": "GPL-3.0-or-later",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"
|
|
6
|
+
"@nx/angular": "19.1.1",
|
|
7
|
+
"@nx/devkit": "19.1.1",
|
|
8
|
+
"@rxap/plugin-application": "^19.0.3-dev.4",
|
|
9
|
+
"@rxap/plugin-library": "^19.2.0-dev.9",
|
|
10
|
+
"@rxap/plugin-localazy": "^19.0.2-dev.3",
|
|
11
|
+
"@rxap/plugin-utilities": "^19.0.3-dev.4",
|
|
12
|
+
"@rxap/ts-morph": "^1.4.0-dev.3",
|
|
13
|
+
"@rxap/utilities": "^16.2.3-dev.0",
|
|
14
|
+
"@rxap/workspace-ts-morph": "^19.1.0-dev.4",
|
|
15
|
+
"@rxap/workspace-utilities": "^19.2.0-dev.8",
|
|
16
|
+
"colors": "1.4.0",
|
|
17
|
+
"nx": "19.1.1",
|
|
18
|
+
"semver": "7.5.3",
|
|
19
|
+
"ts-morph": "18.0.0",
|
|
7
20
|
"tslib": "2.6.2"
|
|
8
21
|
},
|
|
9
|
-
"peerDependencies": {
|
|
10
|
-
"@nx/angular": "^19.1.1",
|
|
11
|
-
"@nx/devkit": "^19.1.1",
|
|
12
|
-
"@rxap/plugin-application": "^19.0.2",
|
|
13
|
-
"@rxap/plugin-library": "^19.2.0-dev.1",
|
|
14
|
-
"@rxap/plugin-localazy": "^19.0.1",
|
|
15
|
-
"@rxap/plugin-utilities": "^19.0.3-dev.0",
|
|
16
|
-
"@rxap/ts-morph": "^1.3.1-dev.2",
|
|
17
|
-
"@rxap/utilities": "^16.2.2",
|
|
18
|
-
"@rxap/workspace-ts-morph": "^19.1.0-dev.0",
|
|
19
|
-
"@rxap/workspace-utilities": "^19.2.0-dev.2",
|
|
20
|
-
"nx": "^19.1.1",
|
|
21
|
-
"ts-morph": "^18.0.0"
|
|
22
|
-
},
|
|
23
22
|
"author": {
|
|
24
23
|
"name": "Merzough Münker",
|
|
25
24
|
"email": "mmuenker@digitaix.com"
|
|
@@ -44,58 +43,6 @@
|
|
|
44
43
|
"requirements": {},
|
|
45
44
|
"migrations": "./migrations.json"
|
|
46
45
|
},
|
|
47
|
-
"nx-migrations": {
|
|
48
|
-
"packageGroup": [
|
|
49
|
-
{
|
|
50
|
-
"package": "@nx/angular",
|
|
51
|
-
"version": "19.1.1"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"package": "@nx/devkit",
|
|
55
|
-
"version": "19.1.1"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"package": "@rxap/generator-ts-morph",
|
|
59
|
-
"version": "1.0.7"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"package": "@rxap/node-utilities",
|
|
63
|
-
"version": "1.2.2"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"package": "@rxap/plugin-application",
|
|
67
|
-
"version": "19.0.2"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"package": "@rxap/plugin-library",
|
|
71
|
-
"version": "19.2.0-dev.1"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"package": "@rxap/plugin-localazy",
|
|
75
|
-
"version": "19.0.1"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"package": "@rxap/plugin-utilities",
|
|
79
|
-
"version": "19.0.3-dev.0"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"package": "@rxap/ts-morph",
|
|
83
|
-
"version": "1.3.1-dev.2"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"package": "@rxap/utilities",
|
|
87
|
-
"version": "16.2.2"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"package": "@rxap/workspace-ts-morph",
|
|
91
|
-
"version": "19.1.0-dev.0"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"package": "@rxap/workspace-utilities",
|
|
95
|
-
"version": "19.2.0-dev.2"
|
|
96
|
-
}
|
|
97
|
-
]
|
|
98
|
-
},
|
|
99
46
|
"publishConfig": {
|
|
100
47
|
"access": "public",
|
|
101
48
|
"directory": "../../../dist/packages/plugin/angular"
|
|
@@ -107,6 +54,6 @@
|
|
|
107
54
|
},
|
|
108
55
|
"schematics": "./generators.json",
|
|
109
56
|
"type": "commonjs",
|
|
110
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "0c491cc15c273c468544d557160d39ce57f927f3",
|
|
111
58
|
"main": "./src/index.js"
|
|
112
59
|
}
|
|
@@ -65,7 +65,7 @@ function fixSchematicGenerator(tree, options) {
|
|
|
65
65
|
(_b = schematic['description']) !== null && _b !== void 0 ? _b : (schematic['description'] = `The ${name} schematic`);
|
|
66
66
|
}
|
|
67
67
|
console.log('Update collection file');
|
|
68
|
-
|
|
68
|
+
(0, workspace_utilities_1.CoerceFile)(tree, collectionFile, JSON.stringify(collection, null, 2), true);
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
exports.fixSchematicGenerator = fixSchematicGenerator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/generators/fix-schematic/generator.ts"],"names":[],"mappings":";;;;AACA,
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/generators/fix-schematic/generator.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.coerceNxJson = void 0;
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const workspace_utilities_1 = require("@rxap/workspace-utilities");
|
|
6
|
+
function coerceNxJson(tree, options) {
|
|
7
|
+
var _a, _b, _c;
|
|
8
|
+
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
9
|
+
(0, workspace_utilities_1.CoerceNxJsonGenerators)(nxJson, '@nx/angular:application', {
|
|
10
|
+
'style': 'scss',
|
|
11
|
+
'linter': 'eslint',
|
|
12
|
+
'unitTestRunner': 'jest',
|
|
13
|
+
'e2eTestRunner': 'none',
|
|
14
|
+
'tags': 'angular,ngx',
|
|
15
|
+
'prefix': (_a = options.prefix) !== null && _a !== void 0 ? _a : 'rxap',
|
|
16
|
+
'standalone': true,
|
|
17
|
+
'addTailwind': true,
|
|
18
|
+
'routing': true,
|
|
19
|
+
'directory': `user-interface`,
|
|
20
|
+
});
|
|
21
|
+
(0, workspace_utilities_1.CoerceNxJsonGenerators)(nxJson, '@nx/angular:host', {
|
|
22
|
+
'style': 'scss',
|
|
23
|
+
'linter': 'eslint',
|
|
24
|
+
'unitTestRunner': 'jest',
|
|
25
|
+
'e2eTestRunner': 'none',
|
|
26
|
+
'tags': 'angular,ngx',
|
|
27
|
+
'prefix': (_b = options.prefix) !== null && _b !== void 0 ? _b : 'rxap',
|
|
28
|
+
'standalone': true,
|
|
29
|
+
'addTailwind': true,
|
|
30
|
+
name: 'shell',
|
|
31
|
+
'directory': `user-interface/shell`,
|
|
32
|
+
});
|
|
33
|
+
(0, workspace_utilities_1.CoerceNxJsonGenerators)(nxJson, '@nx/angular:remote', {
|
|
34
|
+
'style': 'scss',
|
|
35
|
+
'linter': 'eslint',
|
|
36
|
+
'unitTestRunner': 'jest',
|
|
37
|
+
'e2eTestRunner': 'none',
|
|
38
|
+
'tags': 'angular,ngx',
|
|
39
|
+
'prefix': (_c = options.prefix) !== null && _c !== void 0 ? _c : 'rxap',
|
|
40
|
+
'standalone': true,
|
|
41
|
+
'addTailwind': true,
|
|
42
|
+
host: 'shell',
|
|
43
|
+
'directory': `user-interface/feature`,
|
|
44
|
+
});
|
|
45
|
+
(0, workspace_utilities_1.CoerceNxJsonGenerators)(nxJson, '@nx/angular:component', {
|
|
46
|
+
'style': 'scss',
|
|
47
|
+
'standalone': true,
|
|
48
|
+
});
|
|
49
|
+
(0, workspace_utilities_1.CoerceNxJsonGenerators)(nxJson, '@nx/angular:library', {
|
|
50
|
+
'linter': 'eslint',
|
|
51
|
+
'unitTestRunner': 'jest',
|
|
52
|
+
'publishable': false,
|
|
53
|
+
'addTailwind': false,
|
|
54
|
+
'changeDetection': 'OnPush',
|
|
55
|
+
'standalone': true,
|
|
56
|
+
'style': 'scss',
|
|
57
|
+
'directory': 'angular',
|
|
58
|
+
'tags': 'angular,ngx',
|
|
59
|
+
'prefix': 'rxap',
|
|
60
|
+
'skipModule': true,
|
|
61
|
+
buildable: false,
|
|
62
|
+
});
|
|
63
|
+
(0, workspace_utilities_1.CoerceNxJsonGenerators)(nxJson, '@nx/angular:directive', {
|
|
64
|
+
'standalone': true,
|
|
65
|
+
'skipTests': true,
|
|
66
|
+
});
|
|
67
|
+
(0, workspace_utilities_1.CoerceNxJsonGenerators)(nxJson, '@nx/angular:library-secondary-entry-point', {
|
|
68
|
+
'skipModule': true,
|
|
69
|
+
});
|
|
70
|
+
(0, workspace_utilities_1.CoerceNxJsonCacheableOperation)(nxJson, 'ci-info');
|
|
71
|
+
(0, workspace_utilities_1.CoerceNxJsonCacheableOperation)(nxJson, 'localazy-upload');
|
|
72
|
+
(0, workspace_utilities_1.CoerceNxJsonCacheableOperation)(nxJson, 'extract-i18n');
|
|
73
|
+
(0, workspace_utilities_1.CoerceNxJsonCacheableOperation)(nxJson, 'localazy-download');
|
|
74
|
+
(0, workspace_utilities_1.CoerceNxJsonCacheableOperation)(nxJson, 'component-test');
|
|
75
|
+
(0, devkit_1.updateNxJson)(tree, nxJson);
|
|
76
|
+
}
|
|
77
|
+
exports.coerceNxJson = coerceNxJson;
|
|
78
|
+
//# sourceMappingURL=coerce-nx-json.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coerce-nx-json.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/generators/init/coerce-nx-json.ts"],"names":[],"mappings":";;;AAAA,uCAIoB;AACpB,mEAGmC;AAGnC,SAAgB,YAAY,CAAC,IAAU,EAAE,OAA4B;;IACnE,MAAM,MAAM,GAAG,IAAA,mBAAU,EAAC,IAAI,CAAE,CAAC;IAEjC,IAAA,4CAAsB,EAAC,MAAM,EAAE,yBAAyB,EAAE;QACxD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE,QAAQ;QAClB,gBAAgB,EAAE,MAAM;QACxB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,aAAa;QACrB,QAAQ,EAAE,MAAA,OAAO,CAAC,MAAM,mCAAI,MAAM;QAClC,YAAY,EAAE,IAAI;QAClB,aAAa,EAAE,IAAI;QACnB,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,gBAAgB;KAC9B,CAAC,CAAC;IACH,IAAA,4CAAsB,EAAC,MAAM,EAAE,kBAAkB,EAAE;QACjD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE,QAAQ;QAClB,gBAAgB,EAAE,MAAM;QACxB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,aAAa;QACrB,QAAQ,EAAE,MAAA,OAAO,CAAC,MAAM,mCAAI,MAAM;QAClC,YAAY,EAAE,IAAI;QAClB,aAAa,EAAE,IAAI;QACnB,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,sBAAsB;KACpC,CAAC,CAAC;IACH,IAAA,4CAAsB,EAAC,MAAM,EAAE,oBAAoB,EAAE;QACnD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE,QAAQ;QAClB,gBAAgB,EAAE,MAAM;QACxB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,aAAa;QACrB,QAAQ,EAAE,MAAA,OAAO,CAAC,MAAM,mCAAI,MAAM;QAClC,YAAY,EAAE,IAAI;QAClB,aAAa,EAAE,IAAI;QACnB,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,wBAAwB;KACtC,CAAC,CAAC;IACH,IAAA,4CAAsB,EAAC,MAAM,EAAE,uBAAuB,EAAE;QACtD,OAAO,EAAE,MAAM;QACf,YAAY,EAAE,IAAI;KACnB,CAAC,CAAC;IACH,IAAA,4CAAsB,EAAC,MAAM,EAAE,qBAAqB,EAAE;QACpD,QAAQ,EAAE,QAAQ;QAClB,gBAAgB,EAAE,MAAM;QACxB,aAAa,EAAE,KAAK;QACpB,aAAa,EAAE,KAAK;QACpB,iBAAiB,EAAE,QAAQ;QAC3B,YAAY,EAAE,IAAI;QAClB,OAAO,EAAE,MAAM;QACf,WAAW,EAAE,SAAS;QACtB,MAAM,EAAE,aAAa;QACrB,QAAQ,EAAE,MAAM;QAChB,YAAY,EAAE,IAAI;QAClB,SAAS,EAAE,KAAK;KACjB,CAAC,CAAC;IACH,IAAA,4CAAsB,EAAC,MAAM,EAAE,uBAAuB,EAAE;QACtD,YAAY,EAAE,IAAI;QAClB,WAAW,EAAE,IAAI;KAClB,CAAC,CAAC;IACH,IAAA,4CAAsB,EAAC,MAAM,EAAE,2CAA2C,EAAE;QAC1E,YAAY,EAAE,IAAI;KACnB,CAAC,CAAC;IACH,IAAA,oDAA8B,EAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAClD,IAAA,oDAA8B,EAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IAC1D,IAAA,oDAA8B,EAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IACvD,IAAA,oDAA8B,EAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;IAC5D,IAAA,oDAA8B,EAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAEzD,IAAA,qBAAY,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AAC7B,CAAC;AAvED,oCAuEC"}
|
|
@@ -3,13 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.initGenerator = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
|
-
const utilities_1 = require("@rxap/utilities");
|
|
7
6
|
const workspace_utilities_1 = require("@rxap/workspace-utilities");
|
|
8
7
|
const generator_1 = require("../init-library/generator");
|
|
8
|
+
const coerce_nx_json_1 = require("./coerce-nx-json");
|
|
9
9
|
function initGenerator(tree, options) {
|
|
10
10
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
console.log('angular init generator:', options);
|
|
12
|
-
(0, workspace_utilities_1.GenerateSerializedSchematicFile)(tree, '/', '@rxap/plugin-angular', 'init',
|
|
12
|
+
(0, workspace_utilities_1.GenerateSerializedSchematicFile)(tree, '/', '@rxap/plugin-angular', 'init', options);
|
|
13
|
+
yield (0, workspace_utilities_1.AddPackageJsonDevDependency)(tree, '@nx/angular', (0, workspace_utilities_1.GetNxVersion)(tree), { soft: true });
|
|
14
|
+
(0, coerce_nx_json_1.coerceNxJson)(tree, options);
|
|
13
15
|
yield (0, generator_1.default)(tree, {
|
|
14
16
|
projects: [
|
|
15
17
|
'components',
|
|
@@ -21,8 +23,7 @@ function initGenerator(tree, options) {
|
|
|
21
23
|
directory: 'angular',
|
|
22
24
|
addTailwind: true,
|
|
23
25
|
buildable: true,
|
|
24
|
-
}
|
|
25
|
-
indexExport: false,
|
|
26
|
+
}
|
|
26
27
|
});
|
|
27
28
|
yield (0, generator_1.default)(tree, {
|
|
28
29
|
projects: [
|
|
@@ -38,9 +39,9 @@ function initGenerator(tree, options) {
|
|
|
38
39
|
'http-interceptors',
|
|
39
40
|
],
|
|
40
41
|
coerce: {
|
|
41
|
-
directory: 'angular'
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
directory: 'angular',
|
|
43
|
+
buildable: true,
|
|
44
|
+
}
|
|
44
45
|
});
|
|
45
46
|
if (!options.skipFormat) {
|
|
46
47
|
yield (0, devkit_1.formatFiles)(tree);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/generators/init/generator.ts"],"names":[],"mappings":";;;;AAAA,uCAGoB;AACpB
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/generators/init/generator.ts"],"names":[],"mappings":";;;;AAAA,uCAGoB;AACpB,mEAImC;AACnC,yDAA6D;AAC7D,qDAAgD;AAGhD,SAAsB,aAAa,CAAC,IAAU,EAAE,OAA4B;;QAC1E,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;QAEhD,IAAA,qDAA+B,EAC7B,IAAI,EACJ,GAAG,EACH,sBAAsB,EACtB,MAAM,EACN,OAAO,CACR,CAAC;QAEF,MAAM,IAAA,iDAA2B,EAAC,IAAI,EAAE,aAAa,EAAE,IAAA,kCAAY,EAAC,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QAE3F,IAAA,6BAAY,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAE5B,MAAM,IAAA,mBAAoB,EAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE;gBACR,YAAY;gBACZ,OAAO;gBACP,UAAU;gBACV,QAAQ;aACT;YACD,MAAM,EAAE;gBACN,SAAS,EAAE,SAAS;gBACpB,WAAW,EAAE,IAAI;gBACjB,SAAS,EAAE,IAAI;aAChB;SACF,CAAC,CAAC;QAEH,MAAM,IAAA,mBAAoB,EAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE;gBACR,SAAS;gBACT,cAAc;gBACd,OAAO;gBACP,YAAY;gBACZ,QAAQ;gBACR,UAAU;gBACV,uBAAuB;gBACvB,SAAS;gBACT,WAAW;gBACX,mBAAmB;aACpB;YACD,MAAM,EAAE;gBACN,SAAS,EAAE,SAAS;gBACpB,SAAS,EAAE,IAAI;aAChB;SACF,CAAC,CAAC;QAEH,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;YACxB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAC1B,CAAC;IAEH,CAAC;CAAA;AApDD,sCAoDC;AAED,kBAAe,aAAa,CAAC"}
|
|
@@ -11,21 +11,4 @@
|
|
|
11
11
|
|
|
12
12
|
@include mat.core();
|
|
13
13
|
|
|
14
|
-
// The following mixins include base theme styles that are only needed once per application. These
|
|
15
|
-
// theme styles do not depend on the color, typography, or density settings in your theme. However,
|
|
16
|
-
// these styles may differ depending on the theme's design system. Currently all themes use the
|
|
17
|
-
// Material 2 design system, but in the future it may be possible to create theme based on other
|
|
18
|
-
// design systems, such as Material 3.
|
|
19
|
-
//
|
|
20
|
-
// Please note: you do not need to include the 'base' mixins, if you include the corresponding
|
|
21
|
-
// 'theme' mixin elsewhere in your Sass. The full 'theme' mixins already include the base styles.
|
|
22
|
-
//
|
|
23
|
-
// To learn more about "base" theme styles visit our theming guide:
|
|
24
|
-
// https://material.angular.io/guide/theming#theming-dimensions
|
|
25
|
-
//
|
|
26
|
-
// TODO(v17): Please move these @include statements to the preferred place in your Sass, and pass
|
|
27
|
-
// your theme to them. This will ensure the correct values for your app are included.
|
|
28
|
-
@include mat.all-component-bases(/* TODO(v17): pass $your-theme here */);
|
|
29
|
-
|
|
30
|
-
|
|
31
14
|
@include init-theme();
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.generateMonolithic = void 0;
|
|
4
4
|
const ts_morph_1 = require("@rxap/ts-morph");
|
|
5
5
|
const workspace_ts_morph_1 = require("@rxap/workspace-ts-morph");
|
|
6
|
+
const workspace_utilities_1 = require("@rxap/workspace-utilities");
|
|
6
7
|
const path_1 = require("path");
|
|
7
8
|
function generateMonolithic(tree, projectName, project, options) {
|
|
8
9
|
if (!project.sourceRoot) {
|
|
@@ -10,7 +11,7 @@ function generateMonolithic(tree, projectName, project, options) {
|
|
|
10
11
|
}
|
|
11
12
|
if (!tree.exists((0, path_1.join)(project.sourceRoot, 'assets', 'logo.png'))) {
|
|
12
13
|
if (tree.exists('logo.png')) {
|
|
13
|
-
|
|
14
|
+
(0, workspace_utilities_1.CoerceFile)(tree, (0, path_1.join)(project.sourceRoot, 'assets', 'logo.png'), tree.read('logo.png'), true);
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
(0, workspace_ts_morph_1.TsMorphAngularProjectTransform)(tree, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-monolithic.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/generators/init-application/generate-monolithic.ts"],"names":[],"mappings":";;;AAIA,6CAIwB;AACxB,iEAA0E;AAC1E,+BAA4B;AAG5B,SAAgB,kBAAkB,CAAC,IAAU,EAAE,WAAmB,EAAE,OAA6B,EAAE,OAAuC;IAExI,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,6CAA8C,WAAY,EAAE,CAAC,CAAC;IAChF,CAAC;IAED,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAA,WAAI,EAAC,OAAO,CAAC,UAAU,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,EAAE,CAAC;QACjE,IAAI,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC;YAC5B,
|
|
1
|
+
{"version":3,"file":"generate-monolithic.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/generators/init-application/generate-monolithic.ts"],"names":[],"mappings":";;;AAIA,6CAIwB;AACxB,iEAA0E;AAC1E,mEAAuD;AACvD,+BAA4B;AAG5B,SAAgB,kBAAkB,CAAC,IAAU,EAAE,WAAmB,EAAE,OAA6B,EAAE,OAAuC;IAExI,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,6CAA8C,WAAY,EAAE,CAAC,CAAC;IAChF,CAAC;IAED,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAA,WAAI,EAAC,OAAO,CAAC,UAAU,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,EAAE,CAAC;QACjE,IAAI,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC;YAC5B,IAAA,gCAAU,EAAC,IAAI,EAAE,IAAA,WAAI,EAAC,OAAO,CAAC,UAAU,EAAE,QAAQ,EAAE,UAAU,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,UAAU,CAAE,EAAE,IAAI,CAAC,CAAC;QACjG,CAAC;IACH,CAAC;IAED,IAAA,mDAA8B,EAAC,IAAI,EAAE;QACnC,OAAO,EAAE,WAAW;KACrB,EAAE,CAAC,CAAC,EAAE,CAAE,aAAa,EAAE,gBAAgB,EAAE,oBAAoB,CAAE,EAAE,EAAE;;QAClE,IAAA,6BAAkB,EAAC,gBAAgB,CAAC,CAAC;QACrC,IAAA,0BAAe,EAAC,aAAa,EAAE;YAC7B,QAAQ,EAAE;gBACR;oBACE,KAAK,EAAE;wBACL,IAAI,EAAE,MAAA,OAAO,CAAC,eAAe,mCAAI,EAAE;wBACnC,YAAY,EAAE,iBAAiB;qBAChC;iBACF;aACF;SACF,CAAC,CAAC;QACH,IAAA,8BAAmB,EAAC,oBAAoB,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;IAC9E,CAAC,EAAE,CAAE,oBAAoB,EAAE,uBAAuB,EAAE,wBAAwB,CAAE,CAAC,CAAC;AAElF,CAAC;AA7BD,gDA6BC"}
|
|
@@ -374,7 +374,7 @@ function cleanup(tree, projectName, options) {
|
|
|
374
374
|
const content = tree.read((0, path_1.join)(sourceRoot, 'app/app.component.html'), 'utf-8')
|
|
375
375
|
.replace(/<.+-nx-welcome><\/.+-nx-welcome> /, '')
|
|
376
376
|
.replace(/<ul class="remote-menu">[\s\S]*<\/ul>/, '');
|
|
377
|
-
|
|
377
|
+
(0, workspace_utilities_1.CoerceFile)(tree, (0, path_1.join)(sourceRoot, 'app/app.component.html'), content, true);
|
|
378
378
|
}
|
|
379
379
|
if (options.moduleFederation !== 'remote') {
|
|
380
380
|
(0, workspace_ts_morph_1.TsMorphAngularProjectTransform)(tree, {
|
|
@@ -395,7 +395,7 @@ function cleanup(tree, projectName, options) {
|
|
|
395
395
|
const projectRoot = (0, workspace_utilities_1.GetProjectRoot)(tree, projectName);
|
|
396
396
|
let content = tree.read((0, path_1.join)(projectRoot, 'module-federation.config.js'), 'utf-8');
|
|
397
397
|
content = content.replace('./Routes', './routes');
|
|
398
|
-
|
|
398
|
+
(0, workspace_utilities_1.CoerceFile)(tree, (0, path_1.join)(projectRoot, 'module-federation.config.js'), content, true);
|
|
399
399
|
// endregion
|
|
400
400
|
// region tsconfig.base.json
|
|
401
401
|
(0, workspace_utilities_1.UpdateTsConfigJson)(tree, tsConfig => {
|
|
@@ -626,22 +626,20 @@ function coerceEnvironmentFiles(tree, options) {
|
|
|
626
626
|
function coerceLocalazyConfigFile(tree, project) {
|
|
627
627
|
const projectRoot = project.root;
|
|
628
628
|
const localazyConfigPath = (0, path_1.join)(projectRoot, 'localazy.json');
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
}, null, 2));
|
|
644
|
-
}
|
|
629
|
+
(0, workspace_utilities_1.CoerceFile)(tree, localazyConfigPath, JSON.stringify({
|
|
630
|
+
upload: {
|
|
631
|
+
type: 'xliff',
|
|
632
|
+
deprecate: 'file',
|
|
633
|
+
features: [
|
|
634
|
+
'use_defined_lang_for_source',
|
|
635
|
+
'dont_parse_target',
|
|
636
|
+
],
|
|
637
|
+
files: 'src/i18n/messages.xlf',
|
|
638
|
+
},
|
|
639
|
+
download: {
|
|
640
|
+
files: 'src/i18n/${languageCode}.xlf',
|
|
641
|
+
},
|
|
642
|
+
}, null, 2));
|
|
645
643
|
}
|
|
646
644
|
function updateTsConfig(tree, projectName) {
|
|
647
645
|
const projectRoot = (0, workspace_utilities_1.GetProjectRoot)(tree, projectName);
|
|
@@ -758,8 +756,8 @@ function initApplicationGenerator(tree, options) {
|
|
|
758
756
|
// must always be added as some rxap components use the i18n tag
|
|
759
757
|
yield (0, workspace_utilities_1.AddPackageJsonDependency)(tree, '@angular/localize', angular_version_1.ANGULAR_VERSION, { soft: true });
|
|
760
758
|
// must always be added as some rxap components use interfaces from the package
|
|
761
|
-
// TODO : refactor the @rxap/ngx-error and @rxap/ngx-status-check to be independent from the @sentry/angular
|
|
762
|
-
yield (0, workspace_utilities_1.AddPackageJsonDependency)(tree, '@sentry/angular
|
|
759
|
+
// TODO : refactor the @rxap/ngx-error and @rxap/ngx-status-check to be independent from the @sentry/angular package
|
|
760
|
+
yield (0, workspace_utilities_1.AddPackageJsonDependency)(tree, '@sentry/angular', 'latest', { soft: true });
|
|
763
761
|
if (options.oauth) {
|
|
764
762
|
yield (0, workspace_utilities_1.AddPackageJsonDependency)(tree, 'angular-oauth2-oidc', 'latest', { soft: true });
|
|
765
763
|
yield (0, workspace_utilities_1.AddPackageJsonDependency)(tree, 'angular-oauth2-oidc-jwks', 'latest', { soft: true });
|
|
@@ -796,8 +794,6 @@ function initApplicationGenerator(tree, options) {
|
|
|
796
794
|
}
|
|
797
795
|
if (options.sentry) {
|
|
798
796
|
yield (0, workspace_utilities_1.AddPackageJsonDependency)(tree, '@rxap/ngx-sentry', 'latest', { soft: true });
|
|
799
|
-
yield (0, workspace_utilities_1.AddPackageJsonDependency)(tree, '@sentry/browser', 'latest', { soft: true });
|
|
800
|
-
yield (0, workspace_utilities_1.AddPackageJsonDependency)(tree, '@sentry/integrations', 'latest', { soft: true });
|
|
801
797
|
}
|
|
802
798
|
if (options.i18n) {
|
|
803
799
|
yield (0, workspace_utilities_1.AddPackageJsonDependency)(tree, '@rxap/ngx-localize', 'latest', { soft: true });
|
|
@@ -822,13 +818,11 @@ function initApplicationGenerator(tree, options) {
|
|
|
822
818
|
target: 'shared/angular',
|
|
823
819
|
overwrite: options.overwrite,
|
|
824
820
|
});
|
|
825
|
-
|
|
826
|
-
tree.write('shared/angular/assets/custom.svg', '<svg></svg>');
|
|
827
|
-
}
|
|
821
|
+
(0, workspace_utilities_1.CoerceFile)(tree, 'shared/angular/assets/custom.svg', '<svg></svg>');
|
|
828
822
|
if (options.i18n && !options.skipDocker) {
|
|
829
823
|
let dockerfileContent = tree.read('shared/angular/Dockerfile', 'utf-8');
|
|
830
824
|
dockerfileContent = dockerfileContent.replace('registry.gitlab.com/rxap/docker/nginx:', 'registry.gitlab.com/rxap/docker/i18n-nginx:');
|
|
831
|
-
|
|
825
|
+
(0, workspace_utilities_1.CoerceFile)(tree, 'shared/angular/Dockerfile', dockerfileContent, true);
|
|
832
826
|
}
|
|
833
827
|
(0, workspace_utilities_1.CoerceFilesStructure)(tree, {
|
|
834
828
|
srcFolder: (0, path_1.join)(__dirname, 'files', 'styles'),
|
|
@@ -849,7 +843,7 @@ function initApplicationGenerator(tree, options) {
|
|
|
849
843
|
if (skipProject(tree, options, project, projectName)) {
|
|
850
844
|
continue;
|
|
851
845
|
}
|
|
852
|
-
(0, workspace_utilities_1.GenerateSerializedSchematicFile)(tree, (0, workspace_utilities_1.GetProjectRoot)(tree, projectName), '@rxap/plugin-angular', 'init-application', (0, utilities_1.DeleteProperties)(options, ['
|
|
846
|
+
(0, workspace_utilities_1.GenerateSerializedSchematicFile)(tree, (0, workspace_utilities_1.GetProjectRoot)(tree, projectName), '@rxap/plugin-angular', 'init-application', (0, utilities_1.DeleteProperties)(options, ['generateMain']));
|
|
853
847
|
console.log(`init angular application project: ${projectName}`);
|
|
854
848
|
const sourceRoot = (0, workspace_utilities_1.GetProjectSourceRoot)(tree, projectName);
|
|
855
849
|
(0, plugin_application_1.ApplicationInitProject)(tree, projectName, project, options);
|