@rxap/plugin-angular 16.2.0-dev.13 → 16.2.0-dev.15
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 +26 -0
- package/README.md +15 -1
- package/generators.json +10 -0
- package/package.json +18 -13
- package/src/generators/init/generator.js +4 -0
- 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/coerce-project.js +3 -3
- package/src/generators/init-application/coerce-project.js.map +1 -1
- 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 +46 -37
- package/src/generators/init-application/generator.js.map +1 -1
- package/src/generators/init-application/schema.d.ts +5 -1
- package/src/generators/init-application/schema.json +25 -27
- package/src/generators/init-component/generator.d.ts +4 -0
- package/src/generators/init-component/generator.js +70 -0
- package/src/generators/init-component/generator.js.map +1 -0
- package/src/generators/init-component/index.d.ts +2 -0
- package/src/generators/init-component/index.js +7 -0
- package/src/generators/init-component/index.js.map +1 -0
- package/src/generators/init-component/schema.d.ts +25 -0
- package/src/generators/init-component/schema.json +141 -0
- package/src/generators/init-feature/generator.js +5 -1
- package/src/generators/init-feature/generator.js.map +1 -1
- package/src/generators/init-feature/schema.d.ts +2 -1
- package/src/generators/init-feature/schema.json +4 -0
- package/src/generators/init-library/generator.js +5 -0
- package/src/generators/init-library/generator.js.map +1 -1
- package/src/generators/init-library/schema.d.ts +1 -0
- package/src/generators/init-library/schema.json +4 -0
- package/src/lib/coerce-test-setup.d.ts +2 -0
- package/src/lib/coerce-test-setup.js +40 -0
- package/src/lib/coerce-test-setup.js.map +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,32 @@
|
|
|
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
|
+
# [16.2.0-dev.15](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@16.2.0-dev.14...@rxap/plugin-angular@16.2.0-dev.15) (2024-04-12)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- add index and scss files if not updated ([2a0d639](https://gitlab.com/rxap/packages/commit/2a0d639814d389ab3eb18601b88cdbe684228452))
|
|
11
|
+
- coerce the test setup file ([e30586b](https://gitlab.com/rxap/packages/commit/e30586b7f616d9f9e95b167ccbb10e4c9aebee94))
|
|
12
|
+
- preserve custom directory ([deecebb](https://gitlab.com/rxap/packages/commit/deecebbf21a796c327b5721dd7ce07e20038d4ad))
|
|
13
|
+
- use correct component path prefixes and option defaults ([4594d6a](https://gitlab.com/rxap/packages/commit/4594d6a1cbde8cdb52c8e73072a7a2ea67c77d7b))
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
- add init-component generator ([a023d64](https://gitlab.com/rxap/packages/commit/a023d6402b09cf049b82f70a4a1a1e0c2a1671ae))
|
|
18
|
+
- support option --skip-docker ([38341fc](https://gitlab.com/rxap/packages/commit/38341fcc50d2c705251630f6933ebd81829ed6f3))
|
|
19
|
+
|
|
20
|
+
# [16.2.0-dev.14](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@16.2.0-dev.13...@rxap/plugin-angular@16.2.0-dev.14) (2024-04-10)
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
- add stories and cy files to is config exclude ([d80af1b](https://gitlab.com/rxap/packages/commit/d80af1b770521cbab4a975e0140e5575c87a5f42))
|
|
25
|
+
- detected layout children array by component name ([0ca7179](https://gitlab.com/rxap/packages/commit/0ca7179bd81e3cbb7922eaca440de0fe18f460d6))
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
- add format files ([672c753](https://gitlab.com/rxap/packages/commit/672c7533b8b0248d19c9dc2ad4a203c482cfd9ae))
|
|
30
|
+
- add layoutRoutePath and standaloneImport options ([8ae83ff](https://gitlab.com/rxap/packages/commit/8ae83ff71d3793130df5e10f24113be6b1d791fd))
|
|
31
|
+
|
|
6
32
|
# [16.2.0-dev.13](https://gitlab.com/rxap/packages/compare/@rxap/plugin-angular@16.2.0-dev.12...@rxap/plugin-angular@16.2.0-dev.13) (2024-04-10)
|
|
7
33
|
|
|
8
34
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ yarn add @rxap/plugin-angular
|
|
|
19
19
|
```
|
|
20
20
|
**Install peer dependencies:**
|
|
21
21
|
```bash
|
|
22
|
-
yarn add @nx/angular@^16.10.0 @nx/devkit@^16.10.0 @nx/linter@^16.10.0 @rxap/plugin-application@^16.2.0-dev.
|
|
22
|
+
yarn add @nx/angular@^16.10.0 @nx/devkit@^16.10.0 @nx/linter@^16.10.0 @rxap/plugin-application@^16.2.0-dev.10 @rxap/plugin-gitlab-ci@^16.2.0-dev.3 @rxap/plugin-library@^16.1.0-dev.12 @rxap/plugin-localazy@^16.1.1-dev.3 @rxap/plugin-utilities@^16.2.0-dev.1 @rxap/ts-morph@^1.1.0-dev.29 @rxap/utilities@^16.1.0-dev.9 @rxap/workspace-ts-morph@^16.1.0-dev.0 @rxap/workspace-utilities@^16.1.0-dev.13 nx@^16.10.0 ts-morph@^18.0.0 tslib@2.6.2
|
|
23
23
|
```
|
|
24
24
|
**Execute the init generator:**
|
|
25
25
|
```bash
|
|
@@ -69,6 +69,13 @@ yarn nx g @rxap/plugin-angular:schematic
|
|
|
69
69
|
yarn nx g @rxap/plugin-angular:init-feature
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
+
## init-component
|
|
73
|
+
> init-component generator
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
yarn nx g @rxap/plugin-angular:init-component
|
|
77
|
+
```
|
|
78
|
+
|
|
72
79
|
## init
|
|
73
80
|
> init generator
|
|
74
81
|
|
|
@@ -110,6 +117,13 @@ yarn nx g @rxap/plugin-angular:schematic
|
|
|
110
117
|
```bash
|
|
111
118
|
yarn nx g @rxap/plugin-angular:init-feature
|
|
112
119
|
```
|
|
120
|
+
|
|
121
|
+
## init-component
|
|
122
|
+
> init-component generator
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
yarn nx g @rxap/plugin-angular:init-component
|
|
126
|
+
```
|
|
113
127
|
# Executors
|
|
114
128
|
|
|
115
129
|
## tailwind
|
package/generators.json
CHANGED
|
@@ -29,6 +29,11 @@
|
|
|
29
29
|
"factory": "./src/generators/init-feature/generator",
|
|
30
30
|
"schema": "./src/generators/init-feature/schema.json",
|
|
31
31
|
"description": "init-feature generator"
|
|
32
|
+
},
|
|
33
|
+
"init-component": {
|
|
34
|
+
"factory": "./src/generators/init-component/generator",
|
|
35
|
+
"schema": "./src/generators/init-component/schema.json",
|
|
36
|
+
"description": "init-component generator"
|
|
32
37
|
}
|
|
33
38
|
},
|
|
34
39
|
"schematics": {
|
|
@@ -61,6 +66,11 @@
|
|
|
61
66
|
"factory": "./src/generators/init-feature/index",
|
|
62
67
|
"schema": "./src/generators/init-feature/schema.json",
|
|
63
68
|
"description": "init-feature generator"
|
|
69
|
+
},
|
|
70
|
+
"init-component": {
|
|
71
|
+
"factory": "./src/generators/init-component/index",
|
|
72
|
+
"schema": "./src/generators/init-component/schema.json",
|
|
73
|
+
"description": "init-component generator"
|
|
64
74
|
}
|
|
65
75
|
}
|
|
66
76
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "16.2.0-dev.
|
|
2
|
+
"version": "16.2.0-dev.15",
|
|
3
3
|
"name": "@rxap/plugin-angular",
|
|
4
4
|
"license": "GPL-3.0-or-later",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@apidevtools/json-schema-ref-parser": "9.0.9",
|
|
7
|
+
"@nx/devkit": "16.10.0",
|
|
7
8
|
"colors": "1.4.0",
|
|
8
9
|
"fs-extra": "11.1.1",
|
|
9
10
|
"glob": "10.3.10",
|
|
@@ -18,20 +19,20 @@
|
|
|
18
19
|
"@nx/angular": "^16.10.0",
|
|
19
20
|
"@nx/devkit": "^16.10.0",
|
|
20
21
|
"@nx/linter": "^16.10.0",
|
|
21
|
-
"@rxap/plugin-application": "^16.2.0-dev.
|
|
22
|
-
"@rxap/plugin-
|
|
23
|
-
"@rxap/plugin-library": "^16.1.0-dev.
|
|
22
|
+
"@rxap/plugin-application": "^16.2.0-dev.10",
|
|
23
|
+
"@rxap/plugin-gitlab-ci": "^16.2.0-dev.3",
|
|
24
|
+
"@rxap/plugin-library": "^16.1.0-dev.12",
|
|
24
25
|
"@rxap/plugin-localazy": "^16.1.1-dev.3",
|
|
25
26
|
"@rxap/plugin-utilities": "^16.2.0-dev.1",
|
|
26
|
-
"@rxap/ts-morph": "^1.1.0-dev.
|
|
27
|
+
"@rxap/ts-morph": "^1.1.0-dev.29",
|
|
27
28
|
"@rxap/utilities": "^16.1.0-dev.9",
|
|
28
29
|
"@rxap/workspace-ts-morph": "^16.1.0-dev.0",
|
|
29
|
-
"@rxap/workspace-utilities": "^16.1.0-dev.
|
|
30
|
+
"@rxap/workspace-utilities": "^16.1.0-dev.13",
|
|
30
31
|
"nx": "^16.10.0",
|
|
31
32
|
"ts-morph": "^18.0.0",
|
|
32
33
|
"tslib": "2.6.2",
|
|
33
34
|
"@rxap/generator-ts-morph": "1.0.2-dev.1",
|
|
34
|
-
"@rxap/node-utilities": "1.2.0-dev.
|
|
35
|
+
"@rxap/node-utilities": "1.2.0-dev.2"
|
|
35
36
|
},
|
|
36
37
|
"author": {
|
|
37
38
|
"name": "Merzough Münker",
|
|
@@ -65,15 +66,19 @@
|
|
|
65
66
|
},
|
|
66
67
|
{
|
|
67
68
|
"package": "@rxap/plugin-application",
|
|
68
|
-
"version": "16.2.0-dev.
|
|
69
|
+
"version": "16.2.0-dev.10"
|
|
69
70
|
},
|
|
70
71
|
{
|
|
71
72
|
"package": "@rxap/plugin-docker",
|
|
72
|
-
"version": "16.1.0-dev.
|
|
73
|
+
"version": "16.1.0-dev.12"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"package": "@rxap/plugin-gitlab-ci",
|
|
77
|
+
"version": "16.2.0-dev.3"
|
|
73
78
|
},
|
|
74
79
|
{
|
|
75
80
|
"package": "@rxap/plugin-library",
|
|
76
|
-
"version": "16.1.0-dev.
|
|
81
|
+
"version": "16.1.0-dev.12"
|
|
77
82
|
},
|
|
78
83
|
{
|
|
79
84
|
"package": "@rxap/plugin-localazy",
|
|
@@ -89,7 +94,7 @@
|
|
|
89
94
|
},
|
|
90
95
|
{
|
|
91
96
|
"package": "@rxap/ts-morph",
|
|
92
|
-
"version": "1.1.0-dev.
|
|
97
|
+
"version": "1.1.0-dev.29"
|
|
93
98
|
},
|
|
94
99
|
{
|
|
95
100
|
"package": "@rxap/utilities",
|
|
@@ -101,7 +106,7 @@
|
|
|
101
106
|
},
|
|
102
107
|
{
|
|
103
108
|
"package": "@rxap/workspace-utilities",
|
|
104
|
-
"version": "16.1.0-dev.
|
|
109
|
+
"version": "16.1.0-dev.13"
|
|
105
110
|
}
|
|
106
111
|
]
|
|
107
112
|
},
|
|
@@ -116,6 +121,6 @@
|
|
|
116
121
|
},
|
|
117
122
|
"schematics": "./generators.json",
|
|
118
123
|
"type": "commonjs",
|
|
119
|
-
"gitHead": "
|
|
124
|
+
"gitHead": "e13d3880ec9119dcbb6b6a5ae8a1ee4d4c4500dc",
|
|
120
125
|
"main": "./src/index.js"
|
|
121
126
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.initGenerator = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
6
|
const utilities_1 = require("@rxap/utilities");
|
|
6
7
|
const workspace_utilities_1 = require("@rxap/workspace-utilities");
|
|
7
8
|
const generator_1 = require("../init-library/generator");
|
|
@@ -40,6 +41,9 @@ function initGenerator(tree, options) {
|
|
|
40
41
|
},
|
|
41
42
|
indexExport: false,
|
|
42
43
|
});
|
|
44
|
+
if (!options.skipFormat) {
|
|
45
|
+
yield (0, devkit_1.formatFiles)(tree);
|
|
46
|
+
}
|
|
43
47
|
});
|
|
44
48
|
}
|
|
45
49
|
exports.initGenerator = initGenerator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/generators/init/generator.ts"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/generators/init/generator.ts"],"names":[],"mappings":";;;;AAAA,uCAGoB;AACpB,+CAAmD;AACnD,mEAA4E;AAC5E,yDAA6D;AAG7D,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,IAAA,4BAAgB,EAAC,OAAO,EAAE,CAAE,UAAU,EAAE,WAAW,EAAE,cAAc,CAAE,CAAC,CACvE,CAAC;QAEF,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;aAClB;YACD,WAAW,EAAE,KAAK;SACnB,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;aACrB;YACD,WAAW,EAAE,KAAK;SACnB,CAAC,CAAC;QAEH,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YACvB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;IAEH,CAAC;CAAA;AAhDD,sCAgDC;AAED,kBAAe,aAAa,CAAC"}
|
|
@@ -34,18 +34,18 @@ function CoerceProject(tree, projectName, options) {
|
|
|
34
34
|
if (options.moduleFederation) {
|
|
35
35
|
if (options.moduleFederation === 'host') {
|
|
36
36
|
const defaultOptions = (0, workspace_utilities_1.GetDefaultGeneratorOptions)(tree, '@nx/angular:host');
|
|
37
|
-
const schema = Object.assign(Object.assign(Object.assign({ style: 'scss', inlineStyle: false, inlineTemplate: false, skipTests: false, skipFormat: false, skipPackageJson: false, unitTestRunner: generators_1.UnitTestRunner.Jest, e2eTestRunner: generators_1.E2eTestRunner.None, linter: linter_1.Linter.EsLint, strict: true, standaloneConfig: true }, defaultOptions), formOptions), { name: projectName, dynamic: true, projectNameAndRootFormat: 'as-provided'
|
|
37
|
+
const schema = Object.assign(Object.assign(Object.assign(Object.assign({ style: 'scss', inlineStyle: false, inlineTemplate: false, skipTests: false, skipFormat: false, skipPackageJson: false, unitTestRunner: generators_1.UnitTestRunner.Jest, e2eTestRunner: generators_1.E2eTestRunner.None, linter: linter_1.Linter.EsLint, strict: true, standaloneConfig: true }, defaultOptions), { directory }), formOptions), { name: projectName, dynamic: true, projectNameAndRootFormat: 'as-provided' });
|
|
38
38
|
yield (0, generators_1.host)(tree, schema);
|
|
39
39
|
}
|
|
40
40
|
else {
|
|
41
41
|
const defaultOptions = (0, workspace_utilities_1.GetDefaultGeneratorOptions)(tree, '@nx/angular:remote');
|
|
42
|
-
const schema = Object.assign(Object.assign(Object.assign({ style: 'scss', inlineStyle: false, inlineTemplate: false, skipTests: false, skipFormat: false, skipPackageJson: false, unitTestRunner: generators_1.UnitTestRunner.Jest, e2eTestRunner: generators_1.E2eTestRunner.None, linter: linter_1.Linter.EsLint, strict: true, standaloneConfig: true }, defaultOptions), formOptions), { host: options.host, name: projectName, projectNameAndRootFormat: 'as-provided'
|
|
42
|
+
const schema = Object.assign(Object.assign(Object.assign(Object.assign({ style: 'scss', inlineStyle: false, inlineTemplate: false, skipTests: false, skipFormat: false, skipPackageJson: false, unitTestRunner: generators_1.UnitTestRunner.Jest, e2eTestRunner: generators_1.E2eTestRunner.None, linter: linter_1.Linter.EsLint, strict: true, standaloneConfig: true }, defaultOptions), { directory }), formOptions), { host: options.host, name: projectName, projectNameAndRootFormat: 'as-provided' });
|
|
43
43
|
yield (0, generators_1.remote)(tree, schema);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
else {
|
|
47
47
|
const defaultOptions = (0, workspace_utilities_1.GetDefaultGeneratorOptions)(tree, '@nx/angular:application');
|
|
48
|
-
const schema = Object.assign(Object.assign(Object.assign({ style: 'scss', routing: true, inlineStyle: false, inlineTemplate: false, skipTests: false, skipFormat: false, skipPackageJson: false, unitTestRunner: generators_1.UnitTestRunner.Jest, e2eTestRunner: generators_1.E2eTestRunner.None, linter: linter_1.Linter.EsLint, strict: true, standaloneConfig: true, minimal: true }, defaultOptions), formOptions), { name: projectName, projectNameAndRootFormat: 'as-provided'
|
|
48
|
+
const schema = Object.assign(Object.assign(Object.assign(Object.assign({ style: 'scss', routing: true, inlineStyle: false, inlineTemplate: false, skipTests: false, skipFormat: false, skipPackageJson: false, unitTestRunner: generators_1.UnitTestRunner.Jest, e2eTestRunner: generators_1.E2eTestRunner.None, linter: linter_1.Linter.EsLint, strict: true, standaloneConfig: true, minimal: true }, defaultOptions), { directory }), formOptions), { name: projectName, projectNameAndRootFormat: 'as-provided' });
|
|
49
49
|
yield (0, generators_1.applicationGenerator)(tree, schema);
|
|
50
50
|
}
|
|
51
51
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coerce-project.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/generators/init-application/coerce-project.ts"],"names":[],"mappings":";;;;AAAA,uDAMgC;AAKhC,mEAAgE;AAChE,mEAGmC;AAGnC,SAAsB,cAAc,CAAC,IAAU,EAAE,OAAuC;;;QAEtF,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;YACnB,OAAO;SACR;QAED,KAAK,MAAM,WAAW,IAAI,MAAA,OAAO,CAAC,QAAQ,mCAAI,EAAE,EAAE;YAEhD,IAAI,CAAC,IAAA,gCAAU,EAAC,IAAI,EAAE,WAAW,CAAC,EAAE;gBAElC,MAAM,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;aAEjD;SAEF;;CAEF;AAhBD,wCAgBC;AAED,SAAsB,aAAa,CAAC,IAAU,EAAE,WAAmB,EAAE,OAAuC;;QAE1G,IAAI,IAAA,gCAAU,EAAC,IAAI,EAAE,WAAW,CAAC,EAAE;YACjC,OAAO,CAAC,GAAG,CAAC,WAAY,WAAY,iBAAiB,CAAC,CAAC;YACvD,OAAO;SACR;QAED,IAAI,SAAS,GAAG,gBAAgB,CAAC;QACjC,IAAI,WAAW,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE;YACrC,SAAS,IAAI,UAAU,CAAC;SACzB;QACD,SAAS,IAAI,IAAK,WAAW,CAAC,OAAO,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAE,EAAE,CAAC;QAExF,MAAM,WAAW,GAAQ,OAAO,OAAO,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;QAElF,IAAI,OAAO,CAAC,gBAAgB,EAAE;YAE5B,IAAI,OAAO,CAAC,gBAAgB,KAAK,MAAM,EAAE;gBACvC,MAAM,cAAc,GAAG,IAAA,gDAA0B,EAAsC,IAAI,EAAE,kBAAkB,CAAC,CAAC;gBACjH,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"coerce-project.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/generators/init-application/coerce-project.ts"],"names":[],"mappings":"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"}
|
|
@@ -16,12 +16,13 @@ function generateMonolithic(tree, projectName, project, options) {
|
|
|
16
16
|
(0, workspace_ts_morph_1.TsMorphAngularProjectTransform)(tree, {
|
|
17
17
|
project: projectName,
|
|
18
18
|
}, (_, [appSourceFile, layoutSourceFile, navigationSourceFile]) => {
|
|
19
|
+
var _a;
|
|
19
20
|
(0, ts_morph_1.CoerceLayoutRoutes)(layoutSourceFile);
|
|
20
21
|
(0, ts_morph_1.CoerceAppRoutes)(appSourceFile, {
|
|
21
22
|
itemList: [
|
|
22
23
|
{
|
|
23
24
|
route: {
|
|
24
|
-
path: '',
|
|
25
|
+
path: (_a = options.layoutRoutePath) !== null && _a !== void 0 ? _a : '',
|
|
25
26
|
loadChildren: './layout.routes'
|
|
26
27
|
}
|
|
27
28
|
}
|
|
@@ -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;QACvB,MAAM,IAAI,KAAK,CAAC,6CAA8C,WAAY,EAAE,CAAC,CAAC;KAC/E;IAED,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAA,WAAI,EAAC,OAAO,CAAC,UAAU,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,EAAE;QAChE,IAAI,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE;YAC3B,IAAI,CAAC,KAAK,CAAC,IAAA,WAAI,EAAC,OAAO,CAAC,UAAU,EAAE,QAAQ,EAAE,UAAU,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,UAAU,CAAE,CAAC,CAAC;SACpF;KACF;IAED,IAAA,mDAA8B,EAAC,IAAI,EAAE;QACnC,OAAO,EAAE,WAAW;KACrB,EAAE,CAAC,CAAC,EAAE,CAAE,aAAa,EAAE,gBAAgB,EAAE,oBAAoB,CAAE,EAAE,EAAE
|
|
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;QACvB,MAAM,IAAI,KAAK,CAAC,6CAA8C,WAAY,EAAE,CAAC,CAAC;KAC/E;IAED,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAA,WAAI,EAAC,OAAO,CAAC,UAAU,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,EAAE;QAChE,IAAI,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE;YAC3B,IAAI,CAAC,KAAK,CAAC,IAAA,WAAI,EAAC,OAAO,CAAC,UAAU,EAAE,QAAQ,EAAE,UAAU,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,UAAU,CAAE,CAAC,CAAC;SACpF;KACF;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"}
|
|
@@ -4,7 +4,7 @@ exports.initApplicationGenerator = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
6
|
const plugin_application_1 = require("@rxap/plugin-application");
|
|
7
|
-
const
|
|
7
|
+
const plugin_gitlab_ci_1 = require("@rxap/plugin-gitlab-ci");
|
|
8
8
|
const plugin_localazy_1 = require("@rxap/plugin-localazy");
|
|
9
9
|
const ts_morph_1 = require("@rxap/ts-morph");
|
|
10
10
|
const utilities_1 = require("@rxap/utilities");
|
|
@@ -12,6 +12,7 @@ const workspace_ts_morph_1 = require("@rxap/workspace-ts-morph");
|
|
|
12
12
|
const workspace_utilities_1 = require("@rxap/workspace-utilities");
|
|
13
13
|
const path_1 = require("path");
|
|
14
14
|
const ts_morph_2 = require("ts-morph");
|
|
15
|
+
const coerce_test_setup_1 = require("../../lib/coerce-test-setup");
|
|
15
16
|
const coerce_project_1 = require("./coerce-project");
|
|
16
17
|
const generate_authentication_1 = require("./generate-authentication");
|
|
17
18
|
const generate_monolithic_1 = require("./generate-monolithic");
|
|
@@ -31,9 +32,13 @@ function updateProjectTargets(project, options) {
|
|
|
31
32
|
if (!project.targets['build']) {
|
|
32
33
|
throw new Error(`The project '${project.name}' has no build target`);
|
|
33
34
|
}
|
|
34
|
-
if (
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
if (!options.skipDocker) {
|
|
36
|
+
if (project.targets['docker']) {
|
|
37
|
+
(_b = (_z = project.targets['docker']).options) !== null && _b !== void 0 ? _b : (_z.options = {});
|
|
38
|
+
(_c = (_0 = project.targets['docker'].options).dockerfile) !== null && _c !== void 0 ? _c : (_0.dockerfile = options.moduleFederation === 'remote' ?
|
|
39
|
+
(0, path_1.join)(project.sourceRoot, 'Dockerfile') :
|
|
40
|
+
'shared/angular/Dockerfile');
|
|
41
|
+
}
|
|
37
42
|
}
|
|
38
43
|
(0, workspace_utilities_1.CoerceTarget)(project, 'serve', {
|
|
39
44
|
options: {
|
|
@@ -422,7 +427,10 @@ function cleanup(tree, projectName, options) {
|
|
|
422
427
|
project: options.host,
|
|
423
428
|
}, (_, [appRoutes]) => {
|
|
424
429
|
(0, ts_morph_1.RemoveRoute)(appRoutes, {
|
|
425
|
-
loadRemoteModule:
|
|
430
|
+
loadRemoteModule: {
|
|
431
|
+
name: projectName,
|
|
432
|
+
entry: './Routes',
|
|
433
|
+
},
|
|
426
434
|
name: 'appRoutes'
|
|
427
435
|
});
|
|
428
436
|
appRoutes.organizeImports();
|
|
@@ -621,13 +629,20 @@ function updateTsConfig(tree, projectName) {
|
|
|
621
629
|
const projectRoot = (0, workspace_utilities_1.GetProjectRoot)(tree, projectName);
|
|
622
630
|
for (const tsConfigName of ['app', 'editor', 'spec']) {
|
|
623
631
|
(0, workspace_utilities_1.UpdateTsConfigJson)(tree, tsConfig => {
|
|
624
|
-
var _a, _b;
|
|
625
|
-
var
|
|
632
|
+
var _a, _b, _c;
|
|
633
|
+
var _d;
|
|
626
634
|
(_a = tsConfig.compilerOptions) !== null && _a !== void 0 ? _a : (tsConfig.compilerOptions = {});
|
|
627
|
-
(_b = (
|
|
635
|
+
(_b = (_d = tsConfig.compilerOptions).types) !== null && _b !== void 0 ? _b : (_d.types = []);
|
|
628
636
|
if (!tsConfig.compilerOptions.types.includes('@angular/localize')) {
|
|
629
637
|
tsConfig.compilerOptions.types.push('@angular/localize');
|
|
630
638
|
}
|
|
639
|
+
if (['app', 'spec'].includes(tsConfigName)) {
|
|
640
|
+
(_c = tsConfig.exclude) !== null && _c !== void 0 ? _c : (tsConfig.exclude = []);
|
|
641
|
+
(0, utilities_1.CoerceArrayItems)(tsConfig.exclude, [
|
|
642
|
+
'src/**/*.stories.ts',
|
|
643
|
+
'src/**/*.cy.ts',
|
|
644
|
+
]);
|
|
645
|
+
}
|
|
631
646
|
}, { infix: tsConfigName, basePath: projectRoot });
|
|
632
647
|
}
|
|
633
648
|
}
|
|
@@ -638,7 +653,7 @@ function linkMfeRemoteWithHost(tree, projectName, options) {
|
|
|
638
653
|
const hostSourceRoot = (0, workspace_utilities_1.GetProjectSourceRoot)(tree, options.host);
|
|
639
654
|
const isHostMonolithic = tree.exists((0, path_1.join)(hostSourceRoot, 'app/layout.routes.ts'));
|
|
640
655
|
const path = projectName.replace('user-interface-', '').replace('feature-', '');
|
|
641
|
-
if (isHostMonolithic) {
|
|
656
|
+
if (isHostMonolithic && !options.standaloneImport) {
|
|
642
657
|
(0, workspace_ts_morph_1.TsMorphAngularProjectTransform)(tree, {
|
|
643
658
|
project: options.host,
|
|
644
659
|
}, (project, [layoutSourceFile]) => {
|
|
@@ -649,7 +664,7 @@ function linkMfeRemoteWithHost(tree, projectName, options) {
|
|
|
649
664
|
path,
|
|
650
665
|
loadRemoteModule: projectName
|
|
651
666
|
},
|
|
652
|
-
|
|
667
|
+
component: 'LayoutComponent'
|
|
653
668
|
}
|
|
654
669
|
]
|
|
655
670
|
});
|
|
@@ -673,30 +688,19 @@ function linkMfeRemoteWithHost(tree, projectName, options) {
|
|
|
673
688
|
}
|
|
674
689
|
}
|
|
675
690
|
function initApplicationGenerator(tree, options) {
|
|
676
|
-
var _a, _b, _c
|
|
691
|
+
var _a, _b, _c;
|
|
677
692
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
678
|
-
(
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
(
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
(
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
(_k = options.generateMain) !== null && _k !== void 0 ? _k : (options.generateMain = false);
|
|
688
|
-
(_l = options.overwrite) !== null && _l !== void 0 ? _l : (options.overwrite = false);
|
|
689
|
-
(_m = options.monolithic) !== null && _m !== void 0 ? _m : (options.monolithic = false);
|
|
690
|
-
options.openApi = options.openApi || options.monolithic;
|
|
691
|
-
(_o = options.authentik) !== null && _o !== void 0 ? _o : (options.authentik = false);
|
|
692
|
-
(_p = options.oauth) !== null && _p !== void 0 ? _p : (options.oauth = false);
|
|
693
|
-
(_q = options.authentication) !== null && _q !== void 0 ? _q : (options.authentication = false);
|
|
694
|
-
options.oauth = options.oauth || options.authentik;
|
|
695
|
-
(_r = options.project) !== null && _r !== void 0 ? _r : (options.project = undefined);
|
|
696
|
-
(_s = options.projects) !== null && _s !== void 0 ? _s : (options.projects = []);
|
|
697
|
-
(_t = options.cleanup) !== null && _t !== void 0 ? _t : (options.cleanup = true);
|
|
698
|
-
(_u = options.host) !== null && _u !== void 0 ? _u : (options.host = undefined);
|
|
693
|
+
if (options.authentik) {
|
|
694
|
+
options.oauth = true;
|
|
695
|
+
}
|
|
696
|
+
if (options.monolithic) {
|
|
697
|
+
options.openApi = true;
|
|
698
|
+
}
|
|
699
|
+
if (options.i18n) {
|
|
700
|
+
(_a = options.languages) !== null && _a !== void 0 ? _a : (options.languages = ['en']);
|
|
701
|
+
}
|
|
699
702
|
if (options.project) {
|
|
703
|
+
(_b = options.projects) !== null && _b !== void 0 ? _b : (options.projects = []);
|
|
700
704
|
(0, utilities_1.CoerceArrayItems)(options.projects, [options.project]);
|
|
701
705
|
}
|
|
702
706
|
if (options.host) {
|
|
@@ -732,6 +736,7 @@ function initApplicationGenerator(tree, options) {
|
|
|
732
736
|
yield (0, workspace_utilities_1.AddPackageJsonDependency)(tree, '@rxap/pipes', 'latest', { soft: true });
|
|
733
737
|
yield (0, workspace_utilities_1.AddPackageJsonDependency)(tree, '@rxap/mixin', 'latest', { soft: true });
|
|
734
738
|
yield (0, workspace_utilities_1.AddPackageJsonDependency)(tree, '@rxap/reflect-metadata', 'latest', { soft: true });
|
|
739
|
+
yield (0, workspace_utilities_1.AddPackageJsonDevDependency)(tree, '@rxap/browser-tailwind', 'latest', { soft: true, withoutNonRxapPeerDependencies: false });
|
|
735
740
|
const angularVersion = '~16.2.0';
|
|
736
741
|
// must always be added as some rxap components use the i18n tag
|
|
737
742
|
yield (0, workspace_utilities_1.AddPackageJsonDependency)(tree, '@angular/localize', angularVersion, { soft: true });
|
|
@@ -803,7 +808,7 @@ function initApplicationGenerator(tree, options) {
|
|
|
803
808
|
if (!tree.exists('shared/angular/assets/custom.svg')) {
|
|
804
809
|
tree.write('shared/angular/assets/custom.svg', '<svg></svg>');
|
|
805
810
|
}
|
|
806
|
-
if (options.i18n) {
|
|
811
|
+
if (options.i18n && !options.skipDocker) {
|
|
807
812
|
let dockerfileContent = tree.read('shared/angular/Dockerfile', 'utf-8');
|
|
808
813
|
dockerfileContent = dockerfileContent.replace('registry.gitlab.com/rxap/docker/nginx:', 'registry.gitlab.com/rxap/docker/i18n-nginx:');
|
|
809
814
|
tree.write('shared/angular/Dockerfile', dockerfileContent);
|
|
@@ -831,14 +836,14 @@ function initApplicationGenerator(tree, options) {
|
|
|
831
836
|
console.log(`init angular application project: ${projectName}`);
|
|
832
837
|
const sourceRoot = (0, workspace_utilities_1.GetProjectSourceRoot)(tree, projectName);
|
|
833
838
|
(0, plugin_application_1.ApplicationInitProject)(tree, projectName, project, options);
|
|
834
|
-
if (options.overwrite) {
|
|
835
|
-
(0, devkit_1.generateFiles)(tree, (0, path_1.join)(__dirname, 'files', 'root'), sourceRoot, Object.assign(Object.assign({}, options), { relativePathToWorkspaceRoot: (0, path_1.relative)(sourceRoot, ''), name: projectName.replace(/^user-interface-/, ''), classify: utilities_1.classify, prefix: (0, workspace_utilities_1.GetProjectPrefix)(tree, projectName, 'rxap') }));
|
|
839
|
+
if (options.overwrite || !((_c = tree.read((0, path_1.join)(sourceRoot, 'styles.scss'), 'utf-8')) === null || _c === void 0 ? void 0 : _c.match(/@use ".+\/shared\/angular\/styles";/))) {
|
|
840
|
+
(0, devkit_1.generateFiles)(tree, (0, path_1.join)(__dirname, 'files', 'root'), sourceRoot, Object.assign(Object.assign({ serviceWorker: false }, options), { relativePathToWorkspaceRoot: (0, path_1.relative)(sourceRoot, ''), name: projectName.replace(/^user-interface-/, ''), classify: utilities_1.classify, prefix: (0, workspace_utilities_1.GetProjectPrefix)(tree, projectName, 'rxap') }));
|
|
836
841
|
}
|
|
837
842
|
updateProjectTargets(project, options);
|
|
838
843
|
updateTags(project, options);
|
|
839
844
|
updateGitIgnore(project, tree, options);
|
|
840
845
|
updateTsConfig(tree, projectName);
|
|
841
|
-
if (options.cleanup) {
|
|
846
|
+
if (options.cleanup || options.coerce) {
|
|
842
847
|
cleanup(tree, projectName, options);
|
|
843
848
|
}
|
|
844
849
|
coerceEnvironmentFiles(tree, Object.assign(Object.assign({}, options), { project: projectName }));
|
|
@@ -992,6 +997,7 @@ function initApplicationGenerator(tree, options) {
|
|
|
992
997
|
target: (0, path_1.join)(sourceRoot, 'assets'),
|
|
993
998
|
overwrite: options.overwrite,
|
|
994
999
|
});
|
|
1000
|
+
(0, coerce_test_setup_1.coerceTestSetup)(tree, projectName);
|
|
995
1001
|
// apply changes to the project configuration
|
|
996
1002
|
(0, devkit_1.updateProjectConfiguration)(tree, projectName, project);
|
|
997
1003
|
}
|
|
@@ -999,7 +1005,10 @@ function initApplicationGenerator(tree, options) {
|
|
|
999
1005
|
if (options.localazy) {
|
|
1000
1006
|
yield (0, plugin_localazy_1.LocalazyGitlabCiGenerator)(tree, {});
|
|
1001
1007
|
}
|
|
1002
|
-
|
|
1008
|
+
(0, plugin_gitlab_ci_1.GenerateGitlabCi)(tree, {});
|
|
1009
|
+
if (!options.skipFormat) {
|
|
1010
|
+
yield (0, devkit_1.formatFiles)(tree);
|
|
1011
|
+
}
|
|
1003
1012
|
});
|
|
1004
1013
|
}
|
|
1005
1014
|
exports.initApplicationGenerator = initApplicationGenerator;
|