feat(nx-plugin): rename @nx/nx-plugin to @nx/plugin (#16422)
This commit is contained in:
parent
739b4c2924
commit
fb54f67581
@ -125,9 +125,9 @@ yarn.lock @FrozenPandaz @vsavkin @AgentEnder @jaysoo @JamesHenry
|
||||
/packages/devkit/src/utils/module-federation @jaysoo @Coly010
|
||||
|
||||
# Nx-Plugin
|
||||
/docs/generated/packages/nx-plugin/** @AgentEnder @FrozenPandaz
|
||||
/docs/shared/packages/nx-plugin/** @AgentEnder @FrozenPandaz @isaacplmann @juristr
|
||||
/packages/nx-plugin/** @AgentEnder @FrozenPandaz
|
||||
/docs/generated/packages/plugin/** @AgentEnder @FrozenPandaz
|
||||
/docs/shared/packages/plugin/** @AgentEnder @FrozenPandaz @isaacplmann @juristr
|
||||
/packages/plugin/** @AgentEnder @FrozenPandaz
|
||||
/e2e/nx-plugin/** @AgentEnder @FrozenPandaz
|
||||
|
||||
## Core
|
||||
|
||||
@ -5528,18 +5528,18 @@
|
||||
"disableCollapsible": false
|
||||
},
|
||||
{
|
||||
"id": "nx-plugin",
|
||||
"path": "/packages/nx-plugin",
|
||||
"name": "nx-plugin",
|
||||
"id": "plugin",
|
||||
"path": "/packages/plugin",
|
||||
"name": "plugin",
|
||||
"children": [
|
||||
{
|
||||
"id": "documents",
|
||||
"path": "/packages/nx-plugin/documents",
|
||||
"path": "/packages/plugin/documents",
|
||||
"name": "documents",
|
||||
"children": [
|
||||
{
|
||||
"name": "Overview",
|
||||
"path": "/packages/nx-plugin/documents/overview",
|
||||
"path": "/packages/plugin/documents/overview",
|
||||
"id": "overview",
|
||||
"isExternal": false,
|
||||
"children": [],
|
||||
@ -5551,12 +5551,12 @@
|
||||
},
|
||||
{
|
||||
"id": "executors",
|
||||
"path": "/packages/nx-plugin/executors",
|
||||
"path": "/packages/plugin/executors",
|
||||
"name": "executors",
|
||||
"children": [
|
||||
{
|
||||
"id": "e2e",
|
||||
"path": "/packages/nx-plugin/executors/e2e",
|
||||
"path": "/packages/plugin/executors/e2e",
|
||||
"name": "e2e",
|
||||
"children": [],
|
||||
"isExternal": false,
|
||||
@ -5568,12 +5568,12 @@
|
||||
},
|
||||
{
|
||||
"id": "generators",
|
||||
"path": "/packages/nx-plugin/generators",
|
||||
"path": "/packages/plugin/generators",
|
||||
"name": "generators",
|
||||
"children": [
|
||||
{
|
||||
"id": "plugin",
|
||||
"path": "/packages/nx-plugin/generators/plugin",
|
||||
"path": "/packages/plugin/generators/plugin",
|
||||
"name": "plugin",
|
||||
"children": [],
|
||||
"isExternal": false,
|
||||
@ -5581,7 +5581,7 @@
|
||||
},
|
||||
{
|
||||
"id": "create-package",
|
||||
"path": "/packages/nx-plugin/generators/create-package",
|
||||
"path": "/packages/plugin/generators/create-package",
|
||||
"name": "create-package",
|
||||
"children": [],
|
||||
"isExternal": false,
|
||||
@ -5589,7 +5589,7 @@
|
||||
},
|
||||
{
|
||||
"id": "e2e-project",
|
||||
"path": "/packages/nx-plugin/generators/e2e-project",
|
||||
"path": "/packages/plugin/generators/e2e-project",
|
||||
"name": "e2e-project",
|
||||
"children": [],
|
||||
"isExternal": false,
|
||||
@ -5597,7 +5597,7 @@
|
||||
},
|
||||
{
|
||||
"id": "migration",
|
||||
"path": "/packages/nx-plugin/generators/migration",
|
||||
"path": "/packages/plugin/generators/migration",
|
||||
"name": "migration",
|
||||
"children": [],
|
||||
"isExternal": false,
|
||||
@ -5605,7 +5605,7 @@
|
||||
},
|
||||
{
|
||||
"id": "generator",
|
||||
"path": "/packages/nx-plugin/generators/generator",
|
||||
"path": "/packages/plugin/generators/generator",
|
||||
"name": "generator",
|
||||
"children": [],
|
||||
"isExternal": false,
|
||||
@ -5613,7 +5613,7 @@
|
||||
},
|
||||
{
|
||||
"id": "executor",
|
||||
"path": "/packages/nx-plugin/generators/executor",
|
||||
"path": "/packages/plugin/generators/executor",
|
||||
"name": "executor",
|
||||
"children": [],
|
||||
"isExternal": false,
|
||||
@ -5621,7 +5621,7 @@
|
||||
},
|
||||
{
|
||||
"id": "plugin-lint-checks",
|
||||
"path": "/packages/nx-plugin/generators/plugin-lint-checks",
|
||||
"path": "/packages/plugin/generators/plugin-lint-checks",
|
||||
"name": "plugin-lint-checks",
|
||||
"children": [],
|
||||
"isExternal": false,
|
||||
@ -5629,7 +5629,7 @@
|
||||
},
|
||||
{
|
||||
"id": "preset",
|
||||
"path": "/packages/nx-plugin/generators/preset",
|
||||
"path": "/packages/plugin/generators/preset",
|
||||
"name": "preset",
|
||||
"children": [],
|
||||
"isExternal": false,
|
||||
|
||||
@ -1769,112 +1769,112 @@
|
||||
"generators": {},
|
||||
"path": "/packages/nx"
|
||||
},
|
||||
"nx-plugin": {
|
||||
"plugin": {
|
||||
"githubRoot": "https://github.com/nrwl/nx/blob/master",
|
||||
"name": "nx-plugin",
|
||||
"name": "plugin",
|
||||
"packageName": "@nrwl/nx-plugin",
|
||||
"description": "This plugin is used to create Nx plugins! It contains generators for generating common plugin features like generators, executors, migrations and more.",
|
||||
"documents": {
|
||||
"/packages/nx-plugin/documents/overview": {
|
||||
"/packages/plugin/documents/overview": {
|
||||
"id": "overview",
|
||||
"name": "Overview",
|
||||
"description": "This plugin is used to create Nx plugins! It contains generators for generating common plugin features like generators, executors, migrations and more.",
|
||||
"file": "generated/packages/nx-plugin/documents/overview",
|
||||
"file": "generated/packages/plugin/documents/overview",
|
||||
"itemList": [],
|
||||
"isExternal": false,
|
||||
"path": "/packages/nx-plugin/documents/overview",
|
||||
"path": "/packages/plugin/documents/overview",
|
||||
"tags": [],
|
||||
"originalFilePath": "shared/packages/nx-plugin/nx-plugin"
|
||||
"originalFilePath": "shared/packages/plugin/plugin"
|
||||
}
|
||||
},
|
||||
"root": "/packages/nx-plugin",
|
||||
"source": "/packages/nx-plugin/src",
|
||||
"root": "/packages/plugin",
|
||||
"source": "/packages/plugin/src",
|
||||
"executors": {
|
||||
"/packages/nx-plugin/executors/e2e": {
|
||||
"/packages/plugin/executors/e2e": {
|
||||
"description": "Creates and runs the E2E tests for an Nx Plugin.",
|
||||
"file": "generated/packages/nx-plugin/executors/e2e.json",
|
||||
"file": "generated/packages/plugin/executors/e2e.json",
|
||||
"hidden": false,
|
||||
"name": "e2e",
|
||||
"originalFilePath": "/packages/nx-plugin/src/executors/e2e/schema.json",
|
||||
"path": "/packages/nx-plugin/executors/e2e",
|
||||
"originalFilePath": "/packages/plugin/src/executors/e2e/schema.json",
|
||||
"path": "/packages/plugin/executors/e2e",
|
||||
"type": "executor"
|
||||
}
|
||||
},
|
||||
"generators": {
|
||||
"/packages/nx-plugin/generators/plugin": {
|
||||
"/packages/plugin/generators/plugin": {
|
||||
"description": "Create a Nx Plugin.",
|
||||
"file": "generated/packages/nx-plugin/generators/plugin.json",
|
||||
"file": "generated/packages/plugin/generators/plugin.json",
|
||||
"hidden": false,
|
||||
"name": "plugin",
|
||||
"originalFilePath": "/packages/nx-plugin/src/generators/plugin/schema.json",
|
||||
"path": "/packages/nx-plugin/generators/plugin",
|
||||
"originalFilePath": "/packages/plugin/src/generators/plugin/schema.json",
|
||||
"path": "/packages/plugin/generators/plugin",
|
||||
"type": "generator"
|
||||
},
|
||||
"/packages/nx-plugin/generators/create-package": {
|
||||
"/packages/plugin/generators/create-package": {
|
||||
"description": "Create a package which can be used by npx to create a new workspace",
|
||||
"file": "generated/packages/nx-plugin/generators/create-package.json",
|
||||
"file": "generated/packages/plugin/generators/create-package.json",
|
||||
"hidden": false,
|
||||
"name": "create-package",
|
||||
"originalFilePath": "/packages/nx-plugin/src/generators/create-package/schema.json",
|
||||
"path": "/packages/nx-plugin/generators/create-package",
|
||||
"originalFilePath": "/packages/plugin/src/generators/create-package/schema.json",
|
||||
"path": "/packages/plugin/generators/create-package",
|
||||
"type": "generator"
|
||||
},
|
||||
"/packages/nx-plugin/generators/e2e-project": {
|
||||
"/packages/plugin/generators/e2e-project": {
|
||||
"description": "Create a E2E application for a Nx Plugin.",
|
||||
"file": "generated/packages/nx-plugin/generators/e2e-project.json",
|
||||
"file": "generated/packages/plugin/generators/e2e-project.json",
|
||||
"hidden": false,
|
||||
"name": "e2e-project",
|
||||
"originalFilePath": "/packages/nx-plugin/src/generators/e2e-project/schema.json",
|
||||
"path": "/packages/nx-plugin/generators/e2e-project",
|
||||
"originalFilePath": "/packages/plugin/src/generators/e2e-project/schema.json",
|
||||
"path": "/packages/plugin/generators/e2e-project",
|
||||
"type": "generator"
|
||||
},
|
||||
"/packages/nx-plugin/generators/migration": {
|
||||
"/packages/plugin/generators/migration": {
|
||||
"description": "Create a migration for an Nx Plugin.",
|
||||
"file": "generated/packages/nx-plugin/generators/migration.json",
|
||||
"file": "generated/packages/plugin/generators/migration.json",
|
||||
"hidden": false,
|
||||
"name": "migration",
|
||||
"originalFilePath": "/packages/nx-plugin/src/generators/migration/schema.json",
|
||||
"path": "/packages/nx-plugin/generators/migration",
|
||||
"originalFilePath": "/packages/plugin/src/generators/migration/schema.json",
|
||||
"path": "/packages/plugin/generators/migration",
|
||||
"type": "generator"
|
||||
},
|
||||
"/packages/nx-plugin/generators/generator": {
|
||||
"/packages/plugin/generators/generator": {
|
||||
"description": "Create a generator for an Nx Plugin.",
|
||||
"file": "generated/packages/nx-plugin/generators/generator.json",
|
||||
"file": "generated/packages/plugin/generators/generator.json",
|
||||
"hidden": false,
|
||||
"name": "generator",
|
||||
"originalFilePath": "/packages/nx-plugin/src/generators/generator/schema.json",
|
||||
"path": "/packages/nx-plugin/generators/generator",
|
||||
"originalFilePath": "/packages/plugin/src/generators/generator/schema.json",
|
||||
"path": "/packages/plugin/generators/generator",
|
||||
"type": "generator"
|
||||
},
|
||||
"/packages/nx-plugin/generators/executor": {
|
||||
"/packages/plugin/generators/executor": {
|
||||
"description": "Create an executor for an Nx Plugin.",
|
||||
"file": "generated/packages/nx-plugin/generators/executor.json",
|
||||
"file": "generated/packages/plugin/generators/executor.json",
|
||||
"hidden": false,
|
||||
"name": "executor",
|
||||
"originalFilePath": "/packages/nx-plugin/src/generators/executor/schema.json",
|
||||
"path": "/packages/nx-plugin/generators/executor",
|
||||
"originalFilePath": "/packages/plugin/src/generators/executor/schema.json",
|
||||
"path": "/packages/plugin/generators/executor",
|
||||
"type": "generator"
|
||||
},
|
||||
"/packages/nx-plugin/generators/plugin-lint-checks": {
|
||||
"/packages/plugin/generators/plugin-lint-checks": {
|
||||
"description": "Adds linting configuration to validate common json files for nx plugins.",
|
||||
"file": "generated/packages/nx-plugin/generators/plugin-lint-checks.json",
|
||||
"file": "generated/packages/plugin/generators/plugin-lint-checks.json",
|
||||
"hidden": false,
|
||||
"name": "plugin-lint-checks",
|
||||
"originalFilePath": "/packages/nx-plugin/src/generators/lint-checks/schema.json",
|
||||
"path": "/packages/nx-plugin/generators/plugin-lint-checks",
|
||||
"originalFilePath": "/packages/plugin/src/generators/lint-checks/schema.json",
|
||||
"path": "/packages/plugin/generators/plugin-lint-checks",
|
||||
"type": "generator"
|
||||
},
|
||||
"/packages/nx-plugin/generators/preset": {
|
||||
"/packages/plugin/generators/preset": {
|
||||
"description": "Initializes a workspace with an nx-plugin inside of it. Use as: `create-nx-workspace --preset @nrwl/nx-plugin`.",
|
||||
"file": "generated/packages/nx-plugin/generators/preset.json",
|
||||
"file": "generated/packages/plugin/generators/preset.json",
|
||||
"hidden": true,
|
||||
"name": "preset",
|
||||
"originalFilePath": "/packages/nx-plugin/src/generators/preset/schema.json",
|
||||
"path": "/packages/nx-plugin/generators/preset",
|
||||
"originalFilePath": "/packages/plugin/src/generators/preset/schema.json",
|
||||
"path": "/packages/plugin/generators/preset",
|
||||
"type": "generator"
|
||||
}
|
||||
},
|
||||
"path": "/packages/nx-plugin"
|
||||
"path": "/packages/plugin"
|
||||
},
|
||||
"react": {
|
||||
"githubRoot": "https://github.com/nrwl/nx/blob/master",
|
||||
|
||||
@ -1759,104 +1759,104 @@
|
||||
"id": "overview",
|
||||
"name": "Overview",
|
||||
"description": "This plugin is used to create Nx plugins! It contains generators for generating common plugin features like generators, executors, migrations and more.",
|
||||
"file": "generated/packages/nx-plugin/documents/overview",
|
||||
"file": "generated/packages/plugin/documents/overview",
|
||||
"itemList": [],
|
||||
"isExternal": false,
|
||||
"path": "nx-plugin/documents/overview",
|
||||
"path": "plugin/documents/overview",
|
||||
"tags": [],
|
||||
"originalFilePath": "shared/packages/nx-plugin/nx-plugin"
|
||||
"originalFilePath": "shared/packages/plugin/plugin"
|
||||
}
|
||||
],
|
||||
"executors": [
|
||||
{
|
||||
"description": "Creates and runs the E2E tests for an Nx Plugin.",
|
||||
"file": "generated/packages/nx-plugin/executors/e2e.json",
|
||||
"file": "generated/packages/plugin/executors/e2e.json",
|
||||
"hidden": false,
|
||||
"name": "e2e",
|
||||
"originalFilePath": "/packages/nx-plugin/src/executors/e2e/schema.json",
|
||||
"path": "nx-plugin/executors/e2e",
|
||||
"originalFilePath": "/packages/plugin/src/executors/e2e/schema.json",
|
||||
"path": "plugin/executors/e2e",
|
||||
"type": "executor"
|
||||
}
|
||||
],
|
||||
"generators": [
|
||||
{
|
||||
"description": "Create a Nx Plugin.",
|
||||
"file": "generated/packages/nx-plugin/generators/plugin.json",
|
||||
"file": "generated/packages/plugin/generators/plugin.json",
|
||||
"hidden": false,
|
||||
"name": "plugin",
|
||||
"originalFilePath": "/packages/nx-plugin/src/generators/plugin/schema.json",
|
||||
"path": "nx-plugin/generators/plugin",
|
||||
"originalFilePath": "/packages/plugin/src/generators/plugin/schema.json",
|
||||
"path": "plugin/generators/plugin",
|
||||
"type": "generator"
|
||||
},
|
||||
{
|
||||
"description": "Create a package which can be used by npx to create a new workspace",
|
||||
"file": "generated/packages/nx-plugin/generators/create-package.json",
|
||||
"file": "generated/packages/plugin/generators/create-package.json",
|
||||
"hidden": false,
|
||||
"name": "create-package",
|
||||
"originalFilePath": "/packages/nx-plugin/src/generators/create-package/schema.json",
|
||||
"path": "nx-plugin/generators/create-package",
|
||||
"originalFilePath": "/packages/plugin/src/generators/create-package/schema.json",
|
||||
"path": "plugin/generators/create-package",
|
||||
"type": "generator"
|
||||
},
|
||||
{
|
||||
"description": "Create a E2E application for a Nx Plugin.",
|
||||
"file": "generated/packages/nx-plugin/generators/e2e-project.json",
|
||||
"file": "generated/packages/plugin/generators/e2e-project.json",
|
||||
"hidden": false,
|
||||
"name": "e2e-project",
|
||||
"originalFilePath": "/packages/nx-plugin/src/generators/e2e-project/schema.json",
|
||||
"path": "nx-plugin/generators/e2e-project",
|
||||
"originalFilePath": "/packages/plugin/src/generators/e2e-project/schema.json",
|
||||
"path": "plugin/generators/e2e-project",
|
||||
"type": "generator"
|
||||
},
|
||||
{
|
||||
"description": "Create a migration for an Nx Plugin.",
|
||||
"file": "generated/packages/nx-plugin/generators/migration.json",
|
||||
"file": "generated/packages/plugin/generators/migration.json",
|
||||
"hidden": false,
|
||||
"name": "migration",
|
||||
"originalFilePath": "/packages/nx-plugin/src/generators/migration/schema.json",
|
||||
"path": "nx-plugin/generators/migration",
|
||||
"originalFilePath": "/packages/plugin/src/generators/migration/schema.json",
|
||||
"path": "plugin/generators/migration",
|
||||
"type": "generator"
|
||||
},
|
||||
{
|
||||
"description": "Create a generator for an Nx Plugin.",
|
||||
"file": "generated/packages/nx-plugin/generators/generator.json",
|
||||
"file": "generated/packages/plugin/generators/generator.json",
|
||||
"hidden": false,
|
||||
"name": "generator",
|
||||
"originalFilePath": "/packages/nx-plugin/src/generators/generator/schema.json",
|
||||
"path": "nx-plugin/generators/generator",
|
||||
"originalFilePath": "/packages/plugin/src/generators/generator/schema.json",
|
||||
"path": "plugin/generators/generator",
|
||||
"type": "generator"
|
||||
},
|
||||
{
|
||||
"description": "Create an executor for an Nx Plugin.",
|
||||
"file": "generated/packages/nx-plugin/generators/executor.json",
|
||||
"file": "generated/packages/plugin/generators/executor.json",
|
||||
"hidden": false,
|
||||
"name": "executor",
|
||||
"originalFilePath": "/packages/nx-plugin/src/generators/executor/schema.json",
|
||||
"path": "nx-plugin/generators/executor",
|
||||
"originalFilePath": "/packages/plugin/src/generators/executor/schema.json",
|
||||
"path": "plugin/generators/executor",
|
||||
"type": "generator"
|
||||
},
|
||||
{
|
||||
"description": "Adds linting configuration to validate common json files for nx plugins.",
|
||||
"file": "generated/packages/nx-plugin/generators/plugin-lint-checks.json",
|
||||
"file": "generated/packages/plugin/generators/plugin-lint-checks.json",
|
||||
"hidden": false,
|
||||
"name": "plugin-lint-checks",
|
||||
"originalFilePath": "/packages/nx-plugin/src/generators/lint-checks/schema.json",
|
||||
"path": "nx-plugin/generators/plugin-lint-checks",
|
||||
"originalFilePath": "/packages/plugin/src/generators/lint-checks/schema.json",
|
||||
"path": "plugin/generators/plugin-lint-checks",
|
||||
"type": "generator"
|
||||
},
|
||||
{
|
||||
"description": "Initializes a workspace with an nx-plugin inside of it. Use as: `create-nx-workspace --preset @nrwl/nx-plugin`.",
|
||||
"file": "generated/packages/nx-plugin/generators/preset.json",
|
||||
"file": "generated/packages/plugin/generators/preset.json",
|
||||
"hidden": true,
|
||||
"name": "preset",
|
||||
"originalFilePath": "/packages/nx-plugin/src/generators/preset/schema.json",
|
||||
"path": "nx-plugin/generators/preset",
|
||||
"originalFilePath": "/packages/plugin/src/generators/preset/schema.json",
|
||||
"path": "plugin/generators/preset",
|
||||
"type": "generator"
|
||||
}
|
||||
],
|
||||
"githubRoot": "https://github.com/nrwl/nx/blob/master",
|
||||
"name": "nx-plugin",
|
||||
"name": "plugin",
|
||||
"packageName": "@nrwl/nx-plugin",
|
||||
"root": "/packages/nx-plugin",
|
||||
"source": "/packages/nx-plugin/src"
|
||||
"root": "/packages/plugin",
|
||||
"source": "/packages/plugin/src"
|
||||
},
|
||||
{
|
||||
"description": "The React plugin for Nx contains executors and generators for managing React applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Jest, Cypress, and Storybook.\n\n- Generators for applications, libraries, components, hooks, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "e2e",
|
||||
"implementation": "/packages/nx-plugin/src/executors/e2e/e2e.impl.ts",
|
||||
"implementation": "/packages/plugin/src/executors/e2e/e2e.impl.ts",
|
||||
"schema": {
|
||||
"version": 2,
|
||||
"outputCapture": "direct-nodejs",
|
||||
@ -203,6 +203,6 @@
|
||||
"description": "Creates and runs the E2E tests for an Nx Plugin.",
|
||||
"aliases": [],
|
||||
"hidden": false,
|
||||
"path": "/packages/nx-plugin/src/executors/e2e/schema.json",
|
||||
"path": "/packages/plugin/src/executors/e2e/schema.json",
|
||||
"type": "executor"
|
||||
}
|
||||
@ -67,9 +67,9 @@
|
||||
"presets": []
|
||||
},
|
||||
"description": "Create a package which can be used by npx to create a new workspace",
|
||||
"implementation": "/packages/nx-plugin/src/generators/create-package/create-package.ts",
|
||||
"implementation": "/packages/plugin/src/generators/create-package/create-package.ts",
|
||||
"aliases": [],
|
||||
"hidden": false,
|
||||
"path": "/packages/nx-plugin/src/generators/create-package/schema.json",
|
||||
"path": "/packages/plugin/src/generators/create-package/schema.json",
|
||||
"type": "generator"
|
||||
}
|
||||
@ -57,9 +57,9 @@
|
||||
"presets": []
|
||||
},
|
||||
"description": "Create a E2E application for a Nx Plugin.",
|
||||
"implementation": "/packages/nx-plugin/src/generators/e2e-project/e2e.ts",
|
||||
"implementation": "/packages/plugin/src/generators/e2e-project/e2e.ts",
|
||||
"aliases": [],
|
||||
"hidden": false,
|
||||
"path": "/packages/nx-plugin/src/generators/e2e-project/schema.json",
|
||||
"path": "/packages/plugin/src/generators/e2e-project/schema.json",
|
||||
"type": "generator"
|
||||
}
|
||||
@ -62,9 +62,9 @@
|
||||
"presets": []
|
||||
},
|
||||
"description": "Create an executor for an Nx Plugin.",
|
||||
"implementation": "/packages/nx-plugin/src/generators/executor/executor.ts",
|
||||
"implementation": "/packages/plugin/src/generators/executor/executor.ts",
|
||||
"aliases": [],
|
||||
"hidden": false,
|
||||
"path": "/packages/nx-plugin/src/generators/executor/schema.json",
|
||||
"path": "/packages/plugin/src/generators/executor/schema.json",
|
||||
"type": "generator"
|
||||
}
|
||||
@ -58,9 +58,9 @@
|
||||
"presets": []
|
||||
},
|
||||
"description": "Create a generator for an Nx Plugin.",
|
||||
"implementation": "/packages/nx-plugin/src/generators/generator/generator.ts",
|
||||
"implementation": "/packages/plugin/src/generators/generator/generator.ts",
|
||||
"aliases": [],
|
||||
"hidden": false,
|
||||
"path": "/packages/nx-plugin/src/generators/generator/schema.json",
|
||||
"path": "/packages/plugin/src/generators/generator/schema.json",
|
||||
"type": "generator"
|
||||
}
|
||||
@ -57,9 +57,9 @@
|
||||
"presets": []
|
||||
},
|
||||
"description": "Create a migration for an Nx Plugin.",
|
||||
"implementation": "/packages/nx-plugin/src/generators/migration/migration.ts",
|
||||
"implementation": "/packages/plugin/src/generators/migration/migration.ts",
|
||||
"aliases": [],
|
||||
"hidden": false,
|
||||
"path": "/packages/nx-plugin/src/generators/migration/schema.json",
|
||||
"path": "/packages/plugin/src/generators/migration/schema.json",
|
||||
"type": "generator"
|
||||
}
|
||||
@ -26,9 +26,9 @@
|
||||
"presets": []
|
||||
},
|
||||
"description": "Adds linting configuration to validate common json files for nx plugins.",
|
||||
"implementation": "/packages/nx-plugin/src/generators/lint-checks/generator.ts",
|
||||
"implementation": "/packages/plugin/src/generators/lint-checks/generator.ts",
|
||||
"aliases": [],
|
||||
"hidden": false,
|
||||
"path": "/packages/nx-plugin/src/generators/lint-checks/schema.json",
|
||||
"path": "/packages/plugin/src/generators/lint-checks/schema.json",
|
||||
"type": "generator"
|
||||
}
|
||||
@ -93,9 +93,9 @@
|
||||
"presets": []
|
||||
},
|
||||
"description": "Create a Nx Plugin.",
|
||||
"implementation": "/packages/nx-plugin/src/generators/plugin/plugin.ts",
|
||||
"implementation": "/packages/plugin/src/generators/plugin/plugin.ts",
|
||||
"aliases": [],
|
||||
"hidden": false,
|
||||
"path": "/packages/nx-plugin/src/generators/plugin/schema.json",
|
||||
"path": "/packages/plugin/src/generators/plugin/schema.json",
|
||||
"type": "generator"
|
||||
}
|
||||
@ -25,8 +25,8 @@
|
||||
"description": "Initializes a workspace with an nx-plugin inside of it. Use as: `create-nx-workspace --preset @nrwl/nx-plugin`.",
|
||||
"hidden": true,
|
||||
"x-use-standalone-layout": true,
|
||||
"implementation": "/packages/nx-plugin/src/generators/preset/generator.ts",
|
||||
"implementation": "/packages/plugin/src/generators/preset/generator.ts",
|
||||
"aliases": [],
|
||||
"path": "/packages/nx-plugin/src/generators/preset/schema.json",
|
||||
"path": "/packages/plugin/src/generators/preset/schema.json",
|
||||
"type": "generator"
|
||||
}
|
||||
@ -1627,14 +1627,14 @@
|
||||
},
|
||||
{
|
||||
"name": "Nx Plugin",
|
||||
"id": "nx-plugin",
|
||||
"id": "plugin",
|
||||
"description": "Plugin package.",
|
||||
"itemList": [
|
||||
{
|
||||
"id": "overview",
|
||||
"name": "Overview",
|
||||
"path": "/packages/nx-plugin",
|
||||
"file": "shared/packages/nx-plugin/nx-plugin"
|
||||
"path": "/packages/plugin",
|
||||
"file": "shared/packages/plugin/plugin"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@ -245,8 +245,8 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "nx-plugin",
|
||||
"packageName": "nx-plugin",
|
||||
"name": "plugin",
|
||||
"packageName": "plugin",
|
||||
"description": "This plugin is used to create Nx plugins! It contains generators for generating common plugin features like generators, executors, migrations and more.",
|
||||
"path": "generated/packages/nx-plugin.json",
|
||||
"schemas": {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Workspace Executors
|
||||
|
||||
In Nx 13.10+, local nx plugins can contain executors that are used in the workspace. When creating a custom executor for your workspace, look into the [nx-plugin guide](/packages/nx-plugin) to simplify the build process.
|
||||
In Nx 13.10+, local nx plugins can contain executors that are used in the workspace. When creating a custom executor for your workspace, look into the [nx-plugin guide](/packages/plugin) to simplify the build process.
|
||||
|
||||
## Converting workspace executors to local executors
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@ In Nx 13.10, we introduced the ability to run generators from Nx plugins in the
|
||||
|
||||
By using a "local" plugin, you can set the plugin as your workspace's default collection and get several other affordances that are not provided to workspace generators. This is the preferred method for "workspace generators", and existing generators will eventually be transitioned to use a local plugin.
|
||||
|
||||
Check the [nx-plugin guide](/packages/nx-plugin) for information on creating a new plugin.
|
||||
Check the [nx-plugin guide](/packages/plugin) for information on creating a new plugin.
|
||||
|
||||
## Converting workspace generators to local generators
|
||||
|
||||
|
||||
@ -26,11 +26,11 @@ Browse through plugins built by Nx and the community.
|
||||
|
||||
{% /persona %}
|
||||
|
||||
{% persona type="create" title="Build a Plugin" url="/packages/nx-plugin" %}
|
||||
{% persona type="create" title="Build a Plugin" url="/packages/plugin" %}
|
||||
|
||||
Build a plugin for use in your own repo or to share with others.
|
||||
|
||||
- [Build a plugin](/packages/nx-plugin)
|
||||
- [Build a plugin](/packages/plugin)
|
||||
|
||||
{% /persona %}
|
||||
|
||||
@ -56,7 +56,7 @@ All the core plugins are written using [Nx Devkit](/packages/devkit), and you ca
|
||||
executors.
|
||||
|
||||
{% callout type="check" title="Plugins!" %}
|
||||
The Nx team maintains a core set of plugins for many application and tooling frameworks. You can write [generators](/recipes/generators/local-generators) and [executors](/recipes/executors/creating-custom-executors) in a plugin to use in your own repo or share it with the community. The [Nx Plugin](/packages/nx-plugin) plugin provides guidance on how you can build your own custom plugins.
|
||||
The Nx team maintains a core set of plugins for many application and tooling frameworks. You can write [generators](/recipes/generators/local-generators) and [executors](/recipes/executors/creating-custom-executors) in a plugin to use in your own repo or share it with the community. The [Nx Plugin](/packages/plugin) plugin provides guidance on how you can build your own custom plugins.
|
||||
{% /callout %}
|
||||
|
||||
### Pay as you go
|
||||
|
||||
@ -6,6 +6,6 @@ export default {
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
|
||||
maxWorkers: 1,
|
||||
globals: {},
|
||||
displayName: 'e2e-nx-plugin',
|
||||
displayName: 'e2e-plugin',
|
||||
preset: '../../jest.preset.js',
|
||||
};
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "e2e-nx-plugin",
|
||||
"name": "e2e-plugin",
|
||||
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
||||
"sourceRoot": "e2e/nx-plugin",
|
||||
"sourceRoot": "e2e/plugin",
|
||||
"projectType": "application",
|
||||
"targets": {
|
||||
"e2e": {},
|
||||
@ -268,28 +268,28 @@ describe('nx-dev: Packages Section', () => {
|
||||
path: '/packages/nx/executors/run-commands',
|
||||
},
|
||||
{ title: 'nx:run-script', path: '/packages/nx/executors/run-script' },
|
||||
{ title: 'nx-plugin', path: '/packages/nx-plugin' },
|
||||
{ title: 'nx-plugin', path: '/packages/plugin' },
|
||||
{
|
||||
title: '@nrwl/nx-plugin:plugin',
|
||||
path: '/packages/nx-plugin/generators/plugin',
|
||||
path: '/packages/plugin/generators/plugin',
|
||||
},
|
||||
{
|
||||
title: '@nrwl/nx-plugin:e2e-project',
|
||||
path: '/packages/nx-plugin/generators/e2e-project',
|
||||
path: '/packages/plugin/generators/e2e-project',
|
||||
},
|
||||
{
|
||||
title: '@nrwl/nx-plugin:migration',
|
||||
path: '/packages/nx-plugin/generators/migration',
|
||||
path: '/packages/plugin/generators/migration',
|
||||
},
|
||||
{
|
||||
title: '@nrwl/nx-plugin:generator',
|
||||
path: '/packages/nx-plugin/generators/generator',
|
||||
path: '/packages/plugin/generators/generator',
|
||||
},
|
||||
{
|
||||
title: '@nrwl/nx-plugin:executor',
|
||||
path: '/packages/nx-plugin/generators/executor',
|
||||
path: '/packages/plugin/generators/executor',
|
||||
},
|
||||
{ title: '@nrwl/nx-plugin:e2e', path: '/packages/nx-plugin/executors/e2e' },
|
||||
{ title: '@nrwl/nx-plugin:e2e', path: '/packages/plugin/executors/e2e' },
|
||||
{ title: '@nrwl/react', path: '/packages/react' },
|
||||
{ title: '@nrwl/react:init', path: '/packages/react/generators/init' },
|
||||
{
|
||||
|
||||
@ -144,11 +144,19 @@ const schemaUrls = {
|
||||
'/react-native/start': '/packages/react-native/executors/start',
|
||||
'/react-native/storybook': '/packages/react-native/executors/storybook',
|
||||
'/react-native/sync-deps': '/packages/react-native/executors/sync-deps',
|
||||
'/nx-plugin/executor': '/packages/nx-plugin/generators/executor',
|
||||
'/nx-plugin/migration': '/packages/nx-plugin/generators/migration',
|
||||
'/nx-plugin/plugin': '/packages/nx-plugin/generators/plugin',
|
||||
'/nx-plugin/schematic': '/packages/nx-plugin/generators/generator',
|
||||
'/nx-plugin/e2e': '/packages/nx-plugin/executors/e2e',
|
||||
'/packages/nx-plugin/generators/executor':
|
||||
'/packages/plugin/generators/executor',
|
||||
'/packages/nx-plugin/generators/migration':
|
||||
'/packages/plugin/generators/migration',
|
||||
'/packages/nx-plugin/generators/plugin': '/packages/plugin/generators/plugin',
|
||||
'/packages/nx-plugin/generators/schematic':
|
||||
'/packages/plugin/generators/generator',
|
||||
'/packages/nx-plugin/generators/e2e': '/packages/plugin/executors/e2e',
|
||||
'/nx-plugin/executor': '/packages/plugin/generators/executor',
|
||||
'/nx-plugin/migration': '/packages/plugin/generators/migration',
|
||||
'/nx-plugin/plugin': '/packages/plugin/generators/plugin',
|
||||
'/nx-plugin/schematic': '/packages/plugin/generators/generator',
|
||||
'/nx-plugin/e2e': '/packages/plugin/executors/e2e',
|
||||
};
|
||||
|
||||
/**
|
||||
@ -296,7 +304,7 @@ const overviewUrls = {
|
||||
'/next/overview': '/packages/next',
|
||||
'/detox/overview': '/packages/detox',
|
||||
'/react-native/overview': '/packages/react-native',
|
||||
'/nx-plugin/overview': '/packages/nx-plugin',
|
||||
'/nx-plugin/overview': '/packages/plugin',
|
||||
};
|
||||
|
||||
/**
|
||||
@ -428,7 +436,7 @@ const packagesIndexes = {
|
||||
'/nx': '/packages/nx',
|
||||
'/workspace': '/packages/workspace',
|
||||
'/devkit': '/packages/devkit',
|
||||
'/nx-plugin': '/packages/nx-plugin',
|
||||
'/nx-plugin': '/packages/plugin',
|
||||
'/angular': '/packages/angular',
|
||||
'/cypress': '/packages/cypress',
|
||||
'/detox': '/packages/detox',
|
||||
|
||||
@ -16,7 +16,7 @@ export const iconsMap: Record<string, string> = {
|
||||
next: '/images/icons/nextdotjs.svg',
|
||||
node: '/images/icons/nodedotjs.svg',
|
||||
nx: '/images/icons/nx.svg',
|
||||
'nx-plugin': '/images/icons/nx.svg',
|
||||
plugin: '/images/icons/nx.svg',
|
||||
react: '/images/icons/react.svg',
|
||||
'react-native': '/images/icons/react.svg',
|
||||
rollup: '/images/icons/rollup.svg',
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
## @nrwl/nx-plugin has been deprecated!
|
||||
|
||||
@nrwl/nx-plugin has been deprecated in favor of [@nx/nx-plugin](https://www.npmjs.com/package/@nx/nx-plugin). Please use that instead.
|
||||
@nrwl/nx-plugin has been deprecated in favor of [@nx/plugin](https://www.npmjs.com/package/@nx/plugin). Please use that instead.
|
||||
|
||||
@nrwl/nx-plugin will no longer be published in Nx v17.
|
||||
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
{
|
||||
"builders": {
|
||||
"e2e": {
|
||||
"implementation": "@nx/nx-plugin/src/executors/e2e/compat",
|
||||
"schema": "@nx/nx-plugin/src/executors/e2e/schema.json",
|
||||
"implementation": "@nx/plugin/src/executors/e2e/compat",
|
||||
"schema": "@nx/plugin/src/executors/e2e/schema.json",
|
||||
"description": "Creates and runs the E2E tests for an Nx Plugin."
|
||||
}
|
||||
},
|
||||
"executors": {
|
||||
"e2e": {
|
||||
"implementation": "@nx/nx-plugin/src/executors/e2e/e2e.impl",
|
||||
"schema": "@nx/nx-plugin/src/executors/e2e/schema.json",
|
||||
"implementation": "@nx/plugin/src/executors/e2e/e2e.impl",
|
||||
"schema": "@nx/plugin/src/executors/e2e/schema.json",
|
||||
"description": "Creates and runs the E2E tests for an Nx Plugin."
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{
|
||||
"extends": ["@nx/nx-plugin"],
|
||||
"extends": ["@nx/plugin"],
|
||||
"schematics": {}
|
||||
}
|
||||
|
||||
@ -1 +1 @@
|
||||
export * from '@nx/nx-plugin/generators';
|
||||
export * from '@nx/plugin/generators';
|
||||
|
||||
@ -24,12 +24,12 @@
|
||||
"schematics": "./generators.json",
|
||||
"builders": "./executors.json",
|
||||
"dependencies": {
|
||||
"@nx/nx-plugin": "file:../../packages/nx-plugin"
|
||||
"@nx/plugin": "file:../../packages/plugin"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"nx-migrations": {
|
||||
"migrations": "@nx/nx-plugin/migrations.json"
|
||||
"migrations": "@nx/plugin/migrations.json"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1 +1 @@
|
||||
export * from '@nx/nx-plugin/testing';
|
||||
export * from '@nx/plugin/testing';
|
||||
|
||||
@ -150,10 +150,7 @@ async function main(parsedArgs: yargs.Arguments<CreateNxPluginArguments>) {
|
||||
],
|
||||
});
|
||||
|
||||
const workspaceInfo = await createWorkspace(
|
||||
'@nx/nx-plugin',
|
||||
populatedArguments
|
||||
);
|
||||
const workspaceInfo = await createWorkspace('@nx/plugin', populatedArguments);
|
||||
|
||||
showNxWarning(parsedArgs.pluginName);
|
||||
|
||||
|
||||
@ -65,5 +65,5 @@
|
||||
},
|
||||
"lint": {}
|
||||
},
|
||||
"implicitDependencies": ["nx-plugin"]
|
||||
"implicitDependencies": ["plugin"]
|
||||
}
|
||||
|
||||
@ -57,7 +57,7 @@ export function fetchCorePlugins(): CorePlugin[] {
|
||||
capabilities: 'executors',
|
||||
},
|
||||
{
|
||||
name: '@nx/nx-plugin',
|
||||
name: '@nx/plugin',
|
||||
capabilities: 'executors,generators',
|
||||
},
|
||||
{
|
||||
|
||||
@ -5,7 +5,7 @@ export default {
|
||||
},
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
|
||||
globals: {},
|
||||
displayName: 'nx-plugin',
|
||||
displayName: 'plugin',
|
||||
testEnvironment: 'node',
|
||||
preset: '../../jest.preset.js',
|
||||
};
|
||||
@ -39,7 +39,7 @@
|
||||
"update-16-0-0-add-nx-packages": {
|
||||
"cli": "nx",
|
||||
"version": "16.0.0-beta.1",
|
||||
"description": "Replace @nrwl/nx-plugin with @nx/nx-plugin",
|
||||
"description": "Replace @nrwl/nx-plugin with @nx/plugin",
|
||||
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages"
|
||||
}
|
||||
}
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@nx/nx-plugin",
|
||||
"name": "@nx/plugin",
|
||||
"version": "0.0.1",
|
||||
"private": false,
|
||||
"description": "This plugin is used to create Nx plugins! It contains generators for generating common plugin features like generators, executors, migrations and more.",
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "nx-plugin",
|
||||
"name": "plugin",
|
||||
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
||||
"sourceRoot": "packages/nx-plugin",
|
||||
"sourceRoot": "packages/plugin",
|
||||
"projectType": "library",
|
||||
"targets": {
|
||||
"test": {},
|
||||
@ -10,29 +10,29 @@
|
||||
"options": {
|
||||
"assets": [
|
||||
{
|
||||
"input": "packages/nx-plugin",
|
||||
"input": "packages/plugin",
|
||||
"glob": "**/files/**",
|
||||
"output": "/"
|
||||
},
|
||||
{
|
||||
"input": "packages/nx-plugin",
|
||||
"input": "packages/plugin",
|
||||
"glob": "**/files/**/.gitkeep",
|
||||
"output": "/"
|
||||
},
|
||||
{
|
||||
"input": "packages/nx-plugin",
|
||||
"input": "packages/plugin",
|
||||
"glob": "**/*.json",
|
||||
"ignore": ["**/tsconfig*.json", "project.json", ".eslintrc.json"],
|
||||
"output": "/"
|
||||
},
|
||||
{
|
||||
"input": "packages/nx-plugin",
|
||||
"input": "packages/plugin",
|
||||
"glob": "**/*.js",
|
||||
"ignore": ["**/jest.config.js"],
|
||||
"output": "/"
|
||||
},
|
||||
{
|
||||
"input": "packages/nx-plugin",
|
||||
"input": "packages/plugin",
|
||||
"glob": "**/*.d.ts",
|
||||
"output": "/"
|
||||
},
|
||||
@ -46,11 +46,11 @@
|
||||
},
|
||||
"build": {
|
||||
"executor": "nx:run-commands",
|
||||
"outputs": ["{workspaceRoot}/build/packages/nx-plugin"],
|
||||
"outputs": ["{workspaceRoot}/build/packages/plugin"],
|
||||
"options": {
|
||||
"commands": [
|
||||
"node ./scripts/copy-readme.js nx-plugin",
|
||||
"node ./scripts/add-dependency-to-build.js nx-plugin @nrwl/nx-plugin"
|
||||
"node ./scripts/copy-readme.js plugin",
|
||||
"node ./scripts/add-dependency-to-build.js plugin @nrwl/nx-plugin"
|
||||
]
|
||||
}
|
||||
},
|
||||
@ -2,7 +2,7 @@ import {
|
||||
uniq,
|
||||
runCreatePackageCli,
|
||||
removeTmpProject,
|
||||
} from '@nx/nx-plugin/testing';
|
||||
} from '@nx/plugin/testing';
|
||||
|
||||
describe('<%= name %> e2e', () => {
|
||||
const project = uniq('<%= name %>');
|
||||
@ -116,7 +116,7 @@ describe('NxPlugin e2e-project Generator', () => {
|
||||
expect(project.root).toEqual('apps/my-plugin-e2e');
|
||||
expect(project.targets.e2e).toBeTruthy();
|
||||
expect(project.targets.e2e).toMatchObject({
|
||||
executor: '@nx/nx-plugin:e2e',
|
||||
executor: '@nx/plugin:e2e',
|
||||
options: expect.objectContaining({ target: 'my-plugin:build' }),
|
||||
});
|
||||
});
|
||||
@ -77,7 +77,7 @@ function updateWorkspaceConfiguration(host: Tree, options: NormalizedSchema) {
|
||||
sourceRoot: `${options.projectRoot}/tests`,
|
||||
targets: {
|
||||
e2e: {
|
||||
executor: '@nx/nx-plugin:e2e',
|
||||
executor: '@nx/plugin:e2e',
|
||||
options: { target: `${options.pluginName}:build` },
|
||||
},
|
||||
},
|
||||
@ -5,7 +5,7 @@ import {
|
||||
runNxCommandAsync,
|
||||
runNxCommand,
|
||||
uniq,
|
||||
} from '@nx/nx-plugin/testing';
|
||||
} from '@nx/plugin/testing';
|
||||
|
||||
describe('<%= pluginName %> e2e', () => {
|
||||
// Setting up individual workspaces per
|
||||
@ -98,7 +98,7 @@ export async function pluginGenerator(host: Tree, schema: Schema) {
|
||||
{
|
||||
'@nx/jest': nxVersion,
|
||||
'@nx/js': nxVersion,
|
||||
'@nx/nx-plugin': nxVersion,
|
||||
'@nx/plugin': nxVersion,
|
||||
}
|
||||
)
|
||||
);
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user