@rxap/plugin-library 20.2.2-dev.2 → 20.3.0-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 +10 -0
- package/README.md +62 -62
- package/package.json +8 -8
- package/src/generators/add-migration/schema.json +16 -11
- package/src/generators/bundle-json-schema/schema.json +2 -1
- package/src/generators/expose-as-schematic/schema.json +6 -2
- package/src/generators/fix-dependencies/schema.json +15 -8
- package/src/generators/index-export/schema.json +10 -4
- package/src/generators/index-json-schema/schema.json +2 -1
- package/src/generators/init/schema.json +15 -9
- package/src/generators/init-buildable/schema.json +10 -5
- package/src/generators/init-plugin/schema.json +10 -5
- package/src/generators/init-preset/schema.json +10 -5
- package/src/generators/init-publishable/schema.json +13 -7
- package/src/generators/init-schematic/schema.json +10 -5
- package/src/generators/init-with-migrations/schema.json +10 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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
|
+
# [20.3.0-dev.0](https://gitlab.com/rxap/packages/compare/@rxap/plugin-library@20.2.2-dev.3...@rxap/plugin-library@20.3.0-dev.0) (2026-01-12)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **schema:** enhance generator schema documentation with descriptions and examples ([0ae4939](https://gitlab.com/rxap/packages/commit/0ae4939d77e3e313ace4a77d8f5dd86c3c918d29))
|
|
11
|
+
|
|
12
|
+
## [20.2.2-dev.3](https://gitlab.com/rxap/packages/compare/@rxap/plugin-library@20.2.2-dev.2...@rxap/plugin-library@20.2.2-dev.3) (2025-09-18)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @rxap/plugin-library
|
|
15
|
+
|
|
6
16
|
## [20.2.2-dev.2](https://gitlab.com/rxap/packages/compare/@rxap/plugin-library@20.2.2-dev.1...@rxap/plugin-library@20.2.2-dev.2) (2025-09-15)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @rxap/plugin-library
|
package/README.md
CHANGED
|
@@ -57,14 +57,14 @@ nx g @rxap/plugin-library:init
|
|
|
57
57
|
|
|
58
58
|
Option | Type | Default | Description
|
|
59
59
|
--- | --- | --- | ---
|
|
60
|
-
project | string | |
|
|
61
|
-
projects | array | |
|
|
62
|
-
skipFormat | boolean | false |
|
|
63
|
-
overwrite | boolean | false | Whether to overwrite existing files
|
|
64
|
-
skipProjects | boolean | false | Whether to skip executing project
|
|
65
|
-
indexExport | boolean | | Whether to add the index-export target to the library
|
|
66
|
-
targets | object | |
|
|
67
|
-
withInitGenerator | boolean | false |
|
|
60
|
+
project | string | | The name of the library project to initialize.
|
|
61
|
+
projects | array | | The list of library projects to initialize.
|
|
62
|
+
skipFormat | boolean | false | Whether to skip formatting files with Prettier after initialization.
|
|
63
|
+
overwrite | boolean | false | Whether to overwrite existing files during initialization.
|
|
64
|
+
skipProjects | boolean | false | Whether to skip executing project-specific initialization logic.
|
|
65
|
+
indexExport | boolean | | Whether to add the 'index-export' target to the library project configuration.
|
|
66
|
+
targets | object | | Configuration for specific project targets.
|
|
67
|
+
withInitGenerator | boolean | false | Whether to generate an 'init' generator within the library itself.
|
|
68
68
|
|
|
69
69
|
## fix-dependencies
|
|
70
70
|
> Adds missing dependencies and removes redudant dependencies of a project
|
|
@@ -75,14 +75,14 @@ nx g @rxap/plugin-library:fix-dependencies
|
|
|
75
75
|
|
|
76
76
|
Option | Type | Default | Description
|
|
77
77
|
--- | --- | --- | ---
|
|
78
|
-
projects | array | |
|
|
79
|
-
reset | boolean | |
|
|
80
|
-
resolve | boolean | |
|
|
81
|
-
resetAll | boolean | |
|
|
82
|
-
strict | boolean | false |
|
|
83
|
-
onlyDependencies | boolean | false |
|
|
84
|
-
dependencies | array | |
|
|
85
|
-
peerDependencies | array | |
|
|
78
|
+
projects | array | | The list of projects to fix dependencies for.
|
|
79
|
+
reset | boolean | | Whether to reset the project's dependencies before fixing them.
|
|
80
|
+
resolve | boolean | | Whether to resolve dependency versions from the workspace root 'package.json'.
|
|
81
|
+
resetAll | boolean | | Whether to reset all project dependencies, including peer dependencies.
|
|
82
|
+
strict | boolean | false | Whether to fail if any required dependency cannot be found in the workspace.
|
|
83
|
+
onlyDependencies | boolean | false | Whether to move all peer dependencies to the regular dependencies section.
|
|
84
|
+
dependencies | array | | A list of package names that should always be added to the 'dependencies' section.
|
|
85
|
+
peerDependencies | array | | A list of package names that should always be added to the 'peerDependencies' section.
|
|
86
86
|
|
|
87
87
|
## index-export
|
|
88
88
|
> Generate index exports for each directory and in the src root
|
|
@@ -93,10 +93,10 @@ nx g @rxap/plugin-library:index-export
|
|
|
93
93
|
|
|
94
94
|
Option | Type | Default | Description
|
|
95
95
|
--- | --- | --- | ---
|
|
96
|
-
projects | array | |
|
|
97
|
-
project | string | |
|
|
98
|
-
generateRootExport | boolean | true |
|
|
99
|
-
additionalEntryPoints | array | |
|
|
96
|
+
projects | array | | The list of projects to generate index exports for.
|
|
97
|
+
project | string | | The name of a single project to generate an index export for.
|
|
98
|
+
generateRootExport | boolean | true | Whether to generate an 'index.ts' file in the source root of the project.
|
|
99
|
+
additionalEntryPoints | array | | A list of additional sub-directory entry points to include in the index export.
|
|
100
100
|
|
|
101
101
|
## init-plugin
|
|
102
102
|
> init-plugin generator
|
|
@@ -107,11 +107,11 @@ nx g @rxap/plugin-library:init-plugin
|
|
|
107
107
|
|
|
108
108
|
Option | Type | Default | Description
|
|
109
109
|
--- | --- | --- | ---
|
|
110
|
-
project | string | |
|
|
111
|
-
projects | array | |
|
|
112
|
-
skipFormat | boolean | false |
|
|
113
|
-
overwrite | boolean | false | Whether to overwrite existing files
|
|
114
|
-
skipProjects | boolean | false | Whether to skip executing project
|
|
110
|
+
project | string | | The name of the project to initialize as an Nx plugin.
|
|
111
|
+
projects | array | | The list of projects to initialize as Nx plugins.
|
|
112
|
+
skipFormat | boolean | false | Whether to skip formatting files with Prettier after initialization.
|
|
113
|
+
overwrite | boolean | false | Whether to overwrite existing files during initialization.
|
|
114
|
+
skipProjects | boolean | false | Whether to skip executing project-specific initialization logic.
|
|
115
115
|
|
|
116
116
|
## init-buildable
|
|
117
117
|
> init-buildable generator
|
|
@@ -122,11 +122,11 @@ nx g @rxap/plugin-library:init-buildable
|
|
|
122
122
|
|
|
123
123
|
Option | Type | Default | Description
|
|
124
124
|
--- | --- | --- | ---
|
|
125
|
-
project | string | |
|
|
126
|
-
projects | array | |
|
|
127
|
-
skipFormat | boolean | false |
|
|
128
|
-
overwrite | boolean | false | Whether to overwrite existing files
|
|
129
|
-
skipProjects | boolean | false | Whether to skip executing project
|
|
125
|
+
project | string | | The name of the buildable library project to initialize.
|
|
126
|
+
projects | array | | The list of buildable library projects to initialize.
|
|
127
|
+
skipFormat | boolean | false | Whether to skip formatting files with Prettier after initialization.
|
|
128
|
+
overwrite | boolean | false | Whether to overwrite existing files during initialization.
|
|
129
|
+
skipProjects | boolean | false | Whether to skip executing project-specific initialization logic.
|
|
130
130
|
|
|
131
131
|
## init-publishable
|
|
132
132
|
> init-publishable generator
|
|
@@ -137,13 +137,13 @@ nx g @rxap/plugin-library:init-publishable
|
|
|
137
137
|
|
|
138
138
|
Option | Type | Default | Description
|
|
139
139
|
--- | --- | --- | ---
|
|
140
|
-
project | string | |
|
|
141
|
-
projects | array | |
|
|
142
|
-
skipFormat | boolean | false |
|
|
143
|
-
overwrite | boolean | false | Whether to overwrite existing files
|
|
144
|
-
skipProjects | boolean | false | Whether to skip executing project
|
|
145
|
-
targets | object | |
|
|
146
|
-
withInitGenerator | boolean | false |
|
|
140
|
+
project | string | | The name of the library project to initialize for publishing.
|
|
141
|
+
projects | array | | The list of library projects to initialize for publishing.
|
|
142
|
+
skipFormat | boolean | false | Whether to skip formatting files with Prettier after initialization.
|
|
143
|
+
overwrite | boolean | false | Whether to overwrite existing files during initialization.
|
|
144
|
+
skipProjects | boolean | false | Whether to skip executing project-specific initialization logic.
|
|
145
|
+
targets | object | | Configuration for specific project targets.
|
|
146
|
+
withInitGenerator | boolean | false | Whether to generate an 'init' generator within the library itself.
|
|
147
147
|
|
|
148
148
|
## expose-as-schematic
|
|
149
149
|
> expose-as-schematic generator
|
|
@@ -154,8 +154,8 @@ nx g @rxap/plugin-library:expose-as-schematic
|
|
|
154
154
|
|
|
155
155
|
Option | Type | Default | Description
|
|
156
156
|
--- | --- | --- | ---
|
|
157
|
-
projects | array | |
|
|
158
|
-
project | string | |
|
|
157
|
+
projects | array | | The list of projects to expose as schematics.
|
|
158
|
+
project | string | | The name of a single project to expose as a schematic.
|
|
159
159
|
|
|
160
160
|
## bundle-json-schema
|
|
161
161
|
> bundle-json-schema generator
|
|
@@ -166,7 +166,7 @@ nx g @rxap/plugin-library:bundle-json-schema
|
|
|
166
166
|
|
|
167
167
|
Option | Type | Default | Description
|
|
168
168
|
--- | --- | --- | ---
|
|
169
|
-
project | string | |
|
|
169
|
+
project | string | | The name of the project whose JSON schemas should be bundled.
|
|
170
170
|
|
|
171
171
|
## index-json-schema
|
|
172
172
|
> index-json-schema generator
|
|
@@ -177,7 +177,7 @@ nx g @rxap/plugin-library:index-json-schema
|
|
|
177
177
|
|
|
178
178
|
Option | Type | Default | Description
|
|
179
179
|
--- | --- | --- | ---
|
|
180
|
-
project | string | |
|
|
180
|
+
project | string | | The name of the project whose JSON schemas should be indexed.
|
|
181
181
|
|
|
182
182
|
## init-with-migrations
|
|
183
183
|
> init-with-migrations generator
|
|
@@ -188,11 +188,11 @@ nx g @rxap/plugin-library:init-with-migrations
|
|
|
188
188
|
|
|
189
189
|
Option | Type | Default | Description
|
|
190
190
|
--- | --- | --- | ---
|
|
191
|
-
project | string | |
|
|
192
|
-
projects | array | |
|
|
193
|
-
skipFormat | boolean | false |
|
|
194
|
-
overwrite | boolean | false | Whether to overwrite existing files
|
|
195
|
-
skipProjects | boolean | false | Whether to skip executing project
|
|
191
|
+
project | string | | The name of the library project to initialize with migrations support.
|
|
192
|
+
projects | array | | The list of library projects to initialize with migrations support.
|
|
193
|
+
skipFormat | boolean | false | Whether to skip formatting files with Prettier after initialization.
|
|
194
|
+
overwrite | boolean | false | Whether to overwrite existing files during initialization.
|
|
195
|
+
skipProjects | boolean | false | Whether to skip executing project-specific initialization logic.
|
|
196
196
|
|
|
197
197
|
## add-migration
|
|
198
198
|
> add-migration generator
|
|
@@ -203,12 +203,12 @@ nx g @rxap/plugin-library:add-migration
|
|
|
203
203
|
|
|
204
204
|
Option | Type | Default | Description
|
|
205
205
|
--- | --- | --- | ---
|
|
206
|
-
project | string | |
|
|
207
|
-
name | string | |
|
|
208
|
-
description | string | |
|
|
209
|
-
packageVersion | string | |
|
|
210
|
-
packageJsonUpdates | boolean | false | Whether
|
|
211
|
-
increment | string | |
|
|
206
|
+
project | string | | The name of the project to add the migration to.
|
|
207
|
+
name | string | | The name of the migration file.
|
|
208
|
+
description | string | | A brief description of what the migration does.
|
|
209
|
+
packageVersion | string | | The package version that triggers this migration.
|
|
210
|
+
packageJsonUpdates | boolean | false | Whether to include 'package.json' dependency updates in the migration.
|
|
211
|
+
increment | string | | The type of version increment for the 'package.json' file.
|
|
212
212
|
|
|
213
213
|
## init-preset
|
|
214
214
|
> init-preset generator
|
|
@@ -219,11 +219,11 @@ nx g @rxap/plugin-library:init-preset
|
|
|
219
219
|
|
|
220
220
|
Option | Type | Default | Description
|
|
221
221
|
--- | --- | --- | ---
|
|
222
|
-
project | string | |
|
|
223
|
-
projects | array | |
|
|
224
|
-
skipFormat | boolean | false |
|
|
225
|
-
overwrite | boolean | false | Whether to overwrite existing files
|
|
226
|
-
skipProjects | boolean | false | Whether to skip executing project
|
|
222
|
+
project | string | | The name of the library project to initialize with a preset.
|
|
223
|
+
projects | array | | The list of library projects to initialize with a preset.
|
|
224
|
+
skipFormat | boolean | false | Whether to skip formatting files with Prettier after initialization.
|
|
225
|
+
overwrite | boolean | false | Whether to overwrite existing files during initialization.
|
|
226
|
+
skipProjects | boolean | false | Whether to skip executing project-specific initialization logic.
|
|
227
227
|
|
|
228
228
|
## init-schematic
|
|
229
229
|
> init-schematic generator
|
|
@@ -234,11 +234,11 @@ nx g @rxap/plugin-library:init-schematic
|
|
|
234
234
|
|
|
235
235
|
Option | Type | Default | Description
|
|
236
236
|
--- | --- | --- | ---
|
|
237
|
-
project | string | |
|
|
238
|
-
projects | array | |
|
|
239
|
-
skipFormat | boolean | false |
|
|
240
|
-
overwrite | boolean | false | Whether to overwrite existing files
|
|
241
|
-
skipProjects | boolean | false | Whether to skip executing project
|
|
237
|
+
project | string | | The name of the project to initialize as a schematic library.
|
|
238
|
+
projects | array | | The list of projects to initialize as schematic libraries.
|
|
239
|
+
skipFormat | boolean | false | Whether to skip formatting files with Prettier after initialization.
|
|
240
|
+
overwrite | boolean | false | Whether to overwrite existing files during initialization.
|
|
241
|
+
skipProjects | boolean | false | Whether to skip executing project-specific initialization logic.
|
|
242
242
|
# Executors
|
|
243
243
|
|
|
244
244
|
## update-dependencies
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "20.
|
|
2
|
+
"version": "20.3.0-dev.0",
|
|
3
3
|
"name": "@rxap/plugin-library",
|
|
4
4
|
"description": "This package provides generators and executors for managing and maintaining Nx plugin libraries. It includes functionality for generating index exports, fixing dependencies, generating JSON schemas, and more. It helps streamline the development process for Nx plugins by automating common tasks and enforcing best practices.\n",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
"@apidevtools/json-schema-ref-parser": "^9.0.9",
|
|
8
8
|
"@nx/devkit": "20.5.0",
|
|
9
9
|
"@nx/plugin": "20.5.0",
|
|
10
|
-
"@rxap/node-utilities": "^1.3.11-dev.
|
|
11
|
-
"@rxap/plugin-utilities": "^20.0.5-dev.
|
|
12
|
-
"@rxap/ts-morph": "^1.6.0-dev.
|
|
13
|
-
"@rxap/utilities": "^16.
|
|
14
|
-
"@rxap/workspace-ts-morph": "^19.1.13-dev.
|
|
15
|
-
"@rxap/workspace-utilities": "^19.8.1-dev.
|
|
10
|
+
"@rxap/node-utilities": "^1.3.11-dev.2",
|
|
11
|
+
"@rxap/plugin-utilities": "^20.0.5-dev.2",
|
|
12
|
+
"@rxap/ts-morph": "^1.6.0-dev.2",
|
|
13
|
+
"@rxap/utilities": "^16.5.0-dev.0",
|
|
14
|
+
"@rxap/workspace-ts-morph": "^19.1.13-dev.3",
|
|
15
|
+
"@rxap/workspace-utilities": "^19.8.1-dev.2",
|
|
16
16
|
"colors": "1.4.0",
|
|
17
17
|
"handlebars": "4.7.8",
|
|
18
18
|
"nx": "20.5.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"schematics": "./generators.json",
|
|
51
51
|
"type": "commonjs",
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "f6923aa9d989b25018f2fcac470963fb1e68049a",
|
|
53
53
|
"exports": {
|
|
54
54
|
"./package.json": "./package.json",
|
|
55
55
|
".": {
|
|
@@ -6,35 +6,40 @@
|
|
|
6
6
|
"properties": {
|
|
7
7
|
"project": {
|
|
8
8
|
"type": "string",
|
|
9
|
-
"description": "
|
|
10
|
-
"x-prompt": "For which project should the migration be created?"
|
|
9
|
+
"description": "The name of the project to add the migration to.",
|
|
10
|
+
"x-prompt": "For which project should the migration be created?",
|
|
11
|
+
"examples": ["my-lib"]
|
|
11
12
|
},
|
|
12
13
|
"name": {
|
|
13
14
|
"type": "string",
|
|
14
|
-
"description": "
|
|
15
|
-
"x-prompt": "What name would you like to use?"
|
|
15
|
+
"description": "The name of the migration file.",
|
|
16
|
+
"x-prompt": "What name would you like to use?",
|
|
17
|
+
"examples": ["fix-styles"]
|
|
16
18
|
},
|
|
17
19
|
"description": {
|
|
18
20
|
"type": "string",
|
|
19
|
-
"description": "
|
|
20
|
-
"x-prompt": "What description would you like to use?"
|
|
21
|
+
"description": "A brief description of what the migration does.",
|
|
22
|
+
"x-prompt": "What description would you like to use?",
|
|
23
|
+
"examples": ["Fixes broken styles in the component library."]
|
|
21
24
|
},
|
|
22
25
|
"packageVersion": {
|
|
23
26
|
"type": "string",
|
|
24
|
-
"description": "
|
|
27
|
+
"description": "The package version that triggers this migration.",
|
|
25
28
|
"x-prompt": "What version would you like to use for the migration?",
|
|
26
|
-
"x-priority": "important"
|
|
29
|
+
"x-priority": "important",
|
|
30
|
+
"examples": ["1.2.3"]
|
|
27
31
|
},
|
|
28
32
|
"packageJsonUpdates": {
|
|
29
33
|
"type": "boolean",
|
|
30
|
-
"description": "Whether
|
|
34
|
+
"description": "Whether to include 'package.json' dependency updates in the migration.",
|
|
31
35
|
"default": false
|
|
32
36
|
},
|
|
33
37
|
"increment": {
|
|
34
38
|
"type": "string",
|
|
35
39
|
"enum": ["major", "minor", "patch"],
|
|
36
|
-
"description": "
|
|
37
|
-
"x-priority": "important"
|
|
40
|
+
"description": "The type of version increment for the 'package.json' file.",
|
|
41
|
+
"x-priority": "important",
|
|
42
|
+
"examples": ["patch"]
|
|
38
43
|
}
|
|
39
44
|
},
|
|
40
45
|
"required": [
|
|
@@ -8,10 +8,14 @@
|
|
|
8
8
|
"type": "array",
|
|
9
9
|
"items": {
|
|
10
10
|
"type": "string"
|
|
11
|
-
}
|
|
11
|
+
},
|
|
12
|
+
"description": "The list of projects to expose as schematics.",
|
|
13
|
+
"examples": [["my-lib", "another-lib"]]
|
|
12
14
|
},
|
|
13
15
|
"project": {
|
|
14
|
-
"type": "string"
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The name of a single project to expose as a schematic.",
|
|
18
|
+
"examples": ["my-lib"]
|
|
15
19
|
}
|
|
16
20
|
},
|
|
17
21
|
"required": []
|
|
@@ -9,41 +9,48 @@
|
|
|
9
9
|
"type": "array",
|
|
10
10
|
"items": {
|
|
11
11
|
"type": "string"
|
|
12
|
-
}
|
|
12
|
+
},
|
|
13
|
+
"description": "The list of projects to fix dependencies for.",
|
|
14
|
+
"examples": [["my-lib", "another-lib"]]
|
|
13
15
|
},
|
|
14
16
|
"reset": {
|
|
15
|
-
"type": "boolean"
|
|
17
|
+
"type": "boolean",
|
|
18
|
+
"description": "Whether to reset the project's dependencies before fixing them."
|
|
16
19
|
},
|
|
17
20
|
"resolve": {
|
|
18
|
-
"type": "boolean"
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"description": "Whether to resolve dependency versions from the workspace root 'package.json'."
|
|
19
23
|
},
|
|
20
24
|
"resetAll": {
|
|
21
25
|
"alias": "resetAll",
|
|
22
|
-
"type": "boolean"
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"description": "Whether to reset all project dependencies, including peer dependencies."
|
|
23
28
|
},
|
|
24
29
|
"strict": {
|
|
25
30
|
"type": "boolean",
|
|
26
31
|
"default": false,
|
|
27
|
-
"description": "
|
|
32
|
+
"description": "Whether to fail if any required dependency cannot be found in the workspace."
|
|
28
33
|
},
|
|
29
34
|
"onlyDependencies": {
|
|
30
35
|
"type": "boolean",
|
|
31
36
|
"default": false,
|
|
32
|
-
"description": "
|
|
37
|
+
"description": "Whether to move all peer dependencies to the regular dependencies section."
|
|
33
38
|
},
|
|
34
39
|
"dependencies": {
|
|
35
40
|
"type": "array",
|
|
36
41
|
"items": {
|
|
37
42
|
"type": "string"
|
|
38
43
|
},
|
|
39
|
-
"description": "
|
|
44
|
+
"description": "A list of package names that should always be added to the 'dependencies' section.",
|
|
45
|
+
"examples": [["lodash", "axios"]]
|
|
40
46
|
},
|
|
41
47
|
"peerDependencies": {
|
|
42
48
|
"type": "array",
|
|
43
49
|
"items": {
|
|
44
50
|
"type": "string"
|
|
45
51
|
},
|
|
46
|
-
"description": "
|
|
52
|
+
"description": "A list of package names that should always be added to the 'peerDependencies' section.",
|
|
53
|
+
"examples": [["react", "react-dom"]]
|
|
47
54
|
}
|
|
48
55
|
},
|
|
49
56
|
"required": []
|
|
@@ -9,21 +9,27 @@
|
|
|
9
9
|
"type": "array",
|
|
10
10
|
"items": {
|
|
11
11
|
"type": "string"
|
|
12
|
-
}
|
|
12
|
+
},
|
|
13
|
+
"description": "The list of projects to generate index exports for.",
|
|
14
|
+
"examples": [["my-lib", "another-lib"]]
|
|
13
15
|
},
|
|
14
16
|
"project": {
|
|
15
|
-
"type": "string"
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "The name of a single project to generate an index export for.",
|
|
19
|
+
"examples": ["my-lib"]
|
|
16
20
|
},
|
|
17
21
|
"generateRootExport": {
|
|
18
22
|
"type": "boolean",
|
|
19
23
|
"default": true,
|
|
20
|
-
"description": "
|
|
24
|
+
"description": "Whether to generate an 'index.ts' file in the source root of the project."
|
|
21
25
|
},
|
|
22
26
|
"additionalEntryPoints": {
|
|
23
27
|
"type": "array",
|
|
24
28
|
"items": {
|
|
25
29
|
"type": "string"
|
|
26
|
-
}
|
|
30
|
+
},
|
|
31
|
+
"description": "A list of additional sub-directory entry points to include in the index export.",
|
|
32
|
+
"examples": [["src/lib/components", "src/lib/services"]]
|
|
27
33
|
}
|
|
28
34
|
},
|
|
29
35
|
"required": []
|
|
@@ -5,48 +5,54 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"project": {
|
|
8
|
-
"type": "string"
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The name of the library project to initialize.",
|
|
10
|
+
"examples": ["my-lib"]
|
|
9
11
|
},
|
|
10
12
|
"projects": {
|
|
11
13
|
"type": "array",
|
|
12
14
|
"items": {
|
|
13
15
|
"type": "string"
|
|
14
|
-
}
|
|
16
|
+
},
|
|
17
|
+
"description": "The list of library projects to initialize.",
|
|
18
|
+
"examples": [["my-lib", "another-lib"]]
|
|
15
19
|
},
|
|
16
20
|
"skipFormat": {
|
|
17
21
|
"type": "boolean",
|
|
18
|
-
"default": false
|
|
22
|
+
"default": false,
|
|
23
|
+
"description": "Whether to skip formatting files with Prettier after initialization."
|
|
19
24
|
},
|
|
20
25
|
"overwrite": {
|
|
21
26
|
"type": "boolean",
|
|
22
27
|
"default": false,
|
|
23
|
-
"description": "Whether to overwrite existing files"
|
|
28
|
+
"description": "Whether to overwrite existing files during initialization."
|
|
24
29
|
},
|
|
25
30
|
"skipProjects": {
|
|
26
31
|
"type": "boolean",
|
|
27
32
|
"default": false,
|
|
28
|
-
"description": "Whether to skip executing project
|
|
33
|
+
"description": "Whether to skip executing project-specific initialization logic."
|
|
29
34
|
},
|
|
30
35
|
"indexExport": {
|
|
31
36
|
"type": "boolean",
|
|
32
|
-
"description": "Whether to add the index-export target to the library"
|
|
37
|
+
"description": "Whether to add the 'index-export' target to the library project configuration."
|
|
33
38
|
},
|
|
34
39
|
"targets": {
|
|
35
40
|
"type": "object",
|
|
41
|
+
"description": "Configuration for specific project targets.",
|
|
36
42
|
"properties": {
|
|
37
43
|
"fixDependencies": {
|
|
38
44
|
"type": "boolean",
|
|
39
|
-
"description": "
|
|
45
|
+
"description": "Whether to add the 'fix-dependencies' target to the project."
|
|
40
46
|
},
|
|
41
47
|
"indexExport": {
|
|
42
48
|
"type": "boolean",
|
|
43
|
-
"description": "
|
|
49
|
+
"description": "Whether to add the 'index-export' target to the project."
|
|
44
50
|
}
|
|
45
51
|
}
|
|
46
52
|
},
|
|
47
53
|
"withInitGenerator": {
|
|
48
54
|
"type": "boolean",
|
|
49
|
-
"description": "
|
|
55
|
+
"description": "Whether to generate an 'init' generator within the library itself.",
|
|
50
56
|
"default": false
|
|
51
57
|
}
|
|
52
58
|
},
|
|
@@ -5,27 +5,32 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"project": {
|
|
8
|
-
"type": "string"
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The name of the buildable library project to initialize.",
|
|
10
|
+
"examples": ["my-lib"]
|
|
9
11
|
},
|
|
10
12
|
"projects": {
|
|
11
13
|
"type": "array",
|
|
12
14
|
"items": {
|
|
13
15
|
"type": "string"
|
|
14
|
-
}
|
|
16
|
+
},
|
|
17
|
+
"description": "The list of buildable library projects to initialize.",
|
|
18
|
+
"examples": [["my-lib", "another-lib"]]
|
|
15
19
|
},
|
|
16
20
|
"skipFormat": {
|
|
17
21
|
"type": "boolean",
|
|
18
|
-
"default": false
|
|
22
|
+
"default": false,
|
|
23
|
+
"description": "Whether to skip formatting files with Prettier after initialization."
|
|
19
24
|
},
|
|
20
25
|
"overwrite": {
|
|
21
26
|
"type": "boolean",
|
|
22
27
|
"default": false,
|
|
23
|
-
"description": "Whether to overwrite existing files"
|
|
28
|
+
"description": "Whether to overwrite existing files during initialization."
|
|
24
29
|
},
|
|
25
30
|
"skipProjects": {
|
|
26
31
|
"type": "boolean",
|
|
27
32
|
"default": false,
|
|
28
|
-
"description": "Whether to skip executing project
|
|
33
|
+
"description": "Whether to skip executing project-specific initialization logic."
|
|
29
34
|
}
|
|
30
35
|
},
|
|
31
36
|
"required": []
|
|
@@ -5,27 +5,32 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"project": {
|
|
8
|
-
"type": "string"
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The name of the project to initialize as an Nx plugin.",
|
|
10
|
+
"examples": ["my-plugin"]
|
|
9
11
|
},
|
|
10
12
|
"projects": {
|
|
11
13
|
"type": "array",
|
|
12
14
|
"items": {
|
|
13
15
|
"type": "string"
|
|
14
|
-
}
|
|
16
|
+
},
|
|
17
|
+
"description": "The list of projects to initialize as Nx plugins.",
|
|
18
|
+
"examples": [["my-plugin", "another-plugin"]]
|
|
15
19
|
},
|
|
16
20
|
"skipFormat": {
|
|
17
21
|
"type": "boolean",
|
|
18
|
-
"default": false
|
|
22
|
+
"default": false,
|
|
23
|
+
"description": "Whether to skip formatting files with Prettier after initialization."
|
|
19
24
|
},
|
|
20
25
|
"overwrite": {
|
|
21
26
|
"type": "boolean",
|
|
22
27
|
"default": false,
|
|
23
|
-
"description": "Whether to overwrite existing files"
|
|
28
|
+
"description": "Whether to overwrite existing files during initialization."
|
|
24
29
|
},
|
|
25
30
|
"skipProjects": {
|
|
26
31
|
"type": "boolean",
|
|
27
32
|
"default": false,
|
|
28
|
-
"description": "Whether to skip executing project
|
|
33
|
+
"description": "Whether to skip executing project-specific initialization logic."
|
|
29
34
|
}
|
|
30
35
|
},
|
|
31
36
|
"required": []
|
|
@@ -5,27 +5,32 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"project": {
|
|
8
|
-
"type": "string"
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The name of the library project to initialize with a preset.",
|
|
10
|
+
"examples": ["my-lib"]
|
|
9
11
|
},
|
|
10
12
|
"projects": {
|
|
11
13
|
"type": "array",
|
|
12
14
|
"items": {
|
|
13
15
|
"type": "string"
|
|
14
|
-
}
|
|
16
|
+
},
|
|
17
|
+
"description": "The list of library projects to initialize with a preset.",
|
|
18
|
+
"examples": [["my-lib", "another-lib"]]
|
|
15
19
|
},
|
|
16
20
|
"skipFormat": {
|
|
17
21
|
"type": "boolean",
|
|
18
|
-
"default": false
|
|
22
|
+
"default": false,
|
|
23
|
+
"description": "Whether to skip formatting files with Prettier after initialization."
|
|
19
24
|
},
|
|
20
25
|
"overwrite": {
|
|
21
26
|
"type": "boolean",
|
|
22
27
|
"default": false,
|
|
23
|
-
"description": "Whether to overwrite existing files"
|
|
28
|
+
"description": "Whether to overwrite existing files during initialization."
|
|
24
29
|
},
|
|
25
30
|
"skipProjects": {
|
|
26
31
|
"type": "boolean",
|
|
27
32
|
"default": false,
|
|
28
|
-
"description": "Whether to skip executing project
|
|
33
|
+
"description": "Whether to skip executing project-specific initialization logic."
|
|
29
34
|
}
|
|
30
35
|
},
|
|
31
36
|
"required": []
|
|
@@ -5,41 +5,47 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"project": {
|
|
8
|
-
"type": "string"
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The name of the library project to initialize for publishing.",
|
|
10
|
+
"examples": ["my-lib"]
|
|
9
11
|
},
|
|
10
12
|
"projects": {
|
|
11
13
|
"type": "array",
|
|
12
14
|
"items": {
|
|
13
15
|
"type": "string"
|
|
14
|
-
}
|
|
16
|
+
},
|
|
17
|
+
"description": "The list of library projects to initialize for publishing.",
|
|
18
|
+
"examples": [["my-lib", "another-lib"]]
|
|
15
19
|
},
|
|
16
20
|
"skipFormat": {
|
|
17
21
|
"type": "boolean",
|
|
18
|
-
"default": false
|
|
22
|
+
"default": false,
|
|
23
|
+
"description": "Whether to skip formatting files with Prettier after initialization."
|
|
19
24
|
},
|
|
20
25
|
"overwrite": {
|
|
21
26
|
"type": "boolean",
|
|
22
27
|
"default": false,
|
|
23
|
-
"description": "Whether to overwrite existing files"
|
|
28
|
+
"description": "Whether to overwrite existing files during initialization."
|
|
24
29
|
},
|
|
25
30
|
"skipProjects": {
|
|
26
31
|
"type": "boolean",
|
|
27
32
|
"default": false,
|
|
28
|
-
"description": "Whether to skip executing project
|
|
33
|
+
"description": "Whether to skip executing project-specific initialization logic."
|
|
29
34
|
},
|
|
30
35
|
"targets": {
|
|
31
36
|
"type": "object",
|
|
37
|
+
"description": "Configuration for specific project targets.",
|
|
32
38
|
"properties": {
|
|
33
39
|
"fixDependencies": {
|
|
34
40
|
"type": "boolean",
|
|
35
41
|
"default": true,
|
|
36
|
-
"description": "
|
|
42
|
+
"description": "Whether to add the 'fix-dependencies' target to the project."
|
|
37
43
|
}
|
|
38
44
|
}
|
|
39
45
|
},
|
|
40
46
|
"withInitGenerator": {
|
|
41
47
|
"type": "boolean",
|
|
42
|
-
"description": "
|
|
48
|
+
"description": "Whether to generate an 'init' generator within the library itself.",
|
|
43
49
|
"default": false
|
|
44
50
|
}
|
|
45
51
|
},
|
|
@@ -5,27 +5,32 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"project": {
|
|
8
|
-
"type": "string"
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The name of the project to initialize as a schematic library.",
|
|
10
|
+
"examples": ["my-schematic-lib"]
|
|
9
11
|
},
|
|
10
12
|
"projects": {
|
|
11
13
|
"type": "array",
|
|
12
14
|
"items": {
|
|
13
15
|
"type": "string"
|
|
14
|
-
}
|
|
16
|
+
},
|
|
17
|
+
"description": "The list of projects to initialize as schematic libraries.",
|
|
18
|
+
"examples": [["my-schematic-lib", "another-schematic-lib"]]
|
|
15
19
|
},
|
|
16
20
|
"skipFormat": {
|
|
17
21
|
"type": "boolean",
|
|
18
|
-
"default": false
|
|
22
|
+
"default": false,
|
|
23
|
+
"description": "Whether to skip formatting files with Prettier after initialization."
|
|
19
24
|
},
|
|
20
25
|
"overwrite": {
|
|
21
26
|
"type": "boolean",
|
|
22
27
|
"default": false,
|
|
23
|
-
"description": "Whether to overwrite existing files"
|
|
28
|
+
"description": "Whether to overwrite existing files during initialization."
|
|
24
29
|
},
|
|
25
30
|
"skipProjects": {
|
|
26
31
|
"type": "boolean",
|
|
27
32
|
"default": false,
|
|
28
|
-
"description": "Whether to skip executing project
|
|
33
|
+
"description": "Whether to skip executing project-specific initialization logic."
|
|
29
34
|
}
|
|
30
35
|
},
|
|
31
36
|
"required": []
|
|
@@ -5,27 +5,32 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"project": {
|
|
8
|
-
"type": "string"
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The name of the library project to initialize with migrations support.",
|
|
10
|
+
"examples": ["my-lib"]
|
|
9
11
|
},
|
|
10
12
|
"projects": {
|
|
11
13
|
"type": "array",
|
|
12
14
|
"items": {
|
|
13
15
|
"type": "string"
|
|
14
|
-
}
|
|
16
|
+
},
|
|
17
|
+
"description": "The list of library projects to initialize with migrations support.",
|
|
18
|
+
"examples": [["my-lib", "another-lib"]]
|
|
15
19
|
},
|
|
16
20
|
"skipFormat": {
|
|
17
21
|
"type": "boolean",
|
|
18
|
-
"default": false
|
|
22
|
+
"default": false,
|
|
23
|
+
"description": "Whether to skip formatting files with Prettier after initialization."
|
|
19
24
|
},
|
|
20
25
|
"overwrite": {
|
|
21
26
|
"type": "boolean",
|
|
22
27
|
"default": false,
|
|
23
|
-
"description": "Whether to overwrite existing files"
|
|
28
|
+
"description": "Whether to overwrite existing files during initialization."
|
|
24
29
|
},
|
|
25
30
|
"skipProjects": {
|
|
26
31
|
"type": "boolean",
|
|
27
32
|
"default": false,
|
|
28
|
-
"description": "Whether to skip executing project
|
|
33
|
+
"description": "Whether to skip executing project-specific initialization logic."
|
|
29
34
|
}
|
|
30
35
|
},
|
|
31
36
|
"required": []
|