<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> ## Current Behavior <!-- This is the behavior we have today --> There is no generator to setup a CI workflow for a Gradle workspace. ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> `./nx g ci-workflow` sets up a CI workflow for either Github Actions or CircleCI. More will be added later. ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
43 lines
1.3 KiB
JSON
43 lines
1.3 KiB
JSON
{
|
|
"name": "ci-workflow",
|
|
"factory": "./src/generators/ci-workflow/generator",
|
|
"schema": {
|
|
"$schema": "https://json-schema.org/schema",
|
|
"$id": "NxGradleCiWorkflowSchema",
|
|
"title": "Gradle CI Workflow Generator",
|
|
"description": "Setup a CI Workflow to run Nx in CI.",
|
|
"type": "object",
|
|
"properties": {
|
|
"ci": {
|
|
"type": "string",
|
|
"description": "CI provider.",
|
|
"enum": ["github", "circleci"],
|
|
"x-prompt": {
|
|
"message": "What is your target CI provider?",
|
|
"type": "list",
|
|
"items": [
|
|
{ "value": "github", "label": "GitHub Actions" },
|
|
{ "value": "circleci", "label": "Circle CI" }
|
|
]
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"description": "Workflow name.",
|
|
"$default": { "$source": "argv", "index": 0 },
|
|
"default": "CI",
|
|
"x-prompt": "How should we name your workflow?",
|
|
"pattern": "^[a-zA-Z].*$"
|
|
}
|
|
},
|
|
"required": ["ci", "name"],
|
|
"presets": []
|
|
},
|
|
"description": "Setup a CI Workflow to run Nx in CI",
|
|
"implementation": "/packages/gradle/src/generators/ci-workflow/generator.ts",
|
|
"aliases": [],
|
|
"hidden": false,
|
|
"path": "/packages/gradle/src/generators/ci-workflow/schema.json",
|
|
"type": "generator"
|
|
}
|