@equinor/roma-nx-plugin 0.0.8 → 0.0.9
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/package.json
CHANGED
|
@@ -5,13 +5,249 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"name": {
|
|
8
|
+
"description": "The name of the application.",
|
|
8
9
|
"type": "string",
|
|
9
|
-
"description": "",
|
|
10
10
|
"$default": {
|
|
11
11
|
"$source": "argv",
|
|
12
12
|
"index": 0
|
|
13
13
|
},
|
|
14
|
-
"x-prompt": "What name would you like to use?"
|
|
14
|
+
"x-prompt": "What name would you like to use for the application?",
|
|
15
|
+
"pattern": "^[a-zA-Z][^:]*$"
|
|
16
|
+
},
|
|
17
|
+
"directory": {
|
|
18
|
+
"description": "The directory of the new application.",
|
|
19
|
+
"type": "string",
|
|
20
|
+
"alias": "dir",
|
|
21
|
+
"x-priority": "important"
|
|
22
|
+
},
|
|
23
|
+
"projectNameAndRootFormat": {
|
|
24
|
+
"description": "Whether to generate the project name and root directory as provided (`as-provided`) or generate them composing their values and taking the configured layout into account (`derived`).",
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": [
|
|
27
|
+
"as-provided",
|
|
28
|
+
"derived"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"style": {
|
|
32
|
+
"description": "The file extension to be used for style files.",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"default": "css",
|
|
35
|
+
"alias": "s",
|
|
36
|
+
"x-prompt": {
|
|
37
|
+
"message": "Which stylesheet format would you like to use?",
|
|
38
|
+
"type": "list",
|
|
39
|
+
"items": [
|
|
40
|
+
{
|
|
41
|
+
"value": "css",
|
|
42
|
+
"label": "CSS"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"value": "scss",
|
|
46
|
+
"label": "SASS(.scss) [ http://sass-lang.com ]"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"value": "less",
|
|
50
|
+
"label": "LESS [ http://lesscss.org ]"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"value": "styled-components",
|
|
54
|
+
"label": "styled-components [ https://styled-components.com ]"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"value": "@emotion/styled",
|
|
58
|
+
"label": "emotion [ https://emotion.sh ]"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"value": "styled-jsx",
|
|
62
|
+
"label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"value": "none",
|
|
66
|
+
"label": "None"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"value": "styl",
|
|
70
|
+
"label": "Stylus(.styl) [ http://stylus-lang.com ] (DEPRECATED)"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"linter": {
|
|
76
|
+
"description": "The tool to use for running lint checks.",
|
|
77
|
+
"type": "string",
|
|
78
|
+
"enum": [
|
|
79
|
+
"eslint",
|
|
80
|
+
"none"
|
|
81
|
+
],
|
|
82
|
+
"default": "eslint"
|
|
83
|
+
},
|
|
84
|
+
"routing": {
|
|
85
|
+
"type": "boolean",
|
|
86
|
+
"description": "Generate application with routes.",
|
|
87
|
+
"x-prompt": "Would you like to add React Router to this application?",
|
|
88
|
+
"default": false
|
|
89
|
+
},
|
|
90
|
+
"skipFormat": {
|
|
91
|
+
"description": "Skip formatting files.",
|
|
92
|
+
"type": "boolean",
|
|
93
|
+
"default": false,
|
|
94
|
+
"x-priority": "internal"
|
|
95
|
+
},
|
|
96
|
+
"skipNxJson": {
|
|
97
|
+
"description": "Skip updating `nx.json` with default options based on values provided to this app.",
|
|
98
|
+
"type": "boolean",
|
|
99
|
+
"default": false,
|
|
100
|
+
"x-priority": "internal"
|
|
101
|
+
},
|
|
102
|
+
"unitTestRunner": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"enum": [
|
|
105
|
+
"jest",
|
|
106
|
+
"vitest",
|
|
107
|
+
"none"
|
|
108
|
+
],
|
|
109
|
+
"description": "Test runner to use for unit tests.",
|
|
110
|
+
"default": "vitest"
|
|
111
|
+
},
|
|
112
|
+
"inSourceTests": {
|
|
113
|
+
"type": "boolean",
|
|
114
|
+
"default": false,
|
|
115
|
+
"description": "When using Vitest, separate spec files will not be generated and instead will be included within the source files. Read more on the Vitest docs site: https://vitest.dev/guide/in-source.html"
|
|
116
|
+
},
|
|
117
|
+
"e2eTestRunner": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"enum": [
|
|
120
|
+
"cypress",
|
|
121
|
+
"playwright",
|
|
122
|
+
"none"
|
|
123
|
+
],
|
|
124
|
+
"description": "Test runner to use for end to end (E2E) tests.",
|
|
125
|
+
"x-prompt": "Which E2E test runner would you like to use?",
|
|
126
|
+
"default": "none"
|
|
127
|
+
},
|
|
128
|
+
"tags": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"description": "Add tags to the application (used for linting).",
|
|
131
|
+
"alias": "t"
|
|
132
|
+
},
|
|
133
|
+
"pascalCaseFiles": {
|
|
134
|
+
"type": "boolean",
|
|
135
|
+
"description": "Use pascal case component file name (e.g. `App.tsx`).",
|
|
136
|
+
"alias": "P",
|
|
137
|
+
"default": false
|
|
138
|
+
},
|
|
139
|
+
"classComponent": {
|
|
140
|
+
"type": "boolean",
|
|
141
|
+
"description": "Use class components instead of functional component.",
|
|
142
|
+
"alias": "C",
|
|
143
|
+
"default": false
|
|
144
|
+
},
|
|
145
|
+
"js": {
|
|
146
|
+
"type": "boolean",
|
|
147
|
+
"description": "Generate JavaScript files rather than TypeScript files.",
|
|
148
|
+
"default": false
|
|
149
|
+
},
|
|
150
|
+
"globalCss": {
|
|
151
|
+
"type": "boolean",
|
|
152
|
+
"description": "Default is `false`. When `true`, the component is generated with `*.css`/`*.scss` instead of `*.module.css`/`*.module.scss`.",
|
|
153
|
+
"default": false
|
|
154
|
+
},
|
|
155
|
+
"strict": {
|
|
156
|
+
"type": "boolean",
|
|
157
|
+
"description": "Creates an application with strict mode and strict type checking.",
|
|
158
|
+
"default": true
|
|
159
|
+
},
|
|
160
|
+
"setParserOptionsProject": {
|
|
161
|
+
"type": "boolean",
|
|
162
|
+
"description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
|
|
163
|
+
"default": false
|
|
164
|
+
},
|
|
165
|
+
"compiler": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"description": "The compiler to use.",
|
|
168
|
+
"enum": [
|
|
169
|
+
"babel",
|
|
170
|
+
"swc"
|
|
171
|
+
],
|
|
172
|
+
"default": "babel"
|
|
173
|
+
},
|
|
174
|
+
"skipPackageJson": {
|
|
175
|
+
"description": "Do not add dependencies to `package.json`.",
|
|
176
|
+
"type": "boolean",
|
|
177
|
+
"default": false,
|
|
178
|
+
"x-priority": "internal"
|
|
179
|
+
},
|
|
180
|
+
"rootProject": {
|
|
181
|
+
"description": "Create a application at the root of the workspace",
|
|
182
|
+
"type": "boolean",
|
|
183
|
+
"default": false,
|
|
184
|
+
"hidden": true
|
|
185
|
+
},
|
|
186
|
+
"minimal": {
|
|
187
|
+
"description": "Generate a minimal application",
|
|
188
|
+
"type": "boolean",
|
|
189
|
+
"default": false,
|
|
190
|
+
"hidden": true
|
|
191
|
+
},
|
|
192
|
+
"fusionModules": {
|
|
193
|
+
"description": "Add Fusion modules to the application.",
|
|
194
|
+
"x-prompt": {
|
|
195
|
+
"message": "Which fusion modules would you like to add to this application?",
|
|
196
|
+
"type": "list",
|
|
197
|
+
"multiselect": true,
|
|
198
|
+
"items": [
|
|
199
|
+
{
|
|
200
|
+
"value": "fusion-framework-module-auth",
|
|
201
|
+
"label": "Authentication"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"value": "fusion-framework-module-navigation",
|
|
205
|
+
"label": "Navigation"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"value": "fusion-framework-module-context,fusion-framework-react-module-context",
|
|
209
|
+
"label": "Context"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"value": "fusion-framework-module-ag-grid",
|
|
213
|
+
"label": "AG-Grid (enterprise table framework)"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"value": "fusion-framework-module-bookmark,fusion-framework-react-module-bookmark",
|
|
217
|
+
"label": "Bookmark module"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"value": "fusion-framework-module-event,fusion-framework-react-module-event",
|
|
221
|
+
"label": "Event handler"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"value": "fusion-framework-module-http,fusion-framework-react-module-http",
|
|
225
|
+
"label": "Http client"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"value": "fusion-framework-module-service-discovery",
|
|
229
|
+
"label": "Service discovery"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"value": "fusion-framework-module-services",
|
|
233
|
+
"label": "Services"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"value": "fusion-framework-module-signalr,fusion-framework-react-module-signalr",
|
|
237
|
+
"label": "Signalr (for realtime .NET apis)"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"value": "fusion-framework-module-telemetry",
|
|
241
|
+
"label": "Telemetry"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"value": "fusion-framework-module-widget",
|
|
245
|
+
"label": "Widget support"
|
|
246
|
+
}
|
|
247
|
+
]
|
|
248
|
+
},
|
|
249
|
+
"type": "array",
|
|
250
|
+
"default": []
|
|
15
251
|
}
|
|
16
252
|
},
|
|
17
253
|
"required": ["name"]
|