@nx/plugin 20.2.0-beta.3 → 20.2.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/plugin",
3
- "version": "20.2.0-beta.3",
3
+ "version": "20.2.0-beta.5",
4
4
  "private": false,
5
5
  "description": "This plugin is used to create Nx plugins! It contains generators for generating common plugin features like generators, executors, migrations and more.",
6
6
  "repository": {
@@ -28,10 +28,10 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "tslib": "^2.3.0",
31
- "@nx/devkit": "20.2.0-beta.3",
32
- "@nx/jest": "20.2.0-beta.3",
33
- "@nx/js": "20.2.0-beta.3",
34
- "@nx/eslint": "20.2.0-beta.3"
31
+ "@nx/devkit": "20.2.0-beta.5",
32
+ "@nx/jest": "20.2.0-beta.5",
33
+ "@nx/js": "20.2.0-beta.5",
34
+ "@nx/eslint": "20.2.0-beta.5"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"
@@ -6,17 +6,11 @@
6
6
  "description": "Create an Executor for an Nx Plugin.",
7
7
  "examplesFile": "../../../docs/generators/executor-examples.md",
8
8
  "type": "object",
9
- "examples": [
10
- {
11
- "command": "nx g executor my-executor --project=my-plugin",
12
- "description": "Generate `libs/my-plugin/src/executors/my-executor`"
13
- }
14
- ],
15
9
  "properties": {
16
10
  "path": {
17
11
  "type": "string",
18
- "description": "Path at which to generate the executor file.",
19
- "x-prompt": "What path would you like to use for the executor?",
12
+ "description": "The file path to the executor without the file extension. Relative to the current working directory.",
13
+ "x-prompt": "What is the executor file path?",
20
14
  "$default": {
21
15
  "$source": "argv",
22
16
  "index": 0
@@ -25,9 +19,7 @@
25
19
  },
26
20
  "name": {
27
21
  "type": "string",
28
- "description": "Executor name.",
29
- "x-prompt": "What name would you like to use for the executor?",
30
- "x-priority": "important"
22
+ "description": "The executor name to export in the plugin executors collection."
31
23
  },
32
24
  "description": {
33
25
  "type": "string",
@@ -1,5 +1,3 @@
1
- import { NameAndDirectoryFormat } from '@nx/devkit/src/generators/artifact-name-and-directory-utils';
2
-
3
1
  export interface Schema {
4
2
  path: string;
5
3
  name?: string;
@@ -7,26 +7,28 @@
7
7
  "type": "object",
8
8
  "examples": [
9
9
  {
10
- "command": "nx g generator libs/my-plugin/src/generators//my-generator",
11
- "description": "Generate `libs/my-plugin/src/generators/my-generator`"
10
+ "description": "Generate a generator exported with the name matching the file name. It results in the generator `foo` at `mylib/src/generators/foo.ts`",
11
+ "command": "nx g @nx/plugin:generator mylib/src/generators/foo"
12
+ },
13
+ {
14
+ "description": "Generate a generator exported with a different name from the file name. It results in the generator `custom` at `mylib/src/generators/foo.ts`",
15
+ "command": "nx g @nx/plugin:generator mylib/src/generators/foo --name=custom"
12
16
  }
13
17
  ],
14
18
  "properties": {
15
19
  "path": {
16
20
  "type": "string",
17
- "description": "Path where the generator will be generated.",
21
+ "description": "The file path to the generator without the file extension. Relative to the current working directory.",
18
22
  "$default": {
19
23
  "$source": "argv",
20
24
  "index": 0
21
25
  },
22
- "x-prompt": "Where should the generator be generated?",
26
+ "x-prompt": "What is the generator file path?",
23
27
  "x-priority": "important"
24
28
  },
25
29
  "name": {
26
30
  "type": "string",
27
- "description": "Generator name.",
28
- "x-prompt": "What name would you like to use for the generator?",
29
- "x-priority": "important"
31
+ "description": "The generator name to export in the plugin generators collection."
30
32
  },
31
33
  "description": {
32
34
  "type": "string",
@@ -1,5 +1,3 @@
1
- import { NameAndDirectoryFormat } from '@nx/devkit/src/generators/artifact-name-and-directory-utils';
2
-
3
1
  export interface Schema {
4
2
  path: string;
5
3
  name?: string;
@@ -7,25 +7,28 @@
7
7
  "type": "object",
8
8
  "examples": [
9
9
  {
10
- "command": "nx g migration my-plugin/my-migration --version=1.0.0",
11
- "description": "Adds a new migration inside `my-plugin`, which will be triggered when migrating to version 1.0.0 or above from a previous version."
10
+ "description": "Generate a migration exported with the name matching the file name, which will be triggered when migrating to version 1.0.0 or above from a previous version. It results in the migration `foo` at `mylib/src/migrations/foo.ts`",
11
+ "command": "nx g @nx/plugin:migration mylib/src/migrations/foo -v=1.0.0"
12
+ },
13
+ {
14
+ "description": "Generate a migration exported with a different name from the file name, which will be triggered when migrating to version 1.0.0 or above from a previous version. It results in the migration `custom` at `mylib/src/migrations/foo.ts`",
15
+ "command": "nx g @nx/plugin:migration mylib/src/migrations/foo --name=custom -v=1.0.0"
12
16
  }
13
17
  ],
14
18
  "properties": {
15
19
  "path": {
16
20
  "type": "string",
17
- "description": "Path where the migration will be generated.",
21
+ "description": "The file path to the migration without the file extension. Relative to the current working directory.",
18
22
  "$default": {
19
23
  "$source": "argv",
20
24
  "index": 0
21
25
  },
22
- "x-prompt": "Where should the migration be generated?",
26
+ "x-prompt": "What is the migration file path?",
23
27
  "x-priority": "important"
24
28
  },
25
29
  "name": {
26
30
  "type": "string",
27
- "description": "Migration name.",
28
- "x-priority": "important"
31
+ "description": "The migration name to export in the plugin migrations collection."
29
32
  },
30
33
  "description": {
31
34
  "type": "string",