@rxap/plugin-library 16.0.0-dev.9 → 16.0.1-dev.0
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 +277 -0
- package/LICENSE.md +621 -0
- package/README.md +71 -1
- package/generators.json +52 -0
- package/package.json +68 -50
- package/src/executors/check-version/executor.js +7 -2
- package/src/executors/check-version/executor.js.map +1 -1
- package/src/executors/readme/executor.js +124 -66
- package/src/executors/readme/executor.js.map +1 -1
- package/src/executors/run-generator/executor.d.ts +1 -1
- package/src/executors/run-generator/executor.js +69 -9
- package/src/executors/run-generator/executor.js.map +1 -1
- package/src/executors/run-generator/schema.d.ts +1 -0
- package/src/executors/run-generator/schema.json +4 -0
- package/src/generators/expose-as-schematic/generator.d.ts +4 -0
- package/src/generators/expose-as-schematic/generator.js +44 -0
- package/src/generators/expose-as-schematic/generator.js.map +1 -0
- package/src/generators/expose-as-schematic/index.d.ts +2 -0
- package/src/generators/expose-as-schematic/index.js +8 -0
- package/src/generators/expose-as-schematic/index.js.map +1 -0
- package/src/generators/expose-as-schematic/schema.d.ts +3 -0
- package/src/generators/expose-as-schematic/schema.json +16 -0
- package/src/generators/fix-dependencies/generator.js +39 -103
- package/src/generators/fix-dependencies/generator.js.map +1 -1
- package/src/generators/fix-dependencies/index.d.ts +2 -0
- package/src/generators/fix-dependencies/index.js +8 -0
- package/src/generators/fix-dependencies/index.js.map +1 -0
- package/src/generators/index-export/generator.js +13 -4
- package/src/generators/index-export/generator.js.map +1 -1
- package/src/generators/index-export/index.d.ts +2 -0
- package/src/generators/index-export/index.js +8 -0
- package/src/generators/index-export/index.js.map +1 -0
- package/src/generators/init/generator.js +52 -116
- package/src/generators/init/generator.js.map +1 -1
- package/src/generators/init/index.d.ts +2 -0
- package/src/generators/init/index.js +8 -0
- package/src/generators/init/index.js.map +1 -0
- package/src/generators/init/schema.d.ts +2 -0
- package/src/generators/init/schema.json +10 -0
- package/src/generators/init-buildable/generator.d.ts +4 -0
- package/src/generators/init-buildable/generator.js +45 -0
- package/src/generators/init-buildable/generator.js.map +1 -0
- package/src/generators/init-buildable/index.d.ts +2 -0
- package/src/generators/init-buildable/index.js +8 -0
- package/src/generators/init-buildable/index.js.map +1 -0
- package/src/generators/init-buildable/schema.d.ts +5 -0
- package/src/generators/init-buildable/schema.json +26 -0
- package/src/generators/init-plugin/generator.js +36 -20
- package/src/generators/init-plugin/generator.js.map +1 -1
- package/src/generators/init-plugin/index.d.ts +2 -0
- package/src/generators/init-plugin/index.js +8 -0
- package/src/generators/init-plugin/index.js.map +1 -0
- package/src/generators/init-plugin/schema.d.ts +2 -0
- package/src/generators/init-plugin/schema.json +10 -0
- package/src/generators/init-publishable/generator.d.ts +4 -0
- package/src/generators/init-publishable/generator.js +126 -0
- package/src/generators/init-publishable/generator.js.map +1 -0
- package/src/generators/init-publishable/index.d.ts +2 -0
- package/src/generators/init-publishable/index.js +8 -0
- package/src/generators/init-publishable/index.js.map +1 -0
- package/src/generators/init-publishable/schema.d.ts +5 -0
- package/src/generators/init-publishable/schema.json +26 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +3 -1
- package/src/index.js.map +1 -1
- /package/src/generators/{init → init-publishable}/files/README.md.handlebars +0 -0
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ yarn add @rxap/plugin-library
|
|
|
19
19
|
```
|
|
20
20
|
**Install peer dependencies:**
|
|
21
21
|
```bash
|
|
22
|
-
yarn add @nx/devkit@^16.5.0 @rxap/generator-ts-morph@^1.0.1
|
|
22
|
+
yarn add @nx/devkit@^16.5.0 @rxap/generator-ts-morph@^1.0.1 @rxap/generator-utilities@^1.1.0 @rxap/node-utilities@^1.1.0 @rxap/plugin-angular@^16.1.0 @rxap/plugin-nestjs@^16.1.0 @rxap/plugin-utilities@^16.1.0 @rxap/ts-morph@^1.0.1 @rxap/utilities@^16.0.0 @rxap/workspace-utilities@^16.0.1 handlebars@^4.7.7 nx@^16.5.0 semver@^7.5.3 ts-morph@^18.0.0 tslib@2.6.2
|
|
23
23
|
```
|
|
24
24
|
**Execute the init generator:**
|
|
25
25
|
```bash
|
|
@@ -54,6 +54,76 @@ yarn nx g @rxap/plugin-library:index-export
|
|
|
54
54
|
```bash
|
|
55
55
|
yarn nx g @rxap/plugin-library:init-plugin
|
|
56
56
|
```
|
|
57
|
+
|
|
58
|
+
## init-buildable
|
|
59
|
+
> init-buildable generator
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
yarn nx g @rxap/plugin-library:init-buildable
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## init-publishable
|
|
66
|
+
> init-publishable generator
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
yarn nx g @rxap/plugin-library:init-publishable
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## expose-as-schematic
|
|
73
|
+
> expose-as-schematic generator
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
yarn nx g @rxap/plugin-library:expose-as-schematic
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## init
|
|
80
|
+
> Create and update configurations to use rxap package publish concept
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
yarn nx g @rxap/plugin-library:init
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## fix-dependencies
|
|
87
|
+
> Adds missing dependencies and removes redudant dependencies of a project
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
yarn nx g @rxap/plugin-library:fix-dependencies
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## index-export
|
|
94
|
+
> Generate index exports for each directory and in the src root
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
yarn nx g @rxap/plugin-library:index-export
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## init-plugin
|
|
101
|
+
> init-plugin generator
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
yarn nx g @rxap/plugin-library:init-plugin
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## init-buildable
|
|
108
|
+
> init-buildable generator
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
yarn nx g @rxap/plugin-library:init-buildable
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## init-publishable
|
|
115
|
+
> init-publishable generator
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
yarn nx g @rxap/plugin-library:init-publishable
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## expose-as-schematic
|
|
122
|
+
> expose-as-schematic generator
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
yarn nx g @rxap/plugin-library:expose-as-schematic
|
|
126
|
+
```
|
|
57
127
|
# Executors
|
|
58
128
|
|
|
59
129
|
## update-dependencies
|
package/generators.json
CHANGED
|
@@ -19,6 +19,58 @@
|
|
|
19
19
|
"factory": "./src/generators/init-plugin/generator",
|
|
20
20
|
"schema": "./src/generators/init-plugin/schema.json",
|
|
21
21
|
"description": "init-plugin generator"
|
|
22
|
+
},
|
|
23
|
+
"init-buildable": {
|
|
24
|
+
"factory": "./src/generators/init-buildable/generator",
|
|
25
|
+
"schema": "./src/generators/init-buildable/schema.json",
|
|
26
|
+
"description": "init-buildable generator"
|
|
27
|
+
},
|
|
28
|
+
"init-publishable": {
|
|
29
|
+
"factory": "./src/generators/init-publishable/generator",
|
|
30
|
+
"schema": "./src/generators/init-publishable/schema.json",
|
|
31
|
+
"description": "init-publishable generator"
|
|
32
|
+
},
|
|
33
|
+
"expose-as-schematic": {
|
|
34
|
+
"factory": "./src/generators/expose-as-schematic/generator",
|
|
35
|
+
"schema": "./src/generators/expose-as-schematic/schema.json",
|
|
36
|
+
"description": "expose-as-schematic generator"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"schematics": {
|
|
40
|
+
"init": {
|
|
41
|
+
"factory": "./src/generators/init/index",
|
|
42
|
+
"schema": "./src/generators/init/schema.json",
|
|
43
|
+
"description": "Create and update configurations to use rxap package publish concept"
|
|
44
|
+
},
|
|
45
|
+
"fix-dependencies": {
|
|
46
|
+
"factory": "./src/generators/fix-dependencies/index",
|
|
47
|
+
"schema": "./src/generators/fix-dependencies/schema.json",
|
|
48
|
+
"description": "Adds missing dependencies and removes redudant dependencies of a project"
|
|
49
|
+
},
|
|
50
|
+
"index-export": {
|
|
51
|
+
"factory": "./src/generators/index-export/index",
|
|
52
|
+
"schema": "./src/generators/index-export/schema.json",
|
|
53
|
+
"description": "Generate index exports for each directory and in the src root"
|
|
54
|
+
},
|
|
55
|
+
"init-plugin": {
|
|
56
|
+
"factory": "./src/generators/init-plugin/index",
|
|
57
|
+
"schema": "./src/generators/init-plugin/schema.json",
|
|
58
|
+
"description": "init-plugin generator"
|
|
59
|
+
},
|
|
60
|
+
"init-buildable": {
|
|
61
|
+
"factory": "./src/generators/init-buildable/index",
|
|
62
|
+
"schema": "./src/generators/init-buildable/schema.json",
|
|
63
|
+
"description": "init-buildable generator"
|
|
64
|
+
},
|
|
65
|
+
"init-publishable": {
|
|
66
|
+
"factory": "./src/generators/init-publishable/index",
|
|
67
|
+
"schema": "./src/generators/init-publishable/schema.json",
|
|
68
|
+
"description": "init-publishable generator"
|
|
69
|
+
},
|
|
70
|
+
"expose-as-schematic": {
|
|
71
|
+
"factory": "./src/generators/expose-as-schematic/index",
|
|
72
|
+
"schema": "./src/generators/expose-as-schematic/schema.json",
|
|
73
|
+
"description": "expose-as-schematic generator"
|
|
22
74
|
}
|
|
23
75
|
}
|
|
24
76
|
}
|
package/package.json
CHANGED
|
@@ -1,89 +1,107 @@
|
|
|
1
1
|
{
|
|
2
|
+
"version": "16.0.1-dev.0",
|
|
2
3
|
"name": "@rxap/plugin-library",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
4
|
+
"license": "GPL-3.0-or-later",
|
|
5
|
+
"dependencies": {
|
|
6
|
+
"@apidevtools/json-schema-ref-parser": "9.0.9",
|
|
7
|
+
"ignore": "5.2.4",
|
|
8
|
+
"process": "0.11.10",
|
|
9
|
+
"tslib": "2.6.2",
|
|
10
|
+
"yaml": "2.3.1"
|
|
11
|
+
},
|
|
12
|
+
"peerDependencies": {
|
|
13
|
+
"@nx/devkit": "^16.5.0",
|
|
14
|
+
"@rxap/generator-ts-morph": "^1.0.1",
|
|
15
|
+
"@rxap/generator-utilities": "^1.1.0",
|
|
16
|
+
"@rxap/node-utilities": "^1.1.0",
|
|
17
|
+
"@rxap/plugin-angular": "^16.1.0",
|
|
18
|
+
"@rxap/plugin-nestjs": "^16.1.0",
|
|
19
|
+
"@rxap/plugin-utilities": "^16.1.0",
|
|
20
|
+
"@rxap/ts-morph": "^1.0.1",
|
|
21
|
+
"@rxap/utilities": "^16.0.0",
|
|
22
|
+
"@rxap/workspace-utilities": "^16.0.1",
|
|
23
|
+
"handlebars": "^4.7.7",
|
|
24
|
+
"nx": "^16.5.0",
|
|
25
|
+
"semver": "^7.5.3",
|
|
26
|
+
"ts-morph": "^18.0.0",
|
|
27
|
+
"tslib": "2.6.2",
|
|
28
|
+
"@rxap/plugin-localazy": "16.1.0",
|
|
29
|
+
"@rxap/workspace-ts-morph": "16.0.1"
|
|
30
|
+
},
|
|
31
|
+
"author": {
|
|
32
|
+
"name": "Merzough Münker",
|
|
33
|
+
"email": "mmuenker@digitaix.com"
|
|
34
|
+
},
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://gitlab.com/rxap/packages/-/issues",
|
|
37
|
+
"email": "incoming+rxap-packages-14898188-issue-@incoming.gitlab.com"
|
|
38
|
+
},
|
|
5
39
|
"executors": "./executors.json",
|
|
6
40
|
"generators": "./generators.json",
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
41
|
+
"homepage": "https:/gitlab.com/rxap/packages/packages/plugin/library",
|
|
42
|
+
"keywords": [
|
|
43
|
+
"library",
|
|
44
|
+
"packages",
|
|
45
|
+
"plugin",
|
|
46
|
+
"plugin-library",
|
|
47
|
+
"rxap"
|
|
48
|
+
],
|
|
11
49
|
"nx-migrations": {
|
|
12
50
|
"packageGroup": [
|
|
13
51
|
{
|
|
14
52
|
"package": "@rxap/generator-ts-morph",
|
|
15
|
-
"version": "1.0.1
|
|
53
|
+
"version": "1.0.1"
|
|
16
54
|
},
|
|
17
55
|
{
|
|
18
56
|
"package": "@rxap/generator-utilities",
|
|
19
|
-
"version": "1.
|
|
57
|
+
"version": "1.1.0"
|
|
20
58
|
},
|
|
21
59
|
{
|
|
22
60
|
"package": "@rxap/node-utilities",
|
|
23
|
-
"version": "1.
|
|
61
|
+
"version": "1.1.0"
|
|
24
62
|
},
|
|
25
63
|
{
|
|
26
64
|
"package": "@rxap/plugin-angular",
|
|
27
|
-
"version": "16.1.0
|
|
65
|
+
"version": "16.1.0"
|
|
28
66
|
},
|
|
29
67
|
{
|
|
30
68
|
"package": "@rxap/plugin-nestjs",
|
|
31
|
-
"version": "16.1.0
|
|
69
|
+
"version": "16.1.0"
|
|
32
70
|
},
|
|
33
71
|
{
|
|
34
72
|
"package": "@rxap/plugin-utilities",
|
|
35
|
-
"version": "16.1.0
|
|
73
|
+
"version": "16.1.0"
|
|
36
74
|
},
|
|
37
75
|
{
|
|
38
76
|
"package": "@rxap/schematics-utilities",
|
|
39
77
|
"version": "16.0.0-dev.4"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"package": "@rxap/ts-morph",
|
|
81
|
+
"version": "1.0.1"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"package": "@rxap/utilities",
|
|
85
|
+
"version": "16.0.0"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"package": "@rxap/workspace-utilities",
|
|
89
|
+
"version": "16.0.1"
|
|
40
90
|
}
|
|
41
91
|
]
|
|
42
92
|
},
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"packages"
|
|
46
|
-
"plugin",
|
|
47
|
-
"library"
|
|
48
|
-
],
|
|
49
|
-
"homepage": "https:/gitlab.com/rxap/packages/packages/plugin/library",
|
|
50
|
-
"bugs": {
|
|
51
|
-
"url": "https://gitlab.com/rxap/packages/-/issues",
|
|
52
|
-
"email": "incoming+rxap-packages-14898188-issue-@incoming.gitlab.com"
|
|
93
|
+
"publishConfig": {
|
|
94
|
+
"access": "public",
|
|
95
|
+
"directory": "../../../dist/packages/plugin/library"
|
|
53
96
|
},
|
|
54
|
-
"license": "GPL-3.0-or-later",
|
|
55
97
|
"repository": {
|
|
56
98
|
"type": "git",
|
|
57
99
|
"url": "https://gitlab.com/rxap/packages.git",
|
|
58
100
|
"directory": "packages/plugin/library"
|
|
59
101
|
},
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
"dependencies": {
|
|
65
|
-
"handlebars": "4.7.7",
|
|
66
|
-
"ignore": "^5.2.4",
|
|
67
|
-
"tslib": "2.5.3"
|
|
68
|
-
},
|
|
69
|
-
"peerDependencies": {
|
|
70
|
-
"@nx/devkit": "^16.5.0",
|
|
71
|
-
"@rxap/generator-ts-morph": "^1.0.1-dev.2",
|
|
72
|
-
"@rxap/generator-utilities": "^1.0.1-dev.2",
|
|
73
|
-
"@rxap/node-utilities": "^1.0.1-dev.2",
|
|
74
|
-
"@rxap/plugin-angular": "^16.1.0-dev.0",
|
|
75
|
-
"@rxap/plugin-nestjs": "^16.1.0-dev.0",
|
|
76
|
-
"@rxap/plugin-utilities": "^16.1.0-dev.0",
|
|
77
|
-
"nx": "^16.5.0",
|
|
78
|
-
"semver": "^7.3.5",
|
|
79
|
-
"ts-morph": "^18.0.0",
|
|
80
|
-
"@rxap/schematics-ts-morph": "16.0.0-dev.5",
|
|
81
|
-
"@rxap/schematics-utilities": "16.0.0-dev.6",
|
|
82
|
-
"@rxap/utilities": "16.0.0-dev.4",
|
|
83
|
-
"@rxap/workspace-ts-morph": "0.0.2-dev.0",
|
|
84
|
-
"@rxap/workspace-utilities": "0.1.0-dev.0"
|
|
85
|
-
},
|
|
86
|
-
"gitHead": "6ee014f9d4efe0f609d017905912c818ff61002b",
|
|
102
|
+
"schematics": "./generators.json",
|
|
103
|
+
"type": "commonjs",
|
|
104
|
+
"gitHead": "8f77d392776e5d09847a916b6ec2be509d678770",
|
|
87
105
|
"main": "./src/index.js",
|
|
88
106
|
"types": "./src/index.d.ts"
|
|
89
107
|
}
|
|
@@ -8,14 +8,15 @@ function runExecutor(options, context) {
|
|
|
8
8
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
9
9
|
console.log('Executor ran for CheckVersion', options);
|
|
10
10
|
const projectJson = (0, plugin_utilities_1.readPackageJsonForProject)(context);
|
|
11
|
-
const rootPackageJson = (0, plugin_utilities_1.readPackageJsonForProject)(context, '
|
|
12
|
-
|
|
11
|
+
const rootPackageJson = (0, plugin_utilities_1.readPackageJsonForProject)(context, 'workspace');
|
|
12
|
+
let targetVersion = (_a = rootPackageJson.devDependencies[options.packageName]) !== null && _a !== void 0 ? _a : rootPackageJson.dependencies[options.packageName];
|
|
13
13
|
if (!targetVersion) {
|
|
14
14
|
console.error(`The package ${options.packageName} is not installed in the root package.json`);
|
|
15
15
|
return {
|
|
16
16
|
success: false,
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
+
targetVersion = targetVersion.replace(/^[~^]/, '');
|
|
19
20
|
console.log(`Current '${options.packageName}' version: ${targetVersion}`);
|
|
20
21
|
console.log(`Project version: ${projectJson.version}`);
|
|
21
22
|
const version = (0, semver_1.parse)(targetVersion);
|
|
@@ -23,6 +24,10 @@ function runExecutor(options, context) {
|
|
|
23
24
|
const normalizedVersion = projectJson.version.replace(/-.*$/, '');
|
|
24
25
|
if (!(0, semver_1.satisfies)(normalizedVersion, versionRange)) {
|
|
25
26
|
console.error(`The project version '${projectJson.version}' normalized '${normalizedVersion}' is not compatible with the '${options.packageName}' version '${targetVersion}' with the range '${versionRange}'`);
|
|
27
|
+
if (process.env.WORKSPACE_UPGRADE) {
|
|
28
|
+
console.warn('Detecting workspace upgrade mode');
|
|
29
|
+
return { success: true };
|
|
30
|
+
}
|
|
26
31
|
return {
|
|
27
32
|
success: false,
|
|
28
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/library/src/executors/check-version/executor.ts"],"names":[],"mappings":";;;AACA,6DAAmE;AACnE,mCAGgB;AAGhB,SAA8B,WAAW,CACvC,OAAmC,EACnC,OAAwB;;;QAExB,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;QAEtD,MAAM,WAAW,GAAG,IAAA,4CAAyB,EAAC,OAAO,CAAC,CAAC;QACvD,MAAM,eAAe,GAAG,IAAA,4CAAyB,EAAC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/library/src/executors/check-version/executor.ts"],"names":[],"mappings":";;;AACA,6DAAmE;AACnE,mCAGgB;AAGhB,SAA8B,WAAW,CACvC,OAAmC,EACnC,OAAwB;;;QAExB,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;QAEtD,MAAM,WAAW,GAAG,IAAA,4CAAyB,EAAC,OAAO,CAAC,CAAC;QACvD,MAAM,eAAe,GAAG,IAAA,4CAAyB,EAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QAExE,IAAI,aAAa,GAAG,MAAA,eAAe,CAAC,eAAe,CAAC,OAAO,CAAC,WAAW,CAAC,mCACtE,eAAe,CAAC,YAAY,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAEpD,IAAI,CAAC,aAAa,EAAE;YAClB,OAAO,CAAC,KAAK,CAAC,eAAgB,OAAO,CAAC,WAAY,4CAA4C,CAAC,CAAC;YAChG,OAAO;gBACL,OAAO,EAAE,KAAK;aACf,CAAC;SACH;QAED,aAAa,GAAG,aAAa,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QAEnD,OAAO,CAAC,GAAG,CAAC,YAAa,OAAO,CAAC,WAAY,cAAe,aAAc,EAAE,CAAC,CAAC;QAC9E,OAAO,CAAC,GAAG,CAAC,oBAAqB,WAAW,CAAC,OAAQ,EAAE,CAAC,CAAC;QAEzD,MAAM,OAAO,GAAG,IAAA,cAAK,EAAC,aAAa,CAAC,CAAC;QAErC,MAAM,YAAY,GAAG,KAAM,OAAO,CAAC,KAAM,EAAE,CAAC;QAE5C,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAElE,IAAI,CAAC,IAAA,kBAAS,EAAC,iBAAiB,EAAE,YAAY,CAAC,EAAE;YAC/C,OAAO,CAAC,KAAK,CAAC,wBAAyB,WAAW,CAAC,OAAQ,iBAAkB,iBAAkB,iCAAkC,OAAO,CAAC,WAAY,cAAe,aAAc,qBAAsB,YAAa,GAAG,CAAC,CAAC;YAC1N,IAAI,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE;gBACjC,OAAO,CAAC,IAAI,CAAC,kCAAkC,CAAC,CAAC;gBACjD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;aAC1B;YACD,OAAO;gBACL,OAAO,EAAE,KAAK;aACf,CAAC;SACH;QAED,OAAO;YACL,OAAO,EAAE,IAAI;SACd,CAAC;;CACH;AA5CD,8BA4CC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
const json_schema_ref_parser_1 = tslib_1.__importDefault(require("@apidevtools/json-schema-ref-parser"));
|
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
|
5
6
|
const plugin_utilities_1 = require("@rxap/plugin-utilities");
|
|
7
|
+
const utilities_1 = require("@rxap/utilities");
|
|
6
8
|
const Handlebars = tslib_1.__importStar(require("handlebars"));
|
|
7
9
|
const path_1 = require("path");
|
|
8
10
|
function readGetStartedFile(context) {
|
|
@@ -16,79 +18,125 @@ function getTemplate(context) {
|
|
|
16
18
|
const readmeTemplateFile = (0, plugin_utilities_1.readFileFromProjectRoot)(context, 'README.md.handlebars', true);
|
|
17
19
|
return Handlebars.compile(readmeTemplateFile);
|
|
18
20
|
}
|
|
21
|
+
function normalizeSchema(context, schema, basePath) {
|
|
22
|
+
var _a, _b, _c;
|
|
23
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
schema = yield json_schema_ref_parser_1.default.bundle(schema, {
|
|
25
|
+
resolve: {
|
|
26
|
+
external: true,
|
|
27
|
+
file: {
|
|
28
|
+
canRead: /schema\.json$/,
|
|
29
|
+
read(file) {
|
|
30
|
+
// fix the file url. The url is already resolved relative the current cwd.
|
|
31
|
+
// this results in an incorrect path. Eg. $ref: ../init-application/schema.json
|
|
32
|
+
// will be resolved to file.url = /<project-root>/../init-application/schema.json
|
|
33
|
+
// A workaround is need to fix the url to be resolved relative to the schema.json
|
|
34
|
+
// file in the schematic/generator/executor/builder folder
|
|
35
|
+
const restoredRef = (0, path_1.relative)(context.root, file.url);
|
|
36
|
+
const schemaFilePath = (0, path_1.join)(basePath, restoredRef);
|
|
37
|
+
return (0, plugin_utilities_1.readFileFromProjectRoot)(context, schemaFilePath, true);
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
if (schema.allOf) {
|
|
43
|
+
schema.properties = {};
|
|
44
|
+
schema.required = [];
|
|
45
|
+
for (const item of schema.allOf) {
|
|
46
|
+
if (typeof item === 'object') {
|
|
47
|
+
schema.properties = (0, utilities_1.deepMerge)(schema.properties, (_a = item.properties) !== null && _a !== void 0 ? _a : {});
|
|
48
|
+
schema.required = [
|
|
49
|
+
...schema.required, ...(typeof item.required !== 'boolean' ? (_b = item.required) !== null && _b !== void 0 ? _b : [] : []),
|
|
50
|
+
].filter((0, utilities_1.unique)());
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
// ensure the property 'properties' is defined
|
|
55
|
+
(_c = schema.properties) !== null && _c !== void 0 ? _c : (schema.properties = {});
|
|
56
|
+
return schema;
|
|
57
|
+
});
|
|
58
|
+
}
|
|
19
59
|
function getSchematics(context) {
|
|
20
60
|
var _a;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
61
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
const { schematics } = (0, plugin_utilities_1.readPackageJsonForProject)(context);
|
|
63
|
+
if (!schematics) {
|
|
64
|
+
return [];
|
|
65
|
+
}
|
|
66
|
+
const projectRoot = (0, plugin_utilities_1.GetProjectRoot)(context);
|
|
67
|
+
const collectionJson = (0, devkit_1.readJsonFile)((0, path_1.join)(context.root, projectRoot, schematics));
|
|
68
|
+
const schematicList = [];
|
|
69
|
+
for (const [schematic, config] of Object.entries((_a = collectionJson.schematics) !== null && _a !== void 0 ? _a : {})) {
|
|
70
|
+
schematicList.push({
|
|
71
|
+
name: schematic,
|
|
72
|
+
description: config.description,
|
|
73
|
+
schema: yield normalizeSchema(context, (0, devkit_1.readJsonFile)((0, path_1.join)(context.root, projectRoot, config.schema)), (0, path_1.dirname)(config.schema)),
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
return schematicList;
|
|
77
|
+
});
|
|
36
78
|
}
|
|
37
79
|
function getGenerators(context) {
|
|
38
80
|
var _a;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
81
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
const { generators } = (0, plugin_utilities_1.readPackageJsonForProject)(context);
|
|
83
|
+
if (!generators) {
|
|
84
|
+
return [];
|
|
85
|
+
}
|
|
86
|
+
const projectRoot = (0, plugin_utilities_1.GetProjectRoot)(context);
|
|
87
|
+
const collectionJson = (0, devkit_1.readJsonFile)((0, path_1.join)(context.root, projectRoot, generators));
|
|
88
|
+
const generatorList = [];
|
|
89
|
+
for (const [generator, config] of Object.entries((_a = collectionJson.generators) !== null && _a !== void 0 ? _a : {})) {
|
|
90
|
+
generatorList.push({
|
|
91
|
+
name: generator,
|
|
92
|
+
description: config.description,
|
|
93
|
+
schema: yield normalizeSchema(context, (0, devkit_1.readJsonFile)((0, path_1.join)(context.root, projectRoot, config.schema)), (0, path_1.dirname)(config.schema)),
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
const schematicList = yield getSchematics(context);
|
|
97
|
+
return [...generatorList, ...schematicList];
|
|
98
|
+
});
|
|
55
99
|
}
|
|
56
100
|
function getBuilders(context) {
|
|
57
101
|
var _a;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
102
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
const { builders } = (0, plugin_utilities_1.readPackageJsonForProject)(context);
|
|
104
|
+
if (!builders) {
|
|
105
|
+
return [];
|
|
106
|
+
}
|
|
107
|
+
const projectRoot = (0, plugin_utilities_1.GetProjectRoot)(context);
|
|
108
|
+
const buildersJson = (0, devkit_1.readJsonFile)((0, path_1.join)(context.root, projectRoot, builders));
|
|
109
|
+
const builderList = [];
|
|
110
|
+
for (const [builder, config] of Object.entries((_a = buildersJson.builders) !== null && _a !== void 0 ? _a : {})) {
|
|
111
|
+
builderList.push({
|
|
112
|
+
name: builder,
|
|
113
|
+
description: config.description,
|
|
114
|
+
schema: yield normalizeSchema(context, (0, devkit_1.readJsonFile)((0, path_1.join)(context.root, projectRoot, config.schema)), (0, path_1.dirname)(config.schema)),
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
return builderList;
|
|
118
|
+
});
|
|
73
119
|
}
|
|
74
120
|
function getExecutors(context) {
|
|
75
121
|
var _a;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
122
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
const { executors } = (0, plugin_utilities_1.readPackageJsonForProject)(context);
|
|
124
|
+
if (!executors) {
|
|
125
|
+
return [];
|
|
126
|
+
}
|
|
127
|
+
const projectRoot = (0, plugin_utilities_1.GetProjectRoot)(context);
|
|
128
|
+
const executorsJson = (0, devkit_1.readJsonFile)((0, path_1.join)(context.root, projectRoot, executors));
|
|
129
|
+
const executorList = [];
|
|
130
|
+
for (const [executor, config] of Object.entries((_a = executorsJson.executors) !== null && _a !== void 0 ? _a : {})) {
|
|
131
|
+
executorList.push({
|
|
132
|
+
name: executor,
|
|
133
|
+
description: config.description,
|
|
134
|
+
schema: yield normalizeSchema(context, (0, devkit_1.readJsonFile)((0, path_1.join)(context.root, projectRoot, config.schema)), (0, path_1.dirname)(config.schema)),
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
const builderList = yield getBuilders(context);
|
|
138
|
+
return [...executorList, ...builderList];
|
|
139
|
+
});
|
|
92
140
|
}
|
|
93
141
|
function getPeerDependencyList(context) {
|
|
94
142
|
var _a;
|
|
@@ -113,11 +161,12 @@ function runExecutor(options, context) {
|
|
|
113
161
|
const guidesContent = readGetGuidsFile(context);
|
|
114
162
|
const packageJson = (0, plugin_utilities_1.readPackageJsonForProject)(context);
|
|
115
163
|
const template = getTemplate(context);
|
|
116
|
-
const generatorList = getGenerators(context);
|
|
117
|
-
const executorsList = getExecutors(context);
|
|
164
|
+
const generatorList = yield getGenerators(context);
|
|
165
|
+
const executorsList = yield getExecutors(context);
|
|
118
166
|
const peerDependencyList = getPeerDependencyList(context);
|
|
119
167
|
console.log('Input for README.md template ready');
|
|
120
|
-
|
|
168
|
+
let readme;
|
|
169
|
+
const templateContext = {
|
|
121
170
|
packageJson,
|
|
122
171
|
getStartedContent,
|
|
123
172
|
guidesContent,
|
|
@@ -129,7 +178,16 @@ function runExecutor(options, context) {
|
|
|
129
178
|
hasExecutors: executorsList.length > 0,
|
|
130
179
|
hasInitGenerator: generatorList.find((generator) => generator.name === 'init') !== undefined,
|
|
131
180
|
hasConfigGenerator: generatorList.find((generator) => generator.name === 'config') !== undefined,
|
|
132
|
-
}
|
|
181
|
+
};
|
|
182
|
+
try {
|
|
183
|
+
readme = template(templateContext);
|
|
184
|
+
}
|
|
185
|
+
catch (e) {
|
|
186
|
+
console.error(`Error while generating README.md: ${e.message}`, templateContext);
|
|
187
|
+
return {
|
|
188
|
+
success: false,
|
|
189
|
+
};
|
|
190
|
+
}
|
|
133
191
|
console.log('README.md generated');
|
|
134
192
|
(0, plugin_utilities_1.writeFileToProjectRoot)(context, 'README.md', readme);
|
|
135
193
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/library/src/executors/readme/executor.ts"],"names":[],"mappings":";;;AAAA,uCAGoB;AACpB,6DAKgC;AAChC,+DAAyC;AACzC,+
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/library/src/executors/readme/executor.ts"],"names":[],"mappings":";;;AAAA,yGAA6D;AAC7D,uCAGoB;AACpB,6DAKgC;AAChC,+CAGyB;AACzB,+DAAyC;AACzC,+B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C,IAAA,yCAAsB,EAAC,OAAO,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC;QAErD,OAAO;YACL,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;CAAA;AA/CD,8BA+CC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RunGeneratorExecutorSchema } from './schema';
|
|
2
1
|
import { ExecutorContext } from '@nx/devkit';
|
|
2
|
+
import { RunGeneratorExecutorSchema } from './schema';
|
|
3
3
|
export default function runExecutor(options: RunGeneratorExecutorSchema, context: ExecutorContext): Promise<{
|
|
4
4
|
success: boolean;
|
|
5
5
|
}>;
|