1 | {
|
2 | "$schema": "http://json-schema.org/schema",
|
3 | "$id": "NxWorkspaceCIWorkflow",
|
4 | "title": "Generate a CI workflow.",
|
5 | "description": "Generate a CI workflow.",
|
6 | "cli": "nx",
|
7 | "type": "object",
|
8 | "properties": {
|
9 | "ci": {
|
10 | "type": "string",
|
11 | "description": "CI provider.",
|
12 | "enum": ["github", "circleci", "azure"],
|
13 | "x-prompt": {
|
14 | "message": "What is your target CI provider?",
|
15 | "type": "list",
|
16 | "items": [
|
17 | { "value": "github", "label": "Github Actions" },
|
18 | { "value": "circleci", "label": "Circle CI" },
|
19 | { "value": "azure", "label": "Azure DevOps" }
|
20 | ]
|
21 | }
|
22 | },
|
23 | "name": {
|
24 | "type": "string",
|
25 | "description": "Workflow name.",
|
26 | "$default": {
|
27 | "$source": "argv",
|
28 | "index": 0
|
29 | },
|
30 | "default": "CI",
|
31 | "x-prompt": "How should we name your workflow?",
|
32 | "pattern": "^[a-zA-Z].*$"
|
33 | }
|
34 | },
|
35 | "required": ["ci"]
|
36 | }
|