@nx/remix 20.1.2 → 20.1.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/remix",
3
- "version": "20.1.2",
3
+ "version": "20.1.4",
4
4
  "description": "The Remix plugin for Nx contains executors and generators for managing Remix applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Vitest, Jest, Playwright, Cypress, and Storybook.\n\n- Generators for applications, libraries, routes, loaders, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,9 +29,9 @@
29
29
  "migrations": "./migrations.json"
30
30
  },
31
31
  "dependencies": {
32
- "@nx/devkit": "20.1.2",
33
- "@nx/js": "20.1.2",
34
- "@nx/react": "20.1.2",
32
+ "@nx/devkit": "20.1.4",
33
+ "@nx/js": "20.1.4",
34
+ "@nx/react": "20.1.4",
35
35
  "tslib": "^2.3.1",
36
36
  "@phenomnomnominal/tsquery": "~5.0.1"
37
37
  },
@@ -1,6 +1,3 @@
1
- import { NameAndDirectoryFormat } from '@nx/devkit/src/generators/artifact-name-and-directory-utils';
2
-
3
1
  export interface LoaderSchema {
4
2
  path: string;
5
- nameAndDirectoryFormat?: NameAndDirectoryFormat;
6
3
  }
@@ -12,11 +12,6 @@
12
12
  "index": 0
13
13
  },
14
14
  "x-prompt": "What is the path of the route? (e.g. 'apps/demo/app/routes/foo/bar.tsx')"
15
- },
16
- "nameAndDirectoryFormat": {
17
- "description": "Whether to generate the action in the directory as provided, relative to the current working directory and ignoring the project (`as-provided`) or generate it using the project and directory relative to the workspace root (`derived`).",
18
- "type": "string",
19
- "enum": ["as-provided", "derived"]
20
15
  }
21
16
  },
22
17
  "required": ["path"]
@@ -14,10 +14,7 @@
14
14
  "devDependencies": {
15
15
  "@remix-run/dev": "<%= remixVersion %>",
16
16
  "@types/react": "<%= typesReactVersion %>",
17
- "@types/react-dom": "<%= typesReactDomVersion %>",
18
- "eslint": "<%= eslintVersion %>",
19
- "typescript": "<%= typescriptVersion %>",
20
- "vite": "<%= viteVersion %>",
17
+ "@types/react-dom": "<%= typesReactDomVersion %>"
21
18
  },
22
19
  "engines": {
23
20
  "node": ">=20"
@@ -1,7 +1,4 @@
1
- import { NameAndDirectoryFormat } from '@nx/devkit/src/generators/artifact-name-and-directory-utils';
2
-
3
1
  export interface ErrorBoundarySchema {
4
2
  path: string;
5
3
  skipFormat?: false;
6
- nameAndDirectoryFormat?: NameAndDirectoryFormat;
7
4
  }
@@ -15,11 +15,6 @@
15
15
  "type": "string",
16
16
  "description": "The path to route file relative to the project root."
17
17
  },
18
- "nameAndDirectoryFormat": {
19
- "description": "Whether to generate the error boundary in the path as provided, relative to the current working directory and ignoring the project (`as-provided`) or generate it using the project and directory relative to the workspace root (`derived`).",
20
- "type": "string",
21
- "enum": ["as-provided", "derived"]
22
- },
23
18
  "skipFormat": {
24
19
  "type": "boolean",
25
20
  "description": "Skip formatting files after generation.",
@@ -1,6 +1,3 @@
1
- import { NameAndDirectoryFormat } from '@nx/devkit/src/generators/artifact-name-and-directory-utils';
2
-
3
1
  export interface LoaderSchema {
4
2
  path: string;
5
- nameAndDirectoryFormat?: NameAndDirectoryFormat;
6
3
  }
@@ -12,11 +12,6 @@
12
12
  "index": 0
13
13
  },
14
14
  "x-prompt": "What is the path of the route? (e.g. 'apps/demo/app/routes/foo/bar.tsx')"
15
- },
16
- "nameAndDirectoryFormat": {
17
- "description": "Whether to generate the loader in the path as provided, relative to the current working directory and ignoring the project (`as-provided`) or generate it using the project and directory relative to the workspace root (`derived`).",
18
- "type": "string",
19
- "enum": ["as-provided", "derived"]
20
15
  }
21
16
  },
22
17
  "required": ["path"]
@@ -1,6 +1,3 @@
1
- import { NameAndDirectoryFormat } from '@nx/devkit/src/generators/artifact-name-and-directory-utils';
2
-
3
1
  export interface MetaSchema {
4
2
  path: string;
5
- nameAndDirectoryFormat?: NameAndDirectoryFormat;
6
3
  }
@@ -12,11 +12,6 @@
12
12
  "index": 0
13
13
  },
14
14
  "x-prompt": "What is the path of the route? (e.g. 'apps/demo/app/routes/foo/bar.tsx')"
15
- },
16
- "nameAndDirectoryFormat": {
17
- "description": "Whether to generate the meta function in the path as provided, relative to the current working directory and ignoring the project (`as-provided`) or generate it using the project and directory relative to the workspace root (`derived`).",
18
- "type": "string",
19
- "enum": ["as-provided", "derived"]
20
15
  }
21
16
  },
22
17
  "required": ["path"]
@@ -1,5 +1,5 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`resource route --nameAndDirectoryFormat=as-provided should error if it detects a possible missing route param because of un-escaped dollar sign 1`] = `[Error: Your route path has an indicator of an un-escaped dollar sign for a route param. If this was intended, include the --skipChecks flag.]`;
3
+ exports[`resource route should error if it detects a possible missing route param because of un-escaped dollar sign 1`] = `[Error: Your route path has an indicator of an un-escaped dollar sign for a route param. If this was intended, include the --skipChecks flag.]`;
4
4
 
5
- exports[`resource route --nameAndDirectoryFormat=as-provided should error if it detects a possible missing route param because of un-escaped dollar sign 3`] = `[Error: Your route path has an indicator of an un-escaped dollar sign for a route param. If this was intended, include the --skipChecks flag.]`;
5
+ exports[`resource route should error if it detects a possible missing route param because of un-escaped dollar sign 3`] = `[Error: Your route path has an indicator of an un-escaped dollar sign for a route param. If this was intended, include the --skipChecks flag.]`;
@@ -22,13 +22,11 @@ async function default_1(tree, options) {
22
22
  if (options.loader) {
23
23
  await (0, loader_impl_1.default)(tree, {
24
24
  path: routeFilePath,
25
- nameAndDirectoryFormat: 'as-provided',
26
25
  });
27
26
  }
28
27
  if (options.action) {
29
28
  await (0, action_impl_1.default)(tree, {
30
29
  path: routeFilePath,
31
- nameAndDirectoryFormat: 'as-provided',
32
30
  });
33
31
  }
34
32
  await (0, devkit_1.formatFiles)(tree);
@@ -1,5 +1,3 @@
1
- import { NameAndDirectoryFormat } from '@nx/devkit/src/generators/artifact-name-and-directory-utils';
2
-
3
1
  export interface RemixRouteSchema {
4
2
  path: string;
5
3
  action: boolean;
@@ -1,6 +1,6 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`route --nameAndDirectoryFormat=apps/demo/app/routes/path/to/example should add route component 1`] = `
3
+ exports[`route should add route component 1`] = `
4
4
  "import { useLoaderData, useActionData } from '@remix-run/react';
5
5
  import { json } from '@remix-run/node';
6
6
  import type {
@@ -41,8 +41,8 @@ export default function Example() {
41
41
  "
42
42
  `;
43
43
 
44
- exports[`route --nameAndDirectoryFormat=apps/demo/app/routes/path/to/example should error if it detects a possible missing route param because of un-escaped dollar sign 1`] = `[Error: Your route path has an indicator of an un-escaped dollar sign for a route param. If this was intended, include the --skipChecks flag.]`;
44
+ exports[`route should error if it detects a possible missing route param because of un-escaped dollar sign 1`] = `[Error: Your route path has an indicator of an un-escaped dollar sign for a route param. If this was intended, include the --skipChecks flag.]`;
45
45
 
46
- exports[`route --nameAndDirectoryFormat=apps/demo/app/routes/path/to/example should error if it detects a possible missing route param because of un-escaped dollar sign 2`] = `[Error: Your route path has an indicator of an un-escaped dollar sign for a route param. If this was intended, include the --skipChecks flag.]`;
46
+ exports[`route should error if it detects a possible missing route param because of un-escaped dollar sign 2`] = `[Error: Your route path has an indicator of an un-escaped dollar sign for a route param. If this was intended, include the --skipChecks flag.]`;
47
47
 
48
- exports[`route --nameAndDirectoryFormat=apps/demo/app/routes/path/to/example should error if it detects a possible missing route param because of un-escaped dollar sign 3`] = `[Error: Your route path has an indicator of an un-escaped dollar sign for a route param. If this was intended, include the --skipChecks flag.]`;
48
+ exports[`route should error if it detects a possible missing route param because of un-escaped dollar sign 3`] = `[Error: Your route path has an indicator of an un-escaped dollar sign for a route param. If this was intended, include the --skipChecks flag.]`;
@@ -44,19 +44,16 @@ async function default_1(tree, options) {
44
44
  if (options.loader) {
45
45
  await (0, loader_impl_1.default)(tree, {
46
46
  path: routeFilePath,
47
- nameAndDirectoryFormat: 'as-provided',
48
47
  });
49
48
  }
50
49
  if (options.meta) {
51
50
  await (0, meta_impl_1.default)(tree, {
52
51
  path: routeFilePath,
53
- nameAndDirectoryFormat: 'as-provided',
54
52
  });
55
53
  }
56
54
  if (options.action) {
57
55
  await (0, action_impl_1.default)(tree, {
58
56
  path: routeFilePath,
59
- nameAndDirectoryFormat: 'as-provided',
60
57
  });
61
58
  }
62
59
  if (options.style === 'css') {
@@ -1,5 +1,3 @@
1
- import { NameAndDirectoryFormat } from '@nx/devkit/src/generators/artifact-name-and-directory-utils';
2
-
3
1
  export interface RemixRouteSchema {
4
2
  path: string;
5
3
  style: 'css' | 'none';
@@ -1,5 +1,3 @@
1
- import { NameAndDirectoryFormat } from '@nx/devkit/src/generators/artifact-name-and-directory-utils';
2
-
3
1
  export interface RemixStyleSchema {
4
2
  path: string;
5
3
  }