-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
schema.json
53 lines (53 loc) · 1.91 KB
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"$schema": "http://json-schema.org/schema",
"$id": "NxAngularStorybookConfigurationGenerator",
"title": "Adds Storybook configuration to a project.",
"description": "Adds Storybook configuration to a project to be able to use and create stories.",
"cli": "nx",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the project.",
"$default": {
"$source": "argv",
"index": 0
}
},
"configureCypress": {
"type": "boolean",
"description": "Specifies whether to configure Cypress or not.",
"x-prompt": "Configure a Cypress e2e app to run against the storybook instance?",
"default": true
},
"generateStories": {
"type": "boolean",
"description": "Specifies whether to automatically generate `*.stories.ts` files for components declared in this project or not.",
"x-prompt": "Automatically generate *.stories.ts files for components declared in this project?",
"default": true
},
"generateCypressSpecs": {
"type": "boolean",
"description": "Specifies whether to automatically generate `*.spec.ts` files in the generated Cypress e2e app.",
"x-prompt": "Automatically generate *.spec.ts files in the generated Cypress e2e app?",
"default": true
},
"cypressDirectory": {
"type": "string",
"description": "A directory where the Cypress project will be placed. Placed at the root by default."
},
"linter": {
"description": "The tool to use for running lint checks.",
"type": "string",
"enum": ["eslint", "none"],
"default": "eslint"
},
"tsConfiguration": {
"type": "boolean",
"description": "Configure your project with TypeScript. Generate main.ts and preview.ts files, instead of main.js and preview.js.",
"default": false
}
},
"additionalProperties": false,
"required": ["name"]
}