- 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>
36 lines
1.5 KiB
JSON
36 lines
1.5 KiB
JSON
{
|
|
"name": "Nx Vite",
|
|
"version": "0.1",
|
|
"generators": {
|
|
"init": {
|
|
"factory": "./src/generators/init/init#initGeneratorInternal",
|
|
"schema": "./src/generators/init/schema.json",
|
|
"description": "Initialize Vite in the workspace.",
|
|
"aliases": ["ng-add"],
|
|
"hidden": true
|
|
},
|
|
"configuration": {
|
|
"factory": "./src/generators/configuration/configuration#viteConfigurationGeneratorInternal",
|
|
"schema": "./src/generators/configuration/schema.json",
|
|
"description": "Add Vite configuration to an application.",
|
|
"aliases": ["config"],
|
|
"hidden": false
|
|
},
|
|
"setup-paths-plugin": {
|
|
"factory": "./src/generators/setup-paths-plugin/setup-paths-plugin",
|
|
"schema": "./src/generators/setup-paths-plugin/schema.json",
|
|
"description": "Sets up the nxViteTsPaths plugin to enable support for workspace libraries."
|
|
},
|
|
"convert-to-inferred": {
|
|
"factory": "./src/generators/convert-to-inferred/convert-to-inferred",
|
|
"schema": "./src/generators/convert-to-inferred/schema.json",
|
|
"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."
|
|
},
|
|
"vitest": {
|
|
"factory": "./src/generators/vitest/vitest-generator#vitestGeneratorInternal",
|
|
"schema": "./src/generators/vitest/schema.json",
|
|
"description": "Generate a vitest configuration."
|
|
}
|
|
}
|
|
}
|