@nx/plugin 20.2.0-beta.3 → 20.2.0-beta.4
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
|
+
"version": "20.2.0-beta.4",
|
|
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.
|
|
32
|
-
"@nx/jest": "20.2.0-beta.
|
|
33
|
-
"@nx/js": "20.2.0-beta.
|
|
34
|
-
"@nx/eslint": "20.2.0-beta.
|
|
31
|
+
"@nx/devkit": "20.2.0-beta.4",
|
|
32
|
+
"@nx/jest": "20.2.0-beta.4",
|
|
33
|
+
"@nx/js": "20.2.0-beta.4",
|
|
34
|
+
"@nx/eslint": "20.2.0-beta.4"
|
|
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": "
|
|
19
|
-
"x-prompt": "What
|
|
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": "
|
|
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",
|
|
@@ -7,26 +7,28 @@
|
|
|
7
7
|
"type": "object",
|
|
8
8
|
"examples": [
|
|
9
9
|
{
|
|
10
|
-
"
|
|
11
|
-
"
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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",
|
|
@@ -7,25 +7,28 @@
|
|
|
7
7
|
"type": "object",
|
|
8
8
|
"examples": [
|
|
9
9
|
{
|
|
10
|
-
"
|
|
11
|
-
"
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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",
|