@nx/vue 22.6.0-beta.12 → 22.6.0-beta.13

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.
@@ -1,71 +1,71 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "cli": "nx",
4
- "$id": "NxVueComponent",
5
- "title": "Create a Vue Component",
6
- "description": "Create a Vue Component for Nx.",
7
- "type": "object",
8
- "examples": [
9
- {
10
- "description": "Generate a component at `mylib/src/lib/foo.vue`",
11
- "command": "nx g @nx/vue:component mylib/src/lib/foo.vue"
12
- },
13
- {
14
- "description": "Generate a component without providing the file extension at `mylib/src/lib/foo.vue`",
15
- "command": "nx g @nx/vue:component mylib/src/lib/foo"
16
- },
17
- {
18
- "description": "Generate a component at `mylib/src/lib/foo.vue` with `vitest` as the unit test runner",
19
- "command": "nx g @nx/vue:component mylib/src/lib/foo --unitTestRunner=vitest"
20
- }
21
- ],
22
- "properties": {
23
- "path": {
24
- "type": "string",
25
- "description": "The file path to the component. Relative to the current working directory.",
26
- "$default": {
27
- "$source": "argv",
28
- "index": 0
29
- },
30
- "x-prompt": "What is the component file path?"
31
- },
32
- "js": {
33
- "type": "boolean",
34
- "description": "Generate JavaScript files rather than TypeScript files.",
35
- "default": false
36
- },
37
- "skipTests": {
38
- "type": "boolean",
39
- "description": "When true, does not create `spec.ts` test files for the new component.",
40
- "default": false,
41
- "x-priority": "internal"
42
- },
43
- "export": {
44
- "type": "boolean",
45
- "description": "When true, the component is exported from the project `index.ts` (if it exists).",
46
- "alias": "e",
47
- "default": false,
48
- "x-prompt": "Should this component be exported in the project?"
49
- },
50
- "routing": {
51
- "type": "boolean",
52
- "description": "Generate a library with routes."
53
- },
54
- "fileName": {
55
- "type": "string",
56
- "description": "Create a component with this file name."
57
- },
58
- "inSourceTests": {
59
- "type": "boolean",
60
- "default": false,
61
- "description": "When using Vitest, separate spec files will not be generated and instead will be included within the source files. Read more on the Vitest docs site: https://vitest.dev/guide/in-source.html"
62
- },
63
- "skipFormat": {
64
- "description": "Skip formatting files.",
65
- "type": "boolean",
66
- "default": false,
67
- "x-priority": "internal"
68
- }
2
+ "$schema": "https://json-schema.org/schema",
3
+ "cli": "nx",
4
+ "$id": "NxVueComponent",
5
+ "title": "Create a Vue Component",
6
+ "description": "Create a Vue Component for Nx.",
7
+ "type": "object",
8
+ "examples": [
9
+ {
10
+ "description": "Generate a component at `mylib/src/lib/foo.vue`",
11
+ "command": "nx g @nx/vue:component mylib/src/lib/foo.vue"
69
12
  },
70
- "required": ["path"]
13
+ {
14
+ "description": "Generate a component without providing the file extension at `mylib/src/lib/foo.vue`",
15
+ "command": "nx g @nx/vue:component mylib/src/lib/foo"
16
+ },
17
+ {
18
+ "description": "Generate a component at `mylib/src/lib/foo.vue` with `vitest` as the unit test runner",
19
+ "command": "nx g @nx/vue:component mylib/src/lib/foo --unitTestRunner=vitest"
20
+ }
21
+ ],
22
+ "properties": {
23
+ "path": {
24
+ "type": "string",
25
+ "description": "The file path to the component. Relative to the current working directory.",
26
+ "$default": {
27
+ "$source": "argv",
28
+ "index": 0
29
+ },
30
+ "x-prompt": "What is the component file path?"
31
+ },
32
+ "js": {
33
+ "type": "boolean",
34
+ "description": "Generate JavaScript files rather than TypeScript files.",
35
+ "default": false
36
+ },
37
+ "skipTests": {
38
+ "type": "boolean",
39
+ "description": "When true, does not create `spec.ts` test files for the new component.",
40
+ "default": false,
41
+ "x-priority": "internal"
42
+ },
43
+ "export": {
44
+ "type": "boolean",
45
+ "description": "When true, the component is exported from the project `index.ts` (if it exists).",
46
+ "alias": "e",
47
+ "default": false,
48
+ "x-prompt": "Should this component be exported in the project?"
49
+ },
50
+ "routing": {
51
+ "type": "boolean",
52
+ "description": "Generate a library with routes."
53
+ },
54
+ "fileName": {
55
+ "type": "string",
56
+ "description": "Create a component with this file name."
57
+ },
58
+ "inSourceTests": {
59
+ "type": "boolean",
60
+ "default": false,
61
+ "description": "When using Vitest, separate spec files will not be generated and instead will be included within the source files. Read more on the Vitest docs site: https://vitest.dev/guide/in-source.html"
62
+ },
63
+ "skipFormat": {
64
+ "description": "Skip formatting files.",
65
+ "type": "boolean",
66
+ "default": false,
67
+ "x-priority": "internal"
68
+ }
69
+ },
70
+ "required": ["path"]
71
71
  }
@@ -1,27 +1,27 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxVueInit",
4
- "title": "Init Vue Plugin",
5
- "description": "Initialize a Vue Plugin.",
6
- "cli": "nx",
7
- "type": "object",
8
- "properties": {
9
- "skipFormat": {
10
- "description": "Skip formatting files.",
11
- "type": "boolean",
12
- "default": false
13
- },
14
- "skipPackageJson": {
15
- "description": "Do not add dependencies to `package.json`.",
16
- "type": "boolean",
17
- "default": false
18
- },
19
- "keepExistingVersions": {
20
- "type": "boolean",
21
- "x-priority": "internal",
22
- "description": "Keep existing dependencies versions",
23
- "default": false
24
- }
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxVueInit",
4
+ "title": "Init Vue Plugin",
5
+ "description": "Initialize a Vue Plugin.",
6
+ "cli": "nx",
7
+ "type": "object",
8
+ "properties": {
9
+ "skipFormat": {
10
+ "description": "Skip formatting files.",
11
+ "type": "boolean",
12
+ "default": false
25
13
  },
26
- "required": []
14
+ "skipPackageJson": {
15
+ "description": "Do not add dependencies to `package.json`.",
16
+ "type": "boolean",
17
+ "default": false
18
+ },
19
+ "keepExistingVersions": {
20
+ "type": "boolean",
21
+ "x-priority": "internal",
22
+ "description": "Keep existing dependencies versions",
23
+ "default": false
24
+ }
25
+ },
26
+ "required": []
27
27
  }
@@ -1,135 +1,135 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "cli": "nx",
4
- "$id": "NxVueLibrary",
5
- "title": "Create a Vue Library",
6
- "description": "Create a Vue Library for an Nx workspace.",
7
- "type": "object",
8
- "examples": [
9
- {
10
- "command": "nx g lib mylib --directory=libs/mylib",
11
- "description": "Generate `libs/mylib`"
12
- },
13
- {
14
- "command": "nx g lib mylib --appProject=myapp",
15
- "description": "Generate a library with routes and add them to `myapp`"
16
- }
17
- ],
18
- "properties": {
19
- "directory": {
20
- "type": "string",
21
- "description": "A directory where the lib is placed.",
22
- "alias": "dir",
23
- "$default": {
24
- "$source": "argv",
25
- "index": 0
26
- },
27
- "x-prompt": "Which directory do you want to create the library in?"
28
- },
29
- "name": {
30
- "type": "string",
31
- "description": "Library name",
32
- "pattern": "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$",
33
- "x-priority": "important"
34
- },
35
- "linter": {
36
- "description": "The tool to use for running lint checks.",
37
- "type": "string",
38
- "enum": ["eslint", "none"],
39
- "default": "none",
40
- "x-prompt": "Which linter would you like to use?",
41
- "x-priority": "important"
42
- },
43
- "unitTestRunner": {
44
- "type": "string",
45
- "enum": ["vitest", "none"],
46
- "description": "Test runner to use for unit tests.",
47
- "x-prompt": "What unit test runner should be used?",
48
- "default": "none",
49
- "x-priority": "important"
50
- },
51
- "inSourceTests": {
52
- "type": "boolean",
53
- "default": false,
54
- "description": "When using Vitest, separate spec files will not be generated and instead will be included within the source files."
55
- },
56
- "tags": {
57
- "type": "string",
58
- "description": "Add tags to the library (used for linting).",
59
- "alias": "t"
60
- },
61
- "skipFormat": {
62
- "description": "Skip formatting files.",
63
- "type": "boolean",
64
- "default": false,
65
- "x-priority": "internal"
66
- },
67
- "skipTsConfig": {
68
- "type": "boolean",
69
- "default": false,
70
- "description": "Do not update `tsconfig.json` for development experience.",
71
- "x-priority": "internal"
72
- },
73
- "routing": {
74
- "type": "boolean",
75
- "description": "Generate library with routes."
76
- },
77
- "appProject": {
78
- "type": "string",
79
- "description": "The application project to add the library route to.",
80
- "alias": "a"
81
- },
82
- "publishable": {
83
- "type": "boolean",
84
- "description": "Create a publishable library."
85
- },
86
- "importPath": {
87
- "type": "string",
88
- "description": "The library name used to import it, like `@myorg/my-awesome-lib`."
89
- },
90
- "component": {
91
- "type": "boolean",
92
- "description": "Generate a default component.",
93
- "default": false
94
- },
95
- "js": {
96
- "type": "boolean",
97
- "description": "Generate JavaScript files rather than TypeScript files.",
98
- "default": false
99
- },
100
- "strict": {
101
- "type": "boolean",
102
- "description": "Whether to enable tsconfig strict mode or not.",
103
- "default": true
104
- },
105
- "setParserOptionsProject": {
106
- "type": "boolean",
107
- "description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
108
- "default": false
109
- },
110
- "bundler": {
111
- "type": "string",
112
- "description": "The bundler to use. Choosing 'none' means this library is not buildable.",
113
- "enum": ["none", "vite"],
114
- "default": "none",
115
- "x-prompt": "Which bundler would you like to use to build the library? Choose 'none' to skip build setup.",
116
- "x-priority": "important"
117
- },
118
- "skipPackageJson": {
119
- "description": "Do not add dependencies to `package.json`.",
120
- "type": "boolean",
121
- "default": false,
122
- "x-priority": "internal"
123
- },
124
- "minimal": {
125
- "description": "Create a Vue library with a minimal setup, no separate test files.",
126
- "type": "boolean",
127
- "default": false
128
- },
129
- "useProjectJson": {
130
- "type": "boolean",
131
- "description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
132
- }
133
- },
134
- "required": ["directory"]
2
+ "$schema": "https://json-schema.org/schema",
3
+ "cli": "nx",
4
+ "$id": "NxVueLibrary",
5
+ "title": "Create a Vue Library",
6
+ "description": "Create a Vue Library for an Nx workspace.",
7
+ "type": "object",
8
+ "examples": [
9
+ {
10
+ "command": "nx g lib mylib --directory=libs/mylib",
11
+ "description": "Generate `libs/mylib`"
12
+ },
13
+ {
14
+ "command": "nx g lib mylib --appProject=myapp",
15
+ "description": "Generate a library with routes and add them to `myapp`"
16
+ }
17
+ ],
18
+ "properties": {
19
+ "directory": {
20
+ "type": "string",
21
+ "description": "A directory where the lib is placed.",
22
+ "alias": "dir",
23
+ "$default": {
24
+ "$source": "argv",
25
+ "index": 0
26
+ },
27
+ "x-prompt": "Which directory do you want to create the library in?"
28
+ },
29
+ "name": {
30
+ "type": "string",
31
+ "description": "Library name",
32
+ "pattern": "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$",
33
+ "x-priority": "important"
34
+ },
35
+ "linter": {
36
+ "description": "The tool to use for running lint checks.",
37
+ "type": "string",
38
+ "enum": ["eslint", "none"],
39
+ "default": "none",
40
+ "x-prompt": "Which linter would you like to use?",
41
+ "x-priority": "important"
42
+ },
43
+ "unitTestRunner": {
44
+ "type": "string",
45
+ "enum": ["vitest", "none"],
46
+ "description": "Test runner to use for unit tests.",
47
+ "x-prompt": "What unit test runner should be used?",
48
+ "default": "none",
49
+ "x-priority": "important"
50
+ },
51
+ "inSourceTests": {
52
+ "type": "boolean",
53
+ "default": false,
54
+ "description": "When using Vitest, separate spec files will not be generated and instead will be included within the source files."
55
+ },
56
+ "tags": {
57
+ "type": "string",
58
+ "description": "Add tags to the library (used for linting).",
59
+ "alias": "t"
60
+ },
61
+ "skipFormat": {
62
+ "description": "Skip formatting files.",
63
+ "type": "boolean",
64
+ "default": false,
65
+ "x-priority": "internal"
66
+ },
67
+ "skipTsConfig": {
68
+ "type": "boolean",
69
+ "default": false,
70
+ "description": "Do not update `tsconfig.json` for development experience.",
71
+ "x-priority": "internal"
72
+ },
73
+ "routing": {
74
+ "type": "boolean",
75
+ "description": "Generate library with routes."
76
+ },
77
+ "appProject": {
78
+ "type": "string",
79
+ "description": "The application project to add the library route to.",
80
+ "alias": "a"
81
+ },
82
+ "publishable": {
83
+ "type": "boolean",
84
+ "description": "Create a publishable library."
85
+ },
86
+ "importPath": {
87
+ "type": "string",
88
+ "description": "The library name used to import it, like `@myorg/my-awesome-lib`."
89
+ },
90
+ "component": {
91
+ "type": "boolean",
92
+ "description": "Generate a default component.",
93
+ "default": false
94
+ },
95
+ "js": {
96
+ "type": "boolean",
97
+ "description": "Generate JavaScript files rather than TypeScript files.",
98
+ "default": false
99
+ },
100
+ "strict": {
101
+ "type": "boolean",
102
+ "description": "Whether to enable tsconfig strict mode or not.",
103
+ "default": true
104
+ },
105
+ "setParserOptionsProject": {
106
+ "type": "boolean",
107
+ "description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
108
+ "default": false
109
+ },
110
+ "bundler": {
111
+ "type": "string",
112
+ "description": "The bundler to use. Choosing 'none' means this library is not buildable.",
113
+ "enum": ["none", "vite"],
114
+ "default": "none",
115
+ "x-prompt": "Which bundler would you like to use to build the library? Choose 'none' to skip build setup.",
116
+ "x-priority": "important"
117
+ },
118
+ "skipPackageJson": {
119
+ "description": "Do not add dependencies to `package.json`.",
120
+ "type": "boolean",
121
+ "default": false,
122
+ "x-priority": "internal"
123
+ },
124
+ "minimal": {
125
+ "description": "Create a Vue library with a minimal setup, no separate test files.",
126
+ "type": "boolean",
127
+ "default": false
128
+ },
129
+ "useProjectJson": {
130
+ "type": "boolean",
131
+ "description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
132
+ }
133
+ },
134
+ "required": ["directory"]
135
135
  }
@@ -1,45 +1,45 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "cli": "nx",
4
- "$id": "NxVueTailwindSetupGenerator",
5
- "title": "Configures Tailwind CSS for an application or a library.",
6
- "description": "Adds the Tailwind CSS configuration files for a given Vue project and installs, if needed, the packages required for Tailwind CSS to work.",
7
- "type": "object",
8
- "examples": [
9
- {
10
- "command": "nx g setup-tailwind --project=my-app",
11
- "description": "Initialize Tailwind configuration for the `my-app` project."
12
- }
13
- ],
14
- "properties": {
15
- "project": {
16
- "type": "string",
17
- "description": "The name of the project to add the Tailwind CSS setup for.",
18
- "alias": "p",
19
- "$default": {
20
- "$source": "argv",
21
- "index": 0
22
- },
23
- "x-dropdown": "projects",
24
- "x-prompt": "What project would you like to add the Tailwind CSS setup?",
25
- "x-priority": "important"
26
- },
27
- "skipFormat": {
28
- "type": "boolean",
29
- "description": "Skips formatting the workspace after the generator completes.",
30
- "x-priority": "internal"
31
- },
32
- "skipPackageJson": {
33
- "type": "boolean",
34
- "default": false,
35
- "description": "Do not add dependencies to `package.json`.",
36
- "x-priority": "internal"
37
- },
38
- "stylesheet": {
39
- "type": "string",
40
- "description": "Path to the styles entry point relative to the workspace root. This option is only needed if the stylesheet location cannot be found automatically."
41
- }
2
+ "$schema": "https://json-schema.org/schema",
3
+ "cli": "nx",
4
+ "$id": "NxVueTailwindSetupGenerator",
5
+ "title": "Configures Tailwind CSS for an application or a library.",
6
+ "description": "Adds the Tailwind CSS configuration files for a given Vue project and installs, if needed, the packages required for Tailwind CSS to work.",
7
+ "type": "object",
8
+ "examples": [
9
+ {
10
+ "command": "nx g setup-tailwind --project=my-app",
11
+ "description": "Initialize Tailwind configuration for the `my-app` project."
12
+ }
13
+ ],
14
+ "properties": {
15
+ "project": {
16
+ "type": "string",
17
+ "description": "The name of the project to add the Tailwind CSS setup for.",
18
+ "alias": "p",
19
+ "$default": {
20
+ "$source": "argv",
21
+ "index": 0
22
+ },
23
+ "x-dropdown": "projects",
24
+ "x-prompt": "What project would you like to add the Tailwind CSS setup?",
25
+ "x-priority": "important"
42
26
  },
43
- "additionalProperties": false,
44
- "required": ["project"]
27
+ "skipFormat": {
28
+ "type": "boolean",
29
+ "description": "Skips formatting the workspace after the generator completes.",
30
+ "x-priority": "internal"
31
+ },
32
+ "skipPackageJson": {
33
+ "type": "boolean",
34
+ "default": false,
35
+ "description": "Do not add dependencies to `package.json`.",
36
+ "x-priority": "internal"
37
+ },
38
+ "stylesheet": {
39
+ "type": "string",
40
+ "description": "Path to the styles entry point relative to the workspace root. This option is only needed if the stylesheet location cannot be found automatically."
41
+ }
42
+ },
43
+ "additionalProperties": false,
44
+ "required": ["project"]
45
45
  }