@nx/remix 23.0.0-pr.35413.460eeef → 23.0.0-rc.0
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/{generators.d.ts → dist/generators.d.ts} +0 -2
- package/{generators.js → dist/generators.js} +1 -3
- package/{index.d.ts → dist/index.d.ts} +0 -1
- package/{plugin.d.ts → dist/plugin.d.ts} +0 -1
- package/{plugins → dist/plugins}/component-testing/index.d.ts +0 -1
- package/dist/readme-template.md +18 -0
- package/{src → dist/src}/executors/build/build.impl.d.ts +0 -1
- package/{src → dist/src}/executors/build/build.impl.js +10 -2
- package/{src → dist/src}/executors/build/schema.json +1 -0
- package/{src → dist/src}/executors/serve/schema.json +1 -0
- package/{src → dist/src}/executors/serve/serve.impl.d.ts +0 -1
- package/{src → dist/src}/executors/serve/serve.impl.js +6 -4
- package/{src → dist/src}/generators/action/action.impl.d.ts +0 -1
- package/{src → dist/src}/generators/action/action.impl.js +2 -0
- package/{src → dist/src}/generators/application/application.impl.d.ts +0 -1
- package/{src → dist/src}/generators/application/application.impl.js +11 -12
- package/{src → dist/src}/generators/application/lib/add-e2e.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/add-e2e.js +5 -5
- package/{src → dist/src}/generators/application/lib/ignore-vite-temp-files.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/ignore-vite-temp-files.js +2 -35
- package/{src → dist/src}/generators/application/lib/index.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/normalize-options.js +5 -5
- package/{src → dist/src}/generators/application/lib/update-unit-test-config.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/update-unit-test-config.js +1 -1
- package/{src → dist/src}/generators/convert-to-inferred/convert-to-inferred.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-inferred/convert-to-inferred.js +6 -5
- package/{src → dist/src}/generators/convert-to-inferred/lib/build-post-target-transformer.d.ts +1 -2
- package/{src → dist/src}/generators/convert-to-inferred/lib/build-post-target-transformer.js +2 -2
- package/{src → dist/src}/generators/convert-to-inferred/lib/serve-post-target-transformer.d.ts +1 -2
- package/{src → dist/src}/generators/convert-to-inferred/lib/utils.d.ts +0 -1
- package/{src → dist/src}/generators/cypress-component-configuration/cypress-component-configuration.impl.d.ts +0 -1
- package/{src → dist/src}/generators/cypress-component-configuration/cypress-component-configuration.impl.js +2 -0
- package/{src → dist/src}/generators/error-boundary/error-boundary.impl.d.ts +0 -1
- package/{src → dist/src}/generators/error-boundary/error-boundary.impl.js +2 -0
- package/{src → dist/src}/generators/error-boundary/lib/add-v2-error-boundary.d.ts +0 -1
- package/{src → dist/src}/generators/error-boundary/lib/index.d.ts +0 -1
- package/{src → dist/src}/generators/error-boundary/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/generators/init/init.d.ts +0 -1
- package/{src → dist/src}/generators/init/init.js +4 -3
- package/{src → dist/src}/generators/init/schema.json +1 -1
- package/{src → dist/src}/generators/library/lib/add-tsconfig-entry-points.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/add-tsconfig-entry-points.js +2 -2
- package/{src → dist/src}/generators/library/lib/add-unit-testing.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/add-unit-testing.js +1 -1
- package/{src → dist/src}/generators/library/lib/index.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/normalize-options.js +5 -5
- package/{src → dist/src}/generators/library/lib/update-buildable-config.d.ts +0 -1
- package/{src → dist/src}/generators/library/library.impl.d.ts +0 -1
- package/{src → dist/src}/generators/library/library.impl.js +7 -6
- package/{src → dist/src}/generators/loader/loader.impl.d.ts +0 -1
- package/{src → dist/src}/generators/loader/loader.impl.js +2 -0
- package/{src → dist/src}/generators/meta/lib/v2.impl.d.ts +0 -1
- package/{src → dist/src}/generators/meta/meta.impl.d.ts +0 -1
- package/{src → dist/src}/generators/meta/meta.impl.js +2 -0
- package/{src → dist/src}/generators/preset/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/generators/preset/preset.impl.d.ts +0 -1
- package/{src → dist/src}/generators/preset/preset.impl.js +2 -0
- package/{src → dist/src}/generators/resource-route/resource-route.impl.d.ts +0 -1
- package/{src → dist/src}/generators/resource-route/resource-route.impl.js +4 -2
- package/{src → dist/src}/generators/route/route.impl.d.ts +0 -1
- package/{src → dist/src}/generators/route/route.impl.js +4 -3
- package/{src → dist/src}/generators/setup/setup.impl.d.ts +0 -1
- package/{src → dist/src}/generators/setup/setup.impl.js +2 -0
- package/{src → dist/src}/generators/storybook-configuration/storybook-configuration.impl.d.ts +0 -1
- package/{src → dist/src}/generators/storybook-configuration/storybook-configuration.impl.js +3 -1
- package/{src → dist/src}/generators/style/style.impl.d.ts +0 -1
- package/{src → dist/src}/generators/style/style.impl.js +4 -2
- package/{src → dist/src}/generators/utils/update-dependencies.d.ts +0 -1
- package/{src → dist/src}/generators/utils/update-dependencies.js +5 -1
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.d.ts +9 -0
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.js +223 -0
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.md +25 -0
- package/{src → dist/src}/plugins/plugin.d.ts +3 -4
- package/{src → dist/src}/plugins/plugin.js +63 -33
- package/{src → dist/src}/utils/create-watch-paths.d.ts +0 -1
- package/dist/src/utils/deprecation.d.ts +4 -0
- package/dist/src/utils/deprecation.js +17 -0
- package/{src → dist/src}/utils/executor-utils.d.ts +0 -1
- package/{src → dist/src}/utils/get-default-export-name.d.ts +0 -1
- package/{src → dist/src}/utils/get-default-export.d.ts +0 -1
- package/{src → dist/src}/utils/insert-import.d.ts +0 -1
- package/{src → dist/src}/utils/insert-statement-after-imports.d.ts +0 -1
- package/{src → dist/src}/utils/insert-statement-in-default-function.d.ts +0 -1
- package/{src → dist/src}/utils/remix-config.d.ts +0 -1
- package/{src → dist/src}/utils/remix-route-utils.d.ts +0 -1
- package/{src → dist/src}/utils/testing-config-utils.d.ts +0 -1
- package/{src → dist/src}/utils/testing-config-utils.js +5 -5
- package/{src → dist/src}/utils/versions.d.ts +2 -2
- package/{src → dist/src}/utils/versions.js +11 -3
- package/executors.json +4 -4
- package/generators.json +30 -36
- package/migrations.json +8 -70
- package/package.json +65 -21
- package/generators.d.ts.map +0 -1
- package/index.d.ts.map +0 -1
- package/plugin.d.ts.map +0 -1
- package/plugins/component-testing/index.d.ts.map +0 -1
- package/src/executors/build/build.impl.d.ts.map +0 -1
- package/src/executors/serve/serve.impl.d.ts.map +0 -1
- package/src/generators/action/action.impl.d.ts.map +0 -1
- package/src/generators/application/application.impl.d.ts.map +0 -1
- package/src/generators/application/lib/add-e2e.d.ts.map +0 -1
- package/src/generators/application/lib/ignore-vite-temp-files.d.ts.map +0 -1
- package/src/generators/application/lib/index.d.ts.map +0 -1
- package/src/generators/application/lib/normalize-options.d.ts.map +0 -1
- package/src/generators/application/lib/update-unit-test-config.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/convert-to-inferred.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/lib/build-post-target-transformer.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/lib/serve-post-target-transformer.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/lib/utils.d.ts.map +0 -1
- package/src/generators/cypress-component-configuration/cypress-component-configuration.impl.d.ts.map +0 -1
- package/src/generators/error-boundary/error-boundary.impl.d.ts.map +0 -1
- package/src/generators/error-boundary/lib/add-v2-error-boundary.d.ts.map +0 -1
- package/src/generators/error-boundary/lib/index.d.ts.map +0 -1
- package/src/generators/error-boundary/lib/normalize-options.d.ts.map +0 -1
- package/src/generators/init/init.d.ts.map +0 -1
- package/src/generators/library/lib/add-tsconfig-entry-points.d.ts.map +0 -1
- package/src/generators/library/lib/add-unit-testing.d.ts.map +0 -1
- package/src/generators/library/lib/index.d.ts.map +0 -1
- package/src/generators/library/lib/normalize-options.d.ts.map +0 -1
- package/src/generators/library/lib/update-buildable-config.d.ts.map +0 -1
- package/src/generators/library/library.impl.d.ts.map +0 -1
- package/src/generators/loader/loader.impl.d.ts.map +0 -1
- package/src/generators/meta/lib/v2.impl.d.ts.map +0 -1
- package/src/generators/meta/meta.impl.d.ts.map +0 -1
- package/src/generators/preset/lib/normalize-options.d.ts.map +0 -1
- package/src/generators/preset/preset.impl.d.ts.map +0 -1
- package/src/generators/resource-route/resource-route.impl.d.ts.map +0 -1
- package/src/generators/route/route.impl.d.ts.map +0 -1
- package/src/generators/setup/setup.impl.d.ts.map +0 -1
- package/src/generators/setup-tailwind/files/app/tailwind.css__tpl__ +0 -3
- package/src/generators/setup-tailwind/files/postcss.config.js__tpl__ +0 -6
- package/src/generators/setup-tailwind/files/tailwind.config.ts__tpl__ +0 -13
- package/src/generators/setup-tailwind/schema.d.ts +0 -4
- package/src/generators/setup-tailwind/schema.json +0 -30
- package/src/generators/setup-tailwind/setup-tailwind.impl.d.ts +0 -4
- package/src/generators/setup-tailwind/setup-tailwind.impl.d.ts.map +0 -1
- package/src/generators/setup-tailwind/setup-tailwind.impl.js +0 -26
- package/src/generators/storybook-configuration/storybook-configuration.impl.d.ts.map +0 -1
- package/src/generators/style/style.impl.d.ts.map +0 -1
- package/src/generators/utils/update-dependencies.d.ts.map +0 -1
- package/src/plugins/plugin.d.ts.map +0 -1
- package/src/utils/create-watch-paths.d.ts.map +0 -1
- package/src/utils/executor-utils.d.ts.map +0 -1
- package/src/utils/get-default-export-name.d.ts.map +0 -1
- package/src/utils/get-default-export.d.ts.map +0 -1
- package/src/utils/insert-import.d.ts.map +0 -1
- package/src/utils/insert-statement-after-imports.d.ts.map +0 -1
- package/src/utils/insert-statement-in-default-function.d.ts.map +0 -1
- package/src/utils/remix-config.d.ts.map +0 -1
- package/src/utils/remix-route-utils.d.ts.map +0 -1
- package/src/utils/testing-config-utils.d.ts.map +0 -1
- package/src/utils/versions.d.ts.map +0 -1
- /package/{LICENSE → dist/LICENSE} +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{plugin.js → dist/plugin.js} +0 -0
- /package/{plugins → dist/plugins}/component-testing/index.js +0 -0
- /package/{src → dist/src}/executors/build/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/serve/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/action/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/action/schema.json +0 -0
- /package/{src → dist/src}/generators/application/files/common/app/entry.client.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/common/app/entry.server.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/common/app/root.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/common/app/routes/_index.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/common/public/favicon.ico +0 -0
- /package/{src → dist/src}/generators/application/files/common/tests/routes/_index.spec.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/common/tsconfig.app.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/common/tsconfig.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/common/vite.config.mts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/non-root/.gitignore__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/non-root/package.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/nx-welcome/claimed/app/nx-welcome.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/nx-welcome/not-configured/app/nx-welcome.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/nx-welcome/unclaimed/app/nx-welcome.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/ts-solution/package.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/ts-solution/tsconfig.app.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/ts-solution/tsconfig.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/lib/index.js +0 -0
- /package/{src → dist/src}/generators/application/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/application/schema.json +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/lib/serve-post-target-transformer.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/lib/utils.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/schema.json +0 -0
- /package/{src → dist/src}/generators/cypress-component-configuration/files/cypress.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/cypress-component-configuration/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/cypress-component-configuration/schema.json +0 -0
- /package/{src → dist/src}/generators/error-boundary/lib/add-v2-error-boundary.js +0 -0
- /package/{src → dist/src}/generators/error-boundary/lib/index.js +0 -0
- /package/{src → dist/src}/generators/error-boundary/lib/normalize-options.js +0 -0
- /package/{src → dist/src}/generators/error-boundary/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/error-boundary/schema.json +0 -0
- /package/{src → dist/src}/generators/init/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/library/lib/index.js +0 -0
- /package/{src → dist/src}/generators/library/lib/update-buildable-config.js +0 -0
- /package/{src → dist/src}/generators/library/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/library/schema.json +0 -0
- /package/{src → dist/src}/generators/loader/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/loader/schema.json +0 -0
- /package/{src → dist/src}/generators/meta/lib/v2.impl.js +0 -0
- /package/{src → dist/src}/generators/meta/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/meta/schema.json +0 -0
- /package/{src → dist/src}/generators/preset/lib/normalize-options.js +0 -0
- /package/{src → dist/src}/generators/preset/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/preset/schema.json +0 -0
- /package/{src → dist/src}/generators/resource-route/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/resource-route/schema.json +0 -0
- /package/{src → dist/src}/generators/route/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/route/schema.json +0 -0
- /package/{src → dist/src}/generators/setup/schema.json +0 -0
- /package/{src → dist/src}/generators/storybook-configuration/files/vite.config.ts__tpl__ +0 -0
- /package/{src → dist/src}/generators/storybook-configuration/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/storybook-configuration/schema.json +0 -0
- /package/{src → dist/src}/generators/style/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/style/schema.json +0 -0
- /package/{src → dist/src}/utils/create-watch-paths.js +0 -0
- /package/{src → dist/src}/utils/executor-utils.js +0 -0
- /package/{src → dist/src}/utils/get-default-export-name.js +0 -0
- /package/{src → dist/src}/utils/get-default-export.js +0 -0
- /package/{src → dist/src}/utils/insert-import.js +0 -0
- /package/{src → dist/src}/utils/insert-statement-after-imports.js +0 -0
- /package/{src → dist/src}/utils/insert-statement-in-default-function.js +0 -0
- /package/{src → dist/src}/utils/remix-config.js +0 -0
- /package/{src → dist/src}/utils/remix-route-utils.js +0 -0
|
@@ -8,8 +8,6 @@ export { default as metaGenerator } from './src/generators/meta/meta.impl';
|
|
|
8
8
|
export { default as presetGenerator } from './src/generators/preset/preset.impl';
|
|
9
9
|
export { default as resourceRouteGenerator } from './src/generators/resource-route/resource-route.impl';
|
|
10
10
|
export { default as routeGenerator } from './src/generators/route/route.impl';
|
|
11
|
-
export { default as setupTailwindGenerator } from './src/generators/setup-tailwind/setup-tailwind.impl';
|
|
12
11
|
export { default as storybookConfigurationGenerator } from './src/generators/storybook-configuration/storybook-configuration.impl';
|
|
13
12
|
export { default as styleGenerator } from './src/generators/style/style.impl';
|
|
14
13
|
export { default as initGenerator } from './src/generators/init/init';
|
|
15
|
-
//# sourceMappingURL=generators.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.initGenerator = exports.styleGenerator = exports.storybookConfigurationGenerator = exports.
|
|
3
|
+
exports.initGenerator = exports.styleGenerator = exports.storybookConfigurationGenerator = exports.routeGenerator = exports.resourceRouteGenerator = exports.presetGenerator = exports.metaGenerator = exports.loaderGenerator = exports.libraryGenerator = exports.errorBoundaryGenerator = exports.cypressComponentConfigurationGenerator = exports.applicationGenerator = exports.actionGenerator = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
var action_impl_1 = require("./src/generators/action/action.impl");
|
|
6
6
|
Object.defineProperty(exports, "actionGenerator", { enumerable: true, get: function () { return tslib_1.__importDefault(action_impl_1).default; } });
|
|
@@ -22,8 +22,6 @@ var resource_route_impl_1 = require("./src/generators/resource-route/resource-ro
|
|
|
22
22
|
Object.defineProperty(exports, "resourceRouteGenerator", { enumerable: true, get: function () { return tslib_1.__importDefault(resource_route_impl_1).default; } });
|
|
23
23
|
var route_impl_1 = require("./src/generators/route/route.impl");
|
|
24
24
|
Object.defineProperty(exports, "routeGenerator", { enumerable: true, get: function () { return tslib_1.__importDefault(route_impl_1).default; } });
|
|
25
|
-
var setup_tailwind_impl_1 = require("./src/generators/setup-tailwind/setup-tailwind.impl");
|
|
26
|
-
Object.defineProperty(exports, "setupTailwindGenerator", { enumerable: true, get: function () { return tslib_1.__importDefault(setup_tailwind_impl_1).default; } });
|
|
27
25
|
var storybook_configuration_impl_1 = require("./src/generators/storybook-configuration/storybook-configuration.impl");
|
|
28
26
|
Object.defineProperty(exports, "storybookConfigurationGenerator", { enumerable: true, get: function () { return tslib_1.__importDefault(storybook_configuration_impl_1).default; } });
|
|
29
27
|
var style_impl_1 = require("./src/generators/style/style.impl");
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<p style="text-align: center;">
|
|
2
|
+
<picture>
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
|
|
4
|
+
<img alt="Nx - Smart Monorepos · Fast Builds" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
|
|
5
|
+
</picture>
|
|
6
|
+
</p>
|
|
7
|
+
|
|
8
|
+
{{links}}
|
|
9
|
+
|
|
10
|
+
<hr>
|
|
11
|
+
|
|
12
|
+
# Nx: Smart Monorepos · Fast Builds
|
|
13
|
+
|
|
14
|
+
Get to green PRs in half the time. Nx optimizes your builds, scales your CI, and fixes failed PRs. Built for developers and AI agents.
|
|
15
|
+
|
|
16
|
+
This package is a [Remix plugin for Nx](https://nx.dev/nx-api/remix).
|
|
17
|
+
|
|
18
|
+
{{content}}
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.default = buildExecutor;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const js_1 = require("@nx/js");
|
|
6
|
-
const fileutils_1 = require("@nx/workspace/src/utilities/fileutils");
|
|
7
6
|
const child_process_1 = require("child_process");
|
|
8
7
|
const fs_extra_1 = require("fs-extra");
|
|
9
8
|
const path_1 = require("path");
|
|
9
|
+
const deprecation_1 = require("../../utils/deprecation");
|
|
10
10
|
function buildRemixBuildArgs(options) {
|
|
11
11
|
const args = ['build'];
|
|
12
12
|
if (options.sourcemap) {
|
|
@@ -32,6 +32,7 @@ async function runBuild(options, context) {
|
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
async function buildExecutor(options, context) {
|
|
35
|
+
(0, deprecation_1.warnRemixBuildExecutorDeprecation)();
|
|
35
36
|
const projectRoot = context.projectGraph.nodes[context.projectName].data.root;
|
|
36
37
|
try {
|
|
37
38
|
await runBuild(options, context);
|
|
@@ -40,7 +41,14 @@ async function buildExecutor(options, context) {
|
|
|
40
41
|
devkit_1.logger.error(`Error occurred while trying to build application. See above for more details.`);
|
|
41
42
|
return { success: false };
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
+
let outputIsDirectory = false;
|
|
45
|
+
try {
|
|
46
|
+
outputIsDirectory = (0, fs_extra_1.statSync)(options.outputPath).isDirectory();
|
|
47
|
+
}
|
|
48
|
+
catch {
|
|
49
|
+
// path does not exist; will be created below
|
|
50
|
+
}
|
|
51
|
+
if (!outputIsDirectory) {
|
|
44
52
|
(0, fs_extra_1.mkdir)(options.outputPath);
|
|
45
53
|
}
|
|
46
54
|
let packageJson;
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"title": "Remix Build",
|
|
7
7
|
"description": "Build a Remix app.",
|
|
8
8
|
"type": "object",
|
|
9
|
+
"x-deprecated": "The `@nx/remix:build` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/remix:convert-to-inferred` to migrate to the `@nx/remix/plugin` inferred plugin. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.",
|
|
9
10
|
"properties": {
|
|
10
11
|
"outputPath": {
|
|
11
12
|
"type": "string",
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"title": "Remix Serve",
|
|
7
7
|
"description": "Serve a Remix app.",
|
|
8
8
|
"type": "object",
|
|
9
|
+
"x-deprecated": "The `@nx/remix:serve` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/remix:convert-to-inferred` to migrate to the `@nx/remix/plugin` inferred plugin. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.",
|
|
9
10
|
"properties": {
|
|
10
11
|
"port": {
|
|
11
12
|
"type": "number",
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = serveExecutor;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
6
|
+
const internal_2 = require("@nx/web/internal");
|
|
7
7
|
const node_child_process_1 = require("node:child_process");
|
|
8
8
|
const node_path_1 = require("node:path");
|
|
9
|
+
const deprecation_1 = require("../../utils/deprecation");
|
|
9
10
|
function normalizeOptions(schema) {
|
|
10
11
|
return {
|
|
11
12
|
...schema,
|
|
@@ -37,6 +38,7 @@ function buildRemixDevArgs(options) {
|
|
|
37
38
|
return args;
|
|
38
39
|
}
|
|
39
40
|
async function* serveExecutor(schema, context) {
|
|
41
|
+
(0, deprecation_1.warnRemixServeExecutorDeprecation)();
|
|
40
42
|
const options = normalizeOptions(schema);
|
|
41
43
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
42
44
|
const remixBin = require.resolve('@remix-run/dev/dist/cli');
|
|
@@ -46,7 +48,7 @@ async function* serveExecutor(schema, context) {
|
|
|
46
48
|
? process.env.NODE_ENV
|
|
47
49
|
: 'development';
|
|
48
50
|
process.env.PORT = `${options.port}`;
|
|
49
|
-
yield* (0,
|
|
51
|
+
yield* (0, internal_1.createAsyncIterable)(async ({ done, next, error }) => {
|
|
50
52
|
const server = (0, node_child_process_1.fork)(remixBin, ['dev', ...args], {
|
|
51
53
|
cwd: (0, node_path_1.join)(devkit_1.workspaceRoot, projectRoot),
|
|
52
54
|
stdio: 'inherit',
|
|
@@ -68,7 +70,7 @@ async function* serveExecutor(schema, context) {
|
|
|
68
70
|
process.on('SIGINT', () => killServer());
|
|
69
71
|
process.on('SIGTERM', () => killServer());
|
|
70
72
|
process.on('SIGHUP', () => killServer());
|
|
71
|
-
await (0,
|
|
73
|
+
await (0, internal_2.waitForPortOpen)(options.port);
|
|
72
74
|
next({
|
|
73
75
|
success: true,
|
|
74
76
|
baseUrl: `http://localhost:${options.port}`,
|
|
@@ -5,7 +5,9 @@ const devkit_1 = require("@nx/devkit");
|
|
|
5
5
|
const insert_import_1 = require("../../utils/insert-import");
|
|
6
6
|
const insert_statement_after_imports_1 = require("../../utils/insert-statement-after-imports");
|
|
7
7
|
const insert_statement_in_default_function_1 = require("../../utils/insert-statement-in-default-function");
|
|
8
|
+
const versions_1 = require("../../utils/versions");
|
|
8
9
|
async function default_1(tree, schema) {
|
|
10
|
+
(0, versions_1.assertSupportedRemixVersion)(tree);
|
|
9
11
|
const routeFilePath = schema.path;
|
|
10
12
|
if (!tree.exists(routeFilePath)) {
|
|
11
13
|
throw new Error(`Route path does not exist: ${routeFilePath}. Please generate a Remix route first.`);
|
|
@@ -3,4 +3,3 @@ import { NxRemixGeneratorSchema } from './schema';
|
|
|
3
3
|
export declare function remixApplicationGenerator(tree: Tree, options: NxRemixGeneratorSchema): Promise<GeneratorCallback>;
|
|
4
4
|
export declare function remixApplicationGeneratorInternal(tree: Tree, _options: NxRemixGeneratorSchema): Promise<GeneratorCallback>;
|
|
5
5
|
export default remixApplicationGenerator;
|
|
6
|
-
//# sourceMappingURL=application.impl.d.ts.map
|
|
@@ -3,18 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.remixApplicationGenerator = remixApplicationGenerator;
|
|
4
4
|
exports.remixApplicationGeneratorInternal = remixApplicationGeneratorInternal;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
6
7
|
const devkit_1 = require("@nx/devkit");
|
|
7
|
-
const log_show_project_command_1 = require("@nx/devkit/src/utils/log-show-project-command");
|
|
8
8
|
const js_1 = require("@nx/js");
|
|
9
|
-
const create_ts_config_1 = require("@nx/js/src/utils/typescript/create-ts-config");
|
|
10
9
|
const onboarding_1 = require("nx/src/nx-cloud/utilities/onboarding");
|
|
11
10
|
const testing_config_utils_1 = require("../../utils/testing-config-utils");
|
|
12
11
|
const versions_1 = require("../../utils/versions");
|
|
13
12
|
const init_1 = tslib_1.__importDefault(require("../init/init"));
|
|
14
13
|
const update_dependencies_1 = require("../utils/update-dependencies");
|
|
15
14
|
const lib_1 = require("./lib");
|
|
16
|
-
const
|
|
17
|
-
const sort_fields_1 = require("@nx/js/src/utils/package-json/sort-fields");
|
|
15
|
+
const internal_2 = require("@nx/js/internal");
|
|
18
16
|
function remixApplicationGenerator(tree, options) {
|
|
19
17
|
return remixApplicationGeneratorInternal(tree, {
|
|
20
18
|
addPlugin: true,
|
|
@@ -23,7 +21,8 @@ function remixApplicationGenerator(tree, options) {
|
|
|
23
21
|
});
|
|
24
22
|
}
|
|
25
23
|
async function remixApplicationGeneratorInternal(tree, _options) {
|
|
26
|
-
|
|
24
|
+
(0, versions_1.assertSupportedRemixVersion)(tree);
|
|
25
|
+
const addTsPlugin = (0, internal_2.shouldConfigureTsSolutionSetup)(tree, _options.addPlugin, _options.useTsSolution);
|
|
27
26
|
const tasks = [
|
|
28
27
|
await (0, init_1.default)(tree, {
|
|
29
28
|
skipFormat: true,
|
|
@@ -43,7 +42,7 @@ async function remixApplicationGeneratorInternal(tree, _options) {
|
|
|
43
42
|
// If we are using the new TS solution
|
|
44
43
|
// We need to update the workspace file (package.json or pnpm-workspaces.yaml) to include the new project
|
|
45
44
|
if (options.isUsingTsSolutionConfig) {
|
|
46
|
-
await (0,
|
|
45
|
+
await (0, internal_2.addProjectToTsSolutionWorkspace)(tree, options.projectRoot);
|
|
47
46
|
}
|
|
48
47
|
if (options.useProjectJson) {
|
|
49
48
|
(0, devkit_1.addProjectConfiguration)(tree, options.projectName, {
|
|
@@ -101,7 +100,7 @@ async function remixApplicationGeneratorInternal(tree, _options) {
|
|
|
101
100
|
if (options.unitTestRunner === 'vitest') {
|
|
102
101
|
const { createOrEditViteConfig } = (0, devkit_1.ensurePackage)('@nx/vite', versions_1.nxVersion);
|
|
103
102
|
(0, devkit_1.ensurePackage)('@nx/vitest', versions_1.nxVersion);
|
|
104
|
-
const { configurationGenerator } =
|
|
103
|
+
const { configurationGenerator, } = require('@nx/vitest/generators');
|
|
105
104
|
const vitestTask = await configurationGenerator(tree, {
|
|
106
105
|
uiFramework: 'react',
|
|
107
106
|
project: options.projectName,
|
|
@@ -151,7 +150,7 @@ async function remixApplicationGeneratorInternal(tree, _options) {
|
|
|
151
150
|
}
|
|
152
151
|
if (options.linter !== 'none') {
|
|
153
152
|
const { lintProjectGenerator } = (0, devkit_1.ensurePackage)('@nx/eslint', versions_1.nxVersion);
|
|
154
|
-
const { addIgnoresToLintConfig } =
|
|
153
|
+
const { addIgnoresToLintConfig, } = require('@nx/eslint/internal');
|
|
155
154
|
const eslintTask = await lintProjectGenerator(tree, {
|
|
156
155
|
linter: options.linter,
|
|
157
156
|
project: options.projectName,
|
|
@@ -197,7 +196,7 @@ async function remixApplicationGeneratorInternal(tree, _options) {
|
|
|
197
196
|
}
|
|
198
197
|
else {
|
|
199
198
|
// Otherwise, extract the tsconfig.base.json from tsconfig.json so we can share settings.
|
|
200
|
-
(0,
|
|
199
|
+
(0, js_1.extractTsConfigBase)(tree);
|
|
201
200
|
}
|
|
202
201
|
if (options.rootProject) {
|
|
203
202
|
(0, devkit_1.updateJson)(tree, `package.json`, (json) => {
|
|
@@ -213,19 +212,19 @@ export default {...nxPreset};
|
|
|
213
212
|
}
|
|
214
213
|
tasks.push(await (0, lib_1.addE2E)(tree, options));
|
|
215
214
|
await (0, lib_1.ignoreViteTempFiles)(tree, options.projectRoot);
|
|
216
|
-
(0,
|
|
215
|
+
(0, internal_2.updateTsconfigFiles)(tree, options.projectRoot, 'tsconfig.app.json', {
|
|
217
216
|
jsx: 'react-jsx',
|
|
218
217
|
module: 'esnext',
|
|
219
218
|
moduleResolution: 'bundler',
|
|
220
219
|
}, options.linter === 'eslint'
|
|
221
220
|
? ['eslint.config.js', 'eslint.config.cjs', 'eslint.config.mjs']
|
|
222
221
|
: undefined, '.');
|
|
223
|
-
(0,
|
|
222
|
+
(0, internal_2.sortPackageJsonFields)(tree, options.projectRoot);
|
|
224
223
|
if (!options.skipFormat) {
|
|
225
224
|
await (0, devkit_1.formatFiles)(tree);
|
|
226
225
|
}
|
|
227
226
|
tasks.push(() => {
|
|
228
|
-
(0,
|
|
227
|
+
(0, internal_1.logShowProjectCommand)(options.projectName);
|
|
229
228
|
});
|
|
230
229
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
231
230
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addE2E = addE2E;
|
|
4
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
|
5
6
|
const versions_1 = require("../../../utils/versions");
|
|
6
|
-
const e2e_web_server_info_utils_1 = require("@nx/devkit/src/generators/e2e-web-server-info-utils");
|
|
7
7
|
async function addE2E(tree, options) {
|
|
8
8
|
const hasRemixPlugin = (0, devkit_1.readNxJson)(tree).plugins?.find((p) => typeof p === 'string'
|
|
9
9
|
? p === '@nx/remix/plugin'
|
|
@@ -98,11 +98,11 @@ async function getRemixE2EWebServerInfo(tree, projectName, configFilePath, isPlu
|
|
|
98
98
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
99
99
|
let e2ePort = isPluginBeingAdded ? 3000 : 4200;
|
|
100
100
|
const defaultServeTarget = isPluginBeingAdded ? 'dev' : 'serve';
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
e2ePort =
|
|
101
|
+
const serveTargetOptions = (0, internal_1.readTargetDefaultsForTarget)(defaultServeTarget, nxJson.targetDefaults)?.options;
|
|
102
|
+
if (serveTargetOptions?.port) {
|
|
103
|
+
e2ePort = serveTargetOptions.port;
|
|
104
104
|
}
|
|
105
|
-
return (0,
|
|
105
|
+
return (0, internal_1.getE2EWebServerInfo)(tree, projectName, {
|
|
106
106
|
plugin: '@nx/remix/plugin',
|
|
107
107
|
serveTargetName: 'serveTargetName',
|
|
108
108
|
serveStaticTargetName: 'serveStaticTargetName',
|
|
@@ -1,37 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
3
|
exports.ignoreViteTempFiles = ignoreViteTempFiles;
|
|
37
4
|
exports.isEslintInstalled = isEslintInstalled;
|
|
@@ -60,11 +27,11 @@ async function ignoreViteTempFilesInEslintConfig(tree, projectRoot) {
|
|
|
60
27
|
return;
|
|
61
28
|
}
|
|
62
29
|
(0, devkit_1.ensurePackage)('@nx/eslint', versions_1.nxVersion);
|
|
63
|
-
const { addIgnoresToLintConfig, isEslintConfigSupported } =
|
|
30
|
+
const { addIgnoresToLintConfig, isEslintConfigSupported, } = require('@nx/eslint/internal');
|
|
64
31
|
if (!isEslintConfigSupported(tree)) {
|
|
65
32
|
return;
|
|
66
33
|
}
|
|
67
|
-
const { useFlatConfig } =
|
|
34
|
+
const { useFlatConfig, } = require('@nx/eslint/internal');
|
|
68
35
|
const isUsingFlatConfig = useFlatConfig(tree);
|
|
69
36
|
if (!projectRoot && !isUsingFlatConfig) {
|
|
70
37
|
// root eslintrc files ignore all files and the root eslintrc files add
|
|
@@ -10,4 +10,3 @@ export interface NormalizedSchema extends NxRemixGeneratorSchema {
|
|
|
10
10
|
isUsingTsSolutionConfig: boolean;
|
|
11
11
|
}
|
|
12
12
|
export declare function normalizeOptions(tree: Tree, options: NxRemixGeneratorSchema): Promise<NormalizedSchema>;
|
|
13
|
-
//# sourceMappingURL=normalize-options.d.ts.map
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.normalizeOptions = normalizeOptions;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
6
|
+
const internal_2 = require("@nx/js/internal");
|
|
7
7
|
async function normalizeOptions(tree, options) {
|
|
8
|
-
await (0,
|
|
9
|
-
const { projectName, projectRoot, importPath } = await (0,
|
|
8
|
+
await (0, internal_1.ensureRootProjectName)(options, 'application');
|
|
9
|
+
const { projectName, projectRoot, importPath } = await (0, internal_1.determineProjectNameAndRootOptions)(tree, {
|
|
10
10
|
name: options.name,
|
|
11
11
|
projectType: 'application',
|
|
12
12
|
directory: options.directory,
|
|
@@ -17,7 +17,7 @@ async function normalizeOptions(tree, options) {
|
|
|
17
17
|
const addPluginDefault = process.env.NX_ADD_PLUGINS !== 'false' &&
|
|
18
18
|
nxJson.useInferencePlugins !== false;
|
|
19
19
|
options.addPlugin ??= addPluginDefault;
|
|
20
|
-
const isUsingTsSolutionConfig = (0,
|
|
20
|
+
const isUsingTsSolutionConfig = (0, internal_2.isUsingTsSolutionSetup)(tree);
|
|
21
21
|
const appProjectName = !isUsingTsSolutionConfig || options.name ? projectName : importPath;
|
|
22
22
|
const e2eProjectName = options.rootProject ? 'e2e' : `${appProjectName}-e2e`;
|
|
23
23
|
const e2eProjectRoot = options.rootProject ? 'e2e' : `${projectRoot}-e2e`;
|
|
@@ -53,5 +53,5 @@ function updateUnitTestConfig(tree, pathToRoot, unitTestRunner, rootProject) {
|
|
|
53
53
|
'@testing-library/user-event': versions_1.testingLibraryUserEventsVersion,
|
|
54
54
|
'@remix-run/node': (0, versions_1.getRemixVersion)(tree),
|
|
55
55
|
'@remix-run/testing': (0, versions_1.getRemixVersion)(tree),
|
|
56
|
-
});
|
|
56
|
+
}, undefined, true);
|
|
57
57
|
}
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.convertToInferred = convertToInferred;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const
|
|
6
|
-
const executor_to_plugin_migrator_1 = require("@nx/devkit/src/generators/plugin-migrations/executor-to-plugin-migrator");
|
|
5
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
7
6
|
const plugin_1 = require("../../plugins/plugin");
|
|
8
7
|
const build_post_target_transformer_1 = require("./lib/build-post-target-transformer");
|
|
9
8
|
const serve_post_target_transformer_1 = require("./lib/serve-post-target-transformer");
|
|
9
|
+
const versions_1 = require("../../utils/versions");
|
|
10
10
|
async function convertToInferred(tree, options) {
|
|
11
|
+
(0, versions_1.assertSupportedRemixVersion)(tree);
|
|
11
12
|
const projectGraph = await (0, devkit_1.createProjectGraphAsync)();
|
|
12
|
-
const migrationLogs = new
|
|
13
|
-
const migratedProjects = await (0,
|
|
13
|
+
const migrationLogs = new internal_1.AggregatedLog();
|
|
14
|
+
const migratedProjects = await (0, internal_1.migrateProjectExecutorsToPlugin)(tree, projectGraph, '@nx/remix/plugin', plugin_1.createNodesV2, {
|
|
14
15
|
buildTargetName: 'build',
|
|
15
16
|
devTargetName: 'dev',
|
|
16
17
|
startTargetName: 'start',
|
|
@@ -33,7 +34,7 @@ async function convertToInferred(tree, options) {
|
|
|
33
34
|
},
|
|
34
35
|
], options.project);
|
|
35
36
|
if (migratedProjects.size === 0) {
|
|
36
|
-
throw new
|
|
37
|
+
throw new internal_1.NoTargetsToMigrateError();
|
|
37
38
|
}
|
|
38
39
|
if (!options.skipFormat) {
|
|
39
40
|
await (0, devkit_1.formatFiles)(tree);
|
package/{src → dist/src}/generators/convert-to-inferred/lib/build-post-target-transformer.d.ts
RENAMED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type Tree, type TargetConfiguration } from '@nx/devkit';
|
|
2
|
-
import { AggregatedLog } from '@nx/devkit/
|
|
2
|
+
import { AggregatedLog } from '@nx/devkit/internal';
|
|
3
3
|
export declare function buildPostTargetTransformer(migrationLogs: AggregatedLog): (target: TargetConfiguration, tree: Tree, projectDetails: {
|
|
4
4
|
projectName: string;
|
|
5
5
|
root: string;
|
|
6
6
|
}, inferredTargetConfiguration: TargetConfiguration) => TargetConfiguration<any>;
|
|
7
|
-
//# sourceMappingURL=build-post-target-transformer.d.ts.map
|
package/{src → dist/src}/generators/convert-to-inferred/lib/build-post-target-transformer.js
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.buildPostTargetTransformer = buildPostTargetTransformer;
|
|
4
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
4
5
|
const utils_1 = require("./utils");
|
|
5
|
-
const plugin_migration_utils_1 = require("@nx/devkit/src/generators/plugin-migrations/plugin-migration-utils");
|
|
6
6
|
function buildPostTargetTransformer(migrationLogs) {
|
|
7
7
|
return (target, tree, projectDetails, inferredTargetConfiguration) => {
|
|
8
8
|
const remixConfigPath = (0, utils_1.getConfigFilePath)(tree, projectDetails.root);
|
|
@@ -27,7 +27,7 @@ function buildPostTargetTransformer(migrationLogs) {
|
|
|
27
27
|
}
|
|
28
28
|
if (target.outputs) {
|
|
29
29
|
target.outputs = target.outputs.filter((out) => !out.includes('options.outputPath'));
|
|
30
|
-
(0,
|
|
30
|
+
(0, internal_1.processTargetOutputs)(target, [], inferredTargetConfiguration, {
|
|
31
31
|
projectName: projectDetails.projectName,
|
|
32
32
|
projectRoot: projectDetails.root,
|
|
33
33
|
});
|
package/{src → dist/src}/generators/convert-to-inferred/lib/serve-post-target-transformer.d.ts
RENAMED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type Tree, type TargetConfiguration } from '@nx/devkit';
|
|
2
|
-
import { AggregatedLog } from '@nx/devkit/
|
|
2
|
+
import { AggregatedLog } from '@nx/devkit/internal';
|
|
3
3
|
export declare function servePostTargetTransformer(migrationLogs: AggregatedLog): (target: TargetConfiguration, tree: Tree, projectDetails: {
|
|
4
4
|
projectName: string;
|
|
5
5
|
root: string;
|
|
6
6
|
}, inferredTargetConfiguration: TargetConfiguration) => TargetConfiguration<any>;
|
|
7
|
-
//# sourceMappingURL=serve-post-target-transformer.d.ts.map
|
|
@@ -3,4 +3,3 @@ import { type CypressComponentConfigurationSchema } from './schema';
|
|
|
3
3
|
export declare function cypressComponentConfigurationGenerator(tree: Tree, options: CypressComponentConfigurationSchema): Promise<void>;
|
|
4
4
|
export declare function cypressComponentConfigurationGeneratorInternal(tree: Tree, options: CypressComponentConfigurationSchema): Promise<void>;
|
|
5
5
|
export default cypressComponentConfigurationGenerator;
|
|
6
|
-
//# sourceMappingURL=cypress-component-configuration.impl.d.ts.map
|
|
@@ -5,6 +5,7 @@ exports.cypressComponentConfigurationGeneratorInternal = cypressComponentConfigu
|
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
6
|
const path_1 = require("path");
|
|
7
7
|
const react_1 = require("@nx/react");
|
|
8
|
+
const versions_1 = require("../../utils/versions");
|
|
8
9
|
function cypressComponentConfigurationGenerator(tree, options) {
|
|
9
10
|
return cypressComponentConfigurationGeneratorInternal(tree, {
|
|
10
11
|
addPlugin: false,
|
|
@@ -12,6 +13,7 @@ function cypressComponentConfigurationGenerator(tree, options) {
|
|
|
12
13
|
});
|
|
13
14
|
}
|
|
14
15
|
async function cypressComponentConfigurationGeneratorInternal(tree, options) {
|
|
16
|
+
(0, versions_1.assertSupportedRemixVersion)(tree);
|
|
15
17
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
16
18
|
const addPluginDefault = process.env.NX_ADD_PLUGINS !== 'false' &&
|
|
17
19
|
nxJson.useInferencePlugins !== false;
|
|
@@ -3,7 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.default = errorBoundaryGenerator;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const lib_1 = require("./lib");
|
|
6
|
+
const versions_1 = require("../../utils/versions");
|
|
6
7
|
async function errorBoundaryGenerator(tree, schema) {
|
|
8
|
+
(0, versions_1.assertSupportedRemixVersion)(tree);
|
|
7
9
|
const options = await (0, lib_1.normalizeOptions)(tree, schema);
|
|
8
10
|
(0, lib_1.addV2ErrorBoundary)(tree, options);
|
|
9
11
|
if (!options.skipFormat) {
|
|
@@ -3,4 +3,3 @@ import { type Schema } from './schema';
|
|
|
3
3
|
export declare function remixInitGenerator(tree: Tree, options: Schema): Promise<GeneratorCallback>;
|
|
4
4
|
export declare function remixInitGeneratorInternal(tree: Tree, options: Schema): Promise<GeneratorCallback>;
|
|
5
5
|
export default remixInitGenerator;
|
|
6
|
-
//# sourceMappingURL=init.d.ts.map
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.remixInitGenerator = remixInitGenerator;
|
|
4
4
|
exports.remixInitGeneratorInternal = remixInitGeneratorInternal;
|
|
5
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
5
6
|
const devkit_1 = require("@nx/devkit");
|
|
6
|
-
const add_plugin_1 = require("@nx/devkit/src/utils/add-plugin");
|
|
7
7
|
const plugin_1 = require("../../plugins/plugin");
|
|
8
8
|
const versions_1 = require("../../utils/versions");
|
|
9
9
|
function remixInitGenerator(tree, options) {
|
|
10
10
|
return remixInitGeneratorInternal(tree, { addPlugin: false, ...options });
|
|
11
11
|
}
|
|
12
12
|
async function remixInitGeneratorInternal(tree, options) {
|
|
13
|
+
(0, versions_1.assertSupportedRemixVersion)(tree);
|
|
13
14
|
const tasks = [];
|
|
14
15
|
if (!options.skipPackageJson) {
|
|
15
16
|
const installTask = (0, devkit_1.addDependenciesToPackageJson)(tree, {
|
|
@@ -17,7 +18,7 @@ async function remixInitGeneratorInternal(tree, options) {
|
|
|
17
18
|
}, {
|
|
18
19
|
'@nx/web': versions_1.nxVersion,
|
|
19
20
|
'@remix-run/dev': versions_1.remixVersion,
|
|
20
|
-
}, undefined, options.keepExistingVersions);
|
|
21
|
+
}, undefined, options.keepExistingVersions ?? true);
|
|
21
22
|
tasks.push(installTask);
|
|
22
23
|
}
|
|
23
24
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
@@ -25,7 +26,7 @@ async function remixInitGeneratorInternal(tree, options) {
|
|
|
25
26
|
nxJson.useInferencePlugins !== false;
|
|
26
27
|
options.addPlugin ??= addPluginDefault;
|
|
27
28
|
if (options.addPlugin) {
|
|
28
|
-
await (0,
|
|
29
|
+
await (0, internal_1.addPlugin)(tree, await (0, devkit_1.createProjectGraphAsync)(), '@nx/remix/plugin', plugin_1.createNodesV2, {
|
|
29
30
|
startTargetName: ['start', 'remix:start', 'remix-start'],
|
|
30
31
|
buildTargetName: ['build', 'remix:build', 'remix-build'],
|
|
31
32
|
devTargetName: ['dev', 'remix:dev', 'remix-dev'],
|