112 lines
3.3 KiB
JSON
112 lines
3.3 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/schema",
|
|
"id": "SchematicsNxLibrary",
|
|
"title": "Create a library",
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"description": "Library name",
|
|
"$default": {
|
|
"$source": "argv",
|
|
"index": 0
|
|
},
|
|
"x-prompt": "What name would you like to use for the library?"
|
|
},
|
|
"directory": {
|
|
"type": "string",
|
|
"description": "A directory where the app is placed",
|
|
"x-prompt": "In which directory should the library be generated?"
|
|
},
|
|
"publishable": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Generate a simple TS library when set to true."
|
|
},
|
|
"prefix": {
|
|
"type": "string",
|
|
"format": "html-selector",
|
|
"description": "The prefix to apply to generated selectors.",
|
|
"alias": "p"
|
|
},
|
|
"skipFormat": {
|
|
"description": "Skip formatting files",
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"simpleModuleName": {
|
|
"description": "Keep the module name simple (when using --directory)",
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"skipPackageJson": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Do not add dependencies to package.json."
|
|
},
|
|
"skipTsConfig": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Do not update tsconfig.json for development experience."
|
|
},
|
|
"style": {
|
|
"description": "The file extension to be used for style files.",
|
|
"type": "string",
|
|
"default": "css",
|
|
"x-prompt": {
|
|
"message": "Which stylesheet format would you like to use?",
|
|
"type": "list",
|
|
"items": [
|
|
{ "value": "css", "label": "CSS" },
|
|
{
|
|
"value": "scss",
|
|
"label": "SASS(.scss) [ http://sass-lang.com ]"
|
|
},
|
|
{
|
|
"value": "styl",
|
|
"label": "Stylus(.styl)[ http://stylus-lang.com ]"
|
|
},
|
|
{
|
|
"value": "less",
|
|
"label": "LESS [ http://lesscss.org ]"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"routing": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Add router configuration. See lazy for more information."
|
|
},
|
|
"lazy": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Add RouterModule.forChild when set to true, and a simple array of routes when set to false."
|
|
},
|
|
"parentModule": {
|
|
"type": "string",
|
|
"description": "Update the router configuration of the parent module using loadChildren or children, depending on what `lazy` is set to."
|
|
},
|
|
"tags": {
|
|
"type": "string",
|
|
"description": "Add tags to the library (used for linting)",
|
|
"x-prompt": "Which tags would you like to add to the library? (used for linting)"
|
|
},
|
|
"unitTestRunner": {
|
|
"type": "string",
|
|
"enum": ["karma", "jest", "none"],
|
|
"description": "Test runner to use for unit tests",
|
|
"default": "jest",
|
|
"x-prompt": {
|
|
"message": "Which Unit Test Runner would you like to use for the library?",
|
|
"type": "list",
|
|
"items": [
|
|
{ "value": "jest", "label": "Jest [https://jestjs.io/]" },
|
|
{ "value": "karma", "label": "Karma" }
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"required": []
|
|
}
|