<!-- 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 --> The only way to set if a task is continuous is either directly in `project.json` or via Project Graph Plugins. ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> Executors know if they are definitely continuous or not. Plenty of existing continuous tasks are using executors. Executors are now able to define if they are continuous in their `schema.json` files. Thus, existing tasks configured with certain executors will automatically become continuous. ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
40 lines
1.0 KiB
JSON
40 lines
1.0 KiB
JSON
{
|
|
"version": 2,
|
|
"continuous": true,
|
|
"outputCapture": "direct-nodejs",
|
|
"title": "Vite Dev Server",
|
|
"cli": "nx",
|
|
"description": "Starts a dev server using Vite.",
|
|
"type": "object",
|
|
"presets": [
|
|
{
|
|
"name": "Default minimum setup",
|
|
"keys": ["buildTarget"]
|
|
},
|
|
{
|
|
"name": "Using a Different Port",
|
|
"keys": ["buildTarget", "port"]
|
|
}
|
|
],
|
|
"properties": {
|
|
"buildTarget": {
|
|
"type": "string",
|
|
"description": "Target which builds the application. Only used to retrieve the configuration as the dev-server does not build the code.",
|
|
"x-priority": "important"
|
|
},
|
|
"buildLibsFromSource": {
|
|
"type": "boolean",
|
|
"description": "Read buildable libraries from source instead of building them separately.",
|
|
"default": true
|
|
},
|
|
"proxyConfig": {
|
|
"type": "string",
|
|
"description": "Path to the proxy configuration file.",
|
|
"x-completion-type": "file"
|
|
}
|
|
},
|
|
"definitions": {},
|
|
"required": ["buildTarget"],
|
|
"examplesFile": "../../../docs/dev-server-examples.md"
|
|
}
|