<!-- 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` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes # --------- Co-authored-by: Jack Hsu <jack.hsu@gmail.com>
61 lines
1.8 KiB
JSON
61 lines
1.8 KiB
JSON
{
|
|
"name": "init",
|
|
"factory": "./src/generators/init/init#initGeneratorInternal",
|
|
"schema": {
|
|
"$schema": "https://json-schema.org/schema",
|
|
"$id": "NxTypescriptInit",
|
|
"cli": "nx",
|
|
"title": "Init nx/js",
|
|
"description": "Init generator placeholder for nx/js.",
|
|
"properties": {
|
|
"formatter": {
|
|
"description": "The tool to use for code formatting.",
|
|
"type": "string",
|
|
"enum": ["none", "prettier"],
|
|
"default": "none"
|
|
},
|
|
"js": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Use JavaScript instead of TypeScript"
|
|
},
|
|
"skipFormat": {
|
|
"type": "boolean",
|
|
"aliases": ["skip-format"],
|
|
"description": "Skip formatting files.",
|
|
"x-priority": "internal"
|
|
},
|
|
"skipPackageJson": {
|
|
"type": "boolean",
|
|
"description": "Skip adding package.json dependencies",
|
|
"x-priority": "internal"
|
|
},
|
|
"keepExistingVersions": {
|
|
"type": "boolean",
|
|
"x-priority": "internal",
|
|
"description": "Keep existing dependencies versions",
|
|
"default": false
|
|
},
|
|
"addTsConfigBase": {
|
|
"type": "boolean",
|
|
"description": "Add a base tsconfig file to the workspace.",
|
|
"x-priority": "internal",
|
|
"default": false
|
|
},
|
|
"tsConfigName": {
|
|
"type": "string",
|
|
"description": "Customize the generated base tsconfig file name.",
|
|
"x-priority": "internal"
|
|
}
|
|
},
|
|
"presets": []
|
|
},
|
|
"aliases": ["lib"],
|
|
"x-type": "init",
|
|
"description": "Initialize a TS/JS workspace.",
|
|
"hidden": true,
|
|
"implementation": "/packages/js/src/generators/init/init#initGeneratorInternal.ts",
|
|
"path": "/packages/js/src/generators/init/schema.json",
|
|
"type": "generator"
|
|
}
|