@nx/plugin 0.0.0-pr-29122-4727ac1 → 0.0.0-pr-29114-4447aa0
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": "0.0.0-pr-
|
|
3
|
+
"version": "0.0.0-pr-29114-4447aa0",
|
|
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": "0.0.0-pr-
|
|
32
|
-
"@nx/jest": "0.0.0-pr-
|
|
33
|
-
"@nx/js": "0.0.0-pr-
|
|
34
|
-
"@nx/eslint": "0.0.0-pr-
|
|
31
|
+
"@nx/devkit": "0.0.0-pr-29114-4447aa0",
|
|
32
|
+
"@nx/jest": "0.0.0-pr-29114-4447aa0",
|
|
33
|
+
"@nx/js": "0.0.0-pr-29114-4447aa0",
|
|
34
|
+
"@nx/eslint": "0.0.0-pr-29114-4447aa0"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
@@ -6,11 +6,17 @@
|
|
|
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
|
+
],
|
|
9
15
|
"properties": {
|
|
10
16
|
"path": {
|
|
11
17
|
"type": "string",
|
|
12
|
-
"description": "
|
|
13
|
-
"x-prompt": "What
|
|
18
|
+
"description": "Path at which to generate the executor file.",
|
|
19
|
+
"x-prompt": "What path would you like to use for the executor?",
|
|
14
20
|
"$default": {
|
|
15
21
|
"$source": "argv",
|
|
16
22
|
"index": 0
|
|
@@ -19,7 +25,9 @@
|
|
|
19
25
|
},
|
|
20
26
|
"name": {
|
|
21
27
|
"type": "string",
|
|
22
|
-
"description": "
|
|
28
|
+
"description": "Executor name.",
|
|
29
|
+
"x-prompt": "What name would you like to use for the executor?",
|
|
30
|
+
"x-priority": "important"
|
|
23
31
|
},
|
|
24
32
|
"description": {
|
|
25
33
|
"type": "string",
|
|
@@ -7,28 +7,26 @@
|
|
|
7
7
|
"type": "object",
|
|
8
8
|
"examples": [
|
|
9
9
|
{
|
|
10
|
-
"
|
|
11
|
-
"
|
|
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"
|
|
10
|
+
"command": "nx g generator libs/my-plugin/src/generators//my-generator",
|
|
11
|
+
"description": "Generate `libs/my-plugin/src/generators/my-generator`"
|
|
16
12
|
}
|
|
17
13
|
],
|
|
18
14
|
"properties": {
|
|
19
15
|
"path": {
|
|
20
16
|
"type": "string",
|
|
21
|
-
"description": "
|
|
17
|
+
"description": "Path where the generator will be generated.",
|
|
22
18
|
"$default": {
|
|
23
19
|
"$source": "argv",
|
|
24
20
|
"index": 0
|
|
25
21
|
},
|
|
26
|
-
"x-prompt": "
|
|
22
|
+
"x-prompt": "Where should the generator be generated?",
|
|
27
23
|
"x-priority": "important"
|
|
28
24
|
},
|
|
29
25
|
"name": {
|
|
30
26
|
"type": "string",
|
|
31
|
-
"description": "
|
|
27
|
+
"description": "Generator name.",
|
|
28
|
+
"x-prompt": "What name would you like to use for the generator?",
|
|
29
|
+
"x-priority": "important"
|
|
32
30
|
},
|
|
33
31
|
"description": {
|
|
34
32
|
"type": "string",
|
|
@@ -7,28 +7,25 @@
|
|
|
7
7
|
"type": "object",
|
|
8
8
|
"examples": [
|
|
9
9
|
{
|
|
10
|
-
"
|
|
11
|
-
"
|
|
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"
|
|
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."
|
|
16
12
|
}
|
|
17
13
|
],
|
|
18
14
|
"properties": {
|
|
19
15
|
"path": {
|
|
20
16
|
"type": "string",
|
|
21
|
-
"description": "
|
|
17
|
+
"description": "Path where the migration will be generated.",
|
|
22
18
|
"$default": {
|
|
23
19
|
"$source": "argv",
|
|
24
20
|
"index": 0
|
|
25
21
|
},
|
|
26
|
-
"x-prompt": "
|
|
22
|
+
"x-prompt": "Where should the migration be generated?",
|
|
27
23
|
"x-priority": "important"
|
|
28
24
|
},
|
|
29
25
|
"name": {
|
|
30
26
|
"type": "string",
|
|
31
|
-
"description": "
|
|
27
|
+
"description": "Migration name.",
|
|
28
|
+
"x-priority": "important"
|
|
32
29
|
},
|
|
33
30
|
"description": {
|
|
34
31
|
"type": "string",
|