54 lines
2.0 KiB
JSON
54 lines
2.0 KiB
JSON
{
|
|
"name": "setup-tailwind",
|
|
"factory": "./src/generators/setup-tailwind/setup-tailwind",
|
|
"schema": {
|
|
"$schema": "https://json-schema.org/schema",
|
|
"cli": "nx",
|
|
"$id": "NxVueTailwindSetupGenerator",
|
|
"title": "Configures Tailwind CSS for an application or a library.",
|
|
"description": "Adds the Tailwind CSS configuration files for a given Vue project and installs, if needed, the packages required for Tailwind CSS to work.",
|
|
"type": "object",
|
|
"examples": [
|
|
{
|
|
"command": "nx g setup-tailwind --project=my-app",
|
|
"description": "Initialize Tailwind configuration for the `my-app` project."
|
|
}
|
|
],
|
|
"properties": {
|
|
"project": {
|
|
"type": "string",
|
|
"description": "The name of the project to add the Tailwind CSS setup for.",
|
|
"alias": "p",
|
|
"$default": { "$source": "argv", "index": 0 },
|
|
"x-dropdown": "projects",
|
|
"x-prompt": "What project would you like to add the Tailwind CSS setup?",
|
|
"x-priority": "important"
|
|
},
|
|
"skipFormat": {
|
|
"type": "boolean",
|
|
"description": "Skips formatting the workspace after the generator completes.",
|
|
"x-priority": "internal"
|
|
},
|
|
"skipPackageJson": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Do not add dependencies to `package.json`.",
|
|
"x-priority": "internal"
|
|
},
|
|
"stylesheet": {
|
|
"type": "string",
|
|
"description": "Path to the styles entry point relative to the workspace root. This option is only needed if the stylesheet location cannot be found automatically."
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["project"],
|
|
"presets": []
|
|
},
|
|
"description": "Set up Tailwind configuration for a project.",
|
|
"implementation": "/packages/vue/src/generators/setup-tailwind/setup-tailwind.ts",
|
|
"aliases": [],
|
|
"hidden": false,
|
|
"path": "/packages/vue/src/generators/setup-tailwind/schema.json",
|
|
"type": "generator"
|
|
}
|