@nx/remix 22.7.0-beta.7 → 22.7.0-beta.9

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,91 +1,91 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxRemixLibrary",
4
- "title": "Create a Library",
5
- "description": "Generate a Remix library to help structure workspace and application.",
6
- "type": "object",
7
- "examples": [
8
- {
9
- "command": "g lib mylib --directory=myapp",
10
- "description": "Generate libs/myapp/mylib"
11
- }
12
- ],
13
- "properties": {
14
- "directory": {
15
- "type": "string",
16
- "description": "A directory where the lib is placed.",
17
- "alias": "dir",
18
- "$default": {
19
- "$source": "argv",
20
- "index": 0
21
- },
22
- "x-prompt": "Which directory do you want to create the library in?"
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxRemixLibrary",
4
+ "title": "Create a Library",
5
+ "description": "Generate a Remix library to help structure workspace and application.",
6
+ "type": "object",
7
+ "examples": [
8
+ {
9
+ "command": "g lib mylib --directory=myapp",
10
+ "description": "Generate libs/myapp/mylib"
11
+ }
12
+ ],
13
+ "properties": {
14
+ "directory": {
15
+ "type": "string",
16
+ "description": "A directory where the lib is placed.",
17
+ "alias": "dir",
18
+ "$default": {
19
+ "$source": "argv",
20
+ "index": 0
21
+ },
22
+ "x-prompt": "Which directory do you want to create the library in?"
23
+ },
24
+ "name": {
25
+ "type": "string",
26
+ "description": "Library name",
27
+ "pattern": "^[a-zA-Z].*$",
28
+ "x-priority": "important"
29
+ },
30
+ "tags": {
31
+ "type": "string",
32
+ "description": "Add tags to the library (used for linting)"
33
+ },
34
+ "style": {
35
+ "type": "string",
36
+ "description": "Generate a stylesheet",
37
+ "enum": ["none", "css"],
38
+ "default": "css"
39
+ },
40
+ "bundler": {
41
+ "type": "string",
42
+ "description": "The bundler to use. Choosing 'none' means this library is not buildable.",
43
+ "enum": ["none", "vite", "rollup"],
44
+ "default": "none",
45
+ "x-prompt": "Which bundler would you like to use to build the library? Choose 'none' to skip build setup.",
46
+ "x-priority": "important"
47
+ },
48
+ "linter": {
49
+ "description": "The tool to use for running lint checks.",
50
+ "type": "string",
51
+ "enum": ["eslint", "none"],
52
+ "default": "none",
53
+ "x-prompt": "Which linter would you like to use?",
54
+ "x-priority": "important"
55
+ },
56
+ "unitTestRunner": {
57
+ "type": "string",
58
+ "enum": ["vitest", "jest", "none"],
59
+ "description": "Test Runner to use for Unit Tests",
60
+ "x-prompt": "What test runner should be used?",
61
+ "default": "none",
62
+ "x-priority": "important"
63
+ },
64
+ "importPath": {
65
+ "type": "string",
66
+ "description": "The library name used to import it, like @myorg/my-awesome-lib"
67
+ },
68
+ "js": {
69
+ "type": "boolean",
70
+ "description": "Generate JavaScript files rather than TypeScript files",
71
+ "default": false
72
+ },
73
+ "skipFormat": {
74
+ "type": "boolean",
75
+ "description": "Skip formatting files after generator runs",
76
+ "default": false,
77
+ "x-priority": "internal"
78
+ },
79
+ "buildable": {
80
+ "type": "boolean",
81
+ "default": false,
82
+ "description": "Generate a buildable library that uses rollup to bundle.",
83
+ "x-deprecated": "Use the `bundler` option for greater control (none, vite, rollup)."
84
+ },
85
+ "useProjectJson": {
86
+ "type": "boolean",
87
+ "description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
88
+ }
23
89
  },
24
- "name": {
25
- "type": "string",
26
- "description": "Library name",
27
- "pattern": "^[a-zA-Z].*$",
28
- "x-priority": "important"
29
- },
30
- "tags": {
31
- "type": "string",
32
- "description": "Add tags to the library (used for linting)"
33
- },
34
- "style": {
35
- "type": "string",
36
- "description": "Generate a stylesheet",
37
- "enum": ["none", "css"],
38
- "default": "css"
39
- },
40
- "bundler": {
41
- "type": "string",
42
- "description": "The bundler to use. Choosing 'none' means this library is not buildable.",
43
- "enum": ["none", "vite", "rollup"],
44
- "default": "none",
45
- "x-prompt": "Which bundler would you like to use to build the library? Choose 'none' to skip build setup.",
46
- "x-priority": "important"
47
- },
48
- "linter": {
49
- "description": "The tool to use for running lint checks.",
50
- "type": "string",
51
- "enum": ["eslint", "none"],
52
- "default": "none",
53
- "x-prompt": "Which linter would you like to use?",
54
- "x-priority": "important"
55
- },
56
- "unitTestRunner": {
57
- "type": "string",
58
- "enum": ["vitest", "jest", "none"],
59
- "description": "Test Runner to use for Unit Tests",
60
- "x-prompt": "What test runner should be used?",
61
- "default": "none",
62
- "x-priority": "important"
63
- },
64
- "importPath": {
65
- "type": "string",
66
- "description": "The library name used to import it, like @myorg/my-awesome-lib"
67
- },
68
- "js": {
69
- "type": "boolean",
70
- "description": "Generate JavaScript files rather than TypeScript files",
71
- "default": false
72
- },
73
- "skipFormat": {
74
- "type": "boolean",
75
- "description": "Skip formatting files after generator runs",
76
- "default": false,
77
- "x-priority": "internal"
78
- },
79
- "buildable": {
80
- "type": "boolean",
81
- "default": false,
82
- "description": "Generate a buildable library that uses rollup to bundle.",
83
- "x-deprecated": "Use the `bundler` option for greater control (none, vite, rollup)."
84
- },
85
- "useProjectJson": {
86
- "type": "boolean",
87
- "description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
88
- }
89
- },
90
- "required": ["directory"]
90
+ "required": ["directory"]
91
91
  }
@@ -1,18 +1,18 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "data-loader",
4
- "type": "object",
5
- "description": "Generate an loader for a given route.",
6
- "properties": {
7
- "path": {
8
- "type": "string",
9
- "description": "The route path or path to the filename of the route.",
10
- "$default": {
11
- "$source": "argv",
12
- "index": 0
13
- },
14
- "x-prompt": "What is the path of the route? (e.g. 'apps/demo/app/routes/foo/bar.tsx')"
15
- }
16
- },
17
- "required": ["path"]
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "data-loader",
4
+ "type": "object",
5
+ "description": "Generate an loader for a given route.",
6
+ "properties": {
7
+ "path": {
8
+ "type": "string",
9
+ "description": "The route path or path to the filename of the route.",
10
+ "$default": {
11
+ "$source": "argv",
12
+ "index": 0
13
+ },
14
+ "x-prompt": "What is the path of the route? (e.g. 'apps/demo/app/routes/foo/bar.tsx')"
15
+ }
16
+ },
17
+ "required": ["path"]
18
18
  }
@@ -1,18 +1,18 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "meta",
4
- "type": "object",
5
- "description": "Generate a meta function for a given route.",
6
- "properties": {
7
- "path": {
8
- "type": "string",
9
- "description": "The route path or path to the filename of the route.",
10
- "$default": {
11
- "$source": "argv",
12
- "index": 0
13
- },
14
- "x-prompt": "What is the path of the route? (e.g. 'apps/demo/app/routes/foo/bar.tsx')"
15
- }
16
- },
17
- "required": ["path"]
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "meta",
4
+ "type": "object",
5
+ "description": "Generate a meta function for a given route.",
6
+ "properties": {
7
+ "path": {
8
+ "type": "string",
9
+ "description": "The route path or path to the filename of the route.",
10
+ "$default": {
11
+ "$source": "argv",
12
+ "index": 0
13
+ },
14
+ "x-prompt": "What is the path of the route? (e.g. 'apps/demo/app/routes/foo/bar.tsx')"
15
+ }
16
+ },
17
+ "required": ["path"]
18
18
  }
@@ -1,14 +1,14 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "Remix",
4
- "title": "",
5
- "type": "object",
6
- "description": "Generate a Remix application in a standalone workspace. Can be used with `create-nx-workspace --preset=@nx/remix`.",
7
- "properties": {
8
- "tags": {
9
- "type": "string",
10
- "description": "Add tags to the app (used for linting).",
11
- "alias": "t"
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "Remix",
4
+ "title": "",
5
+ "type": "object",
6
+ "description": "Generate a Remix application in a standalone workspace. Can be used with `create-nx-workspace --preset=@nx/remix`.",
7
+ "properties": {
8
+ "tags": {
9
+ "type": "string",
10
+ "description": "Add tags to the app (used for linting).",
11
+ "alias": "t"
12
+ }
12
13
  }
13
- }
14
14
  }
@@ -1,44 +1,44 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxRemixResourceRoute",
4
- "title": "Create a Resource Route",
5
- "type": "object",
6
- "description": "Generate a resource route.",
7
- "examples": [
8
- {
9
- "description": "Generate a resource route at `myapp/app/routes/foo.ts`",
10
- "command": "nx g resource-route myapp/app/routes/foo.ts"
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxRemixResourceRoute",
4
+ "title": "Create a Resource Route",
5
+ "type": "object",
6
+ "description": "Generate a resource route.",
7
+ "examples": [
8
+ {
9
+ "description": "Generate a resource route at `myapp/app/routes/foo.ts`",
10
+ "command": "nx g resource-route myapp/app/routes/foo.ts"
11
+ },
12
+ {
13
+ "description": "Generate a resource route without providing the file extension at `myapp/app/routes/foo.tsx`",
14
+ "command": "nx g resource-route myapp/app/routes/foo"
15
+ }
16
+ ],
17
+ "properties": {
18
+ "path": {
19
+ "type": "string",
20
+ "description": "The file path to the route. Relative to the current working directory.",
21
+ "$default": {
22
+ "$source": "argv",
23
+ "index": 0
24
+ },
25
+ "x-prompt": "What is the route file path?"
26
+ },
27
+ "action": {
28
+ "type": "boolean",
29
+ "description": "Generate an action function",
30
+ "default": false
31
+ },
32
+ "loader": {
33
+ "type": "boolean",
34
+ "description": "Generate a loader function",
35
+ "default": true
36
+ },
37
+ "skipChecks": {
38
+ "type": "boolean",
39
+ "description": "Skip route error detection",
40
+ "default": false
41
+ }
11
42
  },
12
- {
13
- "description": "Generate a resource route without providing the file extension at `myapp/app/routes/foo.tsx`",
14
- "command": "nx g resource-route myapp/app/routes/foo"
15
- }
16
- ],
17
- "properties": {
18
- "path": {
19
- "type": "string",
20
- "description": "The file path to the route. Relative to the current working directory.",
21
- "$default": {
22
- "$source": "argv",
23
- "index": 0
24
- },
25
- "x-prompt": "What is the route file path?"
26
- },
27
- "action": {
28
- "type": "boolean",
29
- "description": "Generate an action function",
30
- "default": false
31
- },
32
- "loader": {
33
- "type": "boolean",
34
- "description": "Generate a loader function",
35
- "default": true
36
- },
37
- "skipChecks": {
38
- "type": "boolean",
39
- "description": "Skip route error detection",
40
- "default": false
41
- }
42
- },
43
- "required": ["path"]
43
+ "required": ["path"]
44
44
  }
@@ -1,55 +1,55 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxRemixRoute",
4
- "title": "Create a Route",
5
- "description": "Generate a route.",
6
- "type": "object",
7
- "examples": [
8
- {
9
- "description": "Generate a route at `myapp/app/routes/foo.tsx`",
10
- "command": "nx g resource-route myapp/app/routes/foo.tsx"
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxRemixRoute",
4
+ "title": "Create a Route",
5
+ "description": "Generate a route.",
6
+ "type": "object",
7
+ "examples": [
8
+ {
9
+ "description": "Generate a route at `myapp/app/routes/foo.tsx`",
10
+ "command": "nx g resource-route myapp/app/routes/foo.tsx"
11
+ },
12
+ {
13
+ "description": "Generate a route without providing the file extension at `myapp/app/routes/foo.tsx`",
14
+ "command": "nx g resource-route myapp/app/routes/foo"
15
+ }
16
+ ],
17
+ "properties": {
18
+ "path": {
19
+ "type": "string",
20
+ "description": "The file path to the route. Relative to the current working directory.",
21
+ "$default": {
22
+ "$source": "argv",
23
+ "index": 0
24
+ },
25
+ "x-prompt": "What is the route file path?"
26
+ },
27
+ "style": {
28
+ "type": "string",
29
+ "description": "Generate a stylesheet",
30
+ "enum": ["none", "css"],
31
+ "default": "css"
32
+ },
33
+ "meta": {
34
+ "type": "boolean",
35
+ "description": "Generate a meta function",
36
+ "default": false
37
+ },
38
+ "action": {
39
+ "type": "boolean",
40
+ "description": "Generate an action function",
41
+ "default": false
42
+ },
43
+ "loader": {
44
+ "type": "boolean",
45
+ "description": "Generate a loader function",
46
+ "default": false
47
+ },
48
+ "skipChecks": {
49
+ "type": "boolean",
50
+ "description": "Skip route error detection",
51
+ "default": false
52
+ }
11
53
  },
12
- {
13
- "description": "Generate a route without providing the file extension at `myapp/app/routes/foo.tsx`",
14
- "command": "nx g resource-route myapp/app/routes/foo"
15
- }
16
- ],
17
- "properties": {
18
- "path": {
19
- "type": "string",
20
- "description": "The file path to the route. Relative to the current working directory.",
21
- "$default": {
22
- "$source": "argv",
23
- "index": 0
24
- },
25
- "x-prompt": "What is the route file path?"
26
- },
27
- "style": {
28
- "type": "string",
29
- "description": "Generate a stylesheet",
30
- "enum": ["none", "css"],
31
- "default": "css"
32
- },
33
- "meta": {
34
- "type": "boolean",
35
- "description": "Generate a meta function",
36
- "default": false
37
- },
38
- "action": {
39
- "type": "boolean",
40
- "description": "Generate an action function",
41
- "default": false
42
- },
43
- "loader": {
44
- "type": "boolean",
45
- "description": "Generate a loader function",
46
- "default": false
47
- },
48
- "skipChecks": {
49
- "type": "boolean",
50
- "description": "Skip route error detection",
51
- "default": false
52
- }
53
- },
54
- "required": ["path"]
54
+ "required": ["path"]
55
55
  }
@@ -1,14 +1,14 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxRemixSetup",
4
- "title": "",
5
- "type": "object",
6
- "description": "Generate initial files required for Remix to work within the workspace.",
7
- "properties": {
8
- "packageManager": {
9
- "type": "string",
10
- "description": "The package manager to setup for",
11
- "enum": ["yarn", "npm", "pnpm"]
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxRemixSetup",
4
+ "title": "",
5
+ "type": "object",
6
+ "description": "Generate initial files required for Remix to work within the workspace.",
7
+ "properties": {
8
+ "packageManager": {
9
+ "type": "string",
10
+ "description": "The package manager to setup for",
11
+ "enum": ["yarn", "npm", "pnpm"]
12
+ }
12
13
  }
13
- }
14
14
  }
@@ -1,30 +1,30 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxRemixTailwind",
4
- "title": "Add TailwindCSS to a Remix App",
5
- "description": "Setup tailwindcss for a given project.",
6
- "type": "object",
7
- "examples": [
8
- {
9
- "command": "g setup-tailwind --project=myapp",
10
- "description": "Generate a TailwindCSS config for your Remix app"
11
- }
12
- ],
13
- "properties": {
14
- "project": {
15
- "type": "string",
16
- "description": "The name of the project to add tailwind to",
17
- "$default": {
18
- "$source": "projectName"
19
- },
20
- "x-prompt": "What project would you like to add Tailwind to?"
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxRemixTailwind",
4
+ "title": "Add TailwindCSS to a Remix App",
5
+ "description": "Setup tailwindcss for a given project.",
6
+ "type": "object",
7
+ "examples": [
8
+ {
9
+ "command": "g setup-tailwind --project=myapp",
10
+ "description": "Generate a TailwindCSS config for your Remix app"
11
+ }
12
+ ],
13
+ "properties": {
14
+ "project": {
15
+ "type": "string",
16
+ "description": "The name of the project to add tailwind to",
17
+ "$default": {
18
+ "$source": "projectName"
19
+ },
20
+ "x-prompt": "What project would you like to add Tailwind to?"
21
+ },
22
+ "skipFormat": {
23
+ "type": "boolean",
24
+ "description": "Skip formatting files after generator runs",
25
+ "default": false,
26
+ "x-priority": "internal"
27
+ }
21
28
  },
22
- "skipFormat": {
23
- "type": "boolean",
24
- "description": "Skip formatting files after generator runs",
25
- "default": false,
26
- "x-priority": "internal"
27
- }
28
- },
29
- "required": ["project"]
29
+ "required": ["project"]
30
30
  }