- feat(vite): add convert-to-inferred generator for migrating to inference - feat(vite): add build postTargetTransformer - feat(vite): add serve, preview, test postTargetTransformer - feat(vite): convert-to-inferred should clean up inputs and outputs - docs(vite): add convert-to-inferred - feat(vite): update outDir correctly <!-- 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` --> ## Current Behavior <!-- This is the behavior we have today --> There is currently no generator that can migrate projects that use `@nx/vite:*` executors to use Inference plugins. ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> Add `@nx/vite:convert-to-inferred` generator ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes # --------- Co-authored-by: Jack Hsu <jack.hsu@gmail.com>
31 lines
1.3 KiB
JSON
31 lines
1.3 KiB
JSON
{
|
|
"name": "convert-to-inferred",
|
|
"factory": "./src/generators/convert-to-inferred/convert-to-inferred",
|
|
"schema": {
|
|
"$schema": "https://json-schema.org/schema",
|
|
"$id": "NxViteConvertToInferred",
|
|
"description": "Convert existing Vite project(s) using `@nx/vite:*` executors to use `@nx/vite/plugin`. Defaults to migrating all projects. Pass '--project' to migrate only one target.",
|
|
"title": "Convert Vite project from executor to plugin",
|
|
"type": "object",
|
|
"properties": {
|
|
"project": {
|
|
"type": "string",
|
|
"description": "The project to convert from using the `@nx/vite:*` executors to use `@nx/vite/plugin`.",
|
|
"x-priority": "important"
|
|
},
|
|
"skipFormat": {
|
|
"type": "boolean",
|
|
"description": "Whether to format files at the end of the migration.",
|
|
"default": false
|
|
}
|
|
},
|
|
"presets": []
|
|
},
|
|
"description": "Convert existing Vite project(s) using `@nx/vite:*` executors to use `@nx/vite/plugin`. Defaults to migrating all projects. Pass '--project' to migrate only one target.",
|
|
"implementation": "/packages/vite/src/generators/convert-to-inferred/convert-to-inferred.ts",
|
|
"aliases": [],
|
|
"hidden": false,
|
|
"path": "/packages/vite/src/generators/convert-to-inferred/schema.json",
|
|
"type": "generator"
|
|
}
|