-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nx 18 Inferred Tasks support #635
Comments
v18.0.0-beta.3 provides support for Nx 18 Inferred Tasks Please test it out and provide feedback. To add the plugin add the following to your {
"plugins": [
{
"plugin": "nx-stylelint/plugin",
"options": {
"targetName": "stylelint",
"extensions": ["css"]
}
}
]
} targetDefaults can be configured e.g. "targetDefaults": {
"stylelint": {
"options": {
"args": ["--allow-empty-input"]
}
}
} |
I add the plugin to the nx.json file: {
"plugin": "nx-stylelint/plugin",
"options": {
"targetName": "stylelint",
"extensions": ["scss"]
}
} I'm also using this on targetDefaults: "targetDefaults": {
"stylelint": {
"inputs": [
"default",
"{workspaceRoot}/.stylelintrc(.(json|yml|yaml|js))?"
],
"cache": true,
"options": {
"args": [
"--allow-empty-input"
]
}
}
} With this setup I can see the task being inferred in nx console with this description: Great job with this plugin guys ^^ |
@mateusgpereira Thanks for trying out the plugin.
You can remove the inputs here. The Inputs are infered by the plugin.
First, remove the stylelint targets from your project.json files. It looks like there is a stylelint target with the nx-stylelint:lint executor left. The stylelint target has to be infered from The libraries need a .stylelintrc file to identify them as projects that need Stylelint setup. However, you can add a simple .stylelintrc.json to your project root that extends the workspace root .stylelintrc file: {
"extends": "../path/to/workspaceroot/.stylelintrc.json"
} |
Support Nx Project Crystal / Inferred Tasks
The text was updated successfully, but these errors were encountered: