This PR adds `convert-to-inferred` generators to convert React Native an Expo apps using executors to use the corresponding inference plugins. Also: 1. Fixes casing for `@nx/react-native/plugin` so it is correctly set as `upgradeTargetName` not `upgradeTargetname` 2. Migration for the above fix for existing projects
26 lines
994 B
JSON
26 lines
994 B
JSON
{
|
|
"name": "Nx Detox",
|
|
"version": "0.1",
|
|
"extends": ["@nx/workspace"],
|
|
"generators": {
|
|
"init": {
|
|
"factory": "./src/generators/init/init#detoxInitGeneratorInternal",
|
|
"schema": "./src/generators/init/schema.json",
|
|
"description": "Initialize the `@nx/detox` plugin.",
|
|
"hidden": true
|
|
},
|
|
"application": {
|
|
"factory": "./src/generators/application/application#detoxApplicationGeneratorInternal",
|
|
"schema": "./src/generators/application/schema.json",
|
|
"aliases": ["app"],
|
|
"x-type": "application",
|
|
"description": "Create a Detox application."
|
|
},
|
|
"convert-to-inferred": {
|
|
"factory": "./src/generators/convert-to-inferred/convert-to-inferred",
|
|
"schema": "./src/generators/convert-to-inferred/schema.json",
|
|
"description": "Convert existing Detox project(s) using `@nx/detox:*` executors to use `@nx/detox/plugin`. Defaults to migrating all projects. Pass '--project' to migrate only one target."
|
|
}
|
|
}
|
|
}
|