<!-- 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 --> When we generate a Next.js application with tailwindcss running with `--turbo` fails due to how the globs are defined inside `tailwind.config.js`. ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> Relative paths a singular globs are required with this change tailwind should work with HMR using `--turbo` ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #29946
48 lines
1.5 KiB
JSON
48 lines
1.5 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/schema",
|
|
"cli": "nx",
|
|
"$id": "NxNextTailwindSetupGenerator",
|
|
"title": "Configures Tailwind CSS for an application or a buildable/publishable library.",
|
|
"description": "Adds the Tailwind CSS configuration files for a Next.js 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"
|
|
},
|
|
"buildTarget": {
|
|
"type": "string",
|
|
"description": "The name of the target used to build the project. This option is not needed in most cases.",
|
|
"default": "build",
|
|
"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"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["project"]
|
|
}
|