@nx/remix 23.3.0-beta.0 → 23.3.0-beta.1
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/dist/src/plugins/plugin.js +16 -11
- package/package.json +10 -10
|
@@ -78,9 +78,9 @@ async function buildRemixTargets(configFilePath, projectRoot, options, context,
|
|
|
78
78
|
const { buildDirectory, assetsBuildDirectory, serverBuildPath } = await getBuildPaths(configFilePath, projectRoot, context.workspaceRoot, remixCompiler);
|
|
79
79
|
const targets = {};
|
|
80
80
|
targets[options.buildTargetName] = buildTarget(options.buildTargetName, projectRoot, buildDirectory, assetsBuildDirectory, namedInputs, remixCompiler, isUsingTsSolutionSetup);
|
|
81
|
-
targets[options.devTargetName] = devTarget(serverBuildPath, projectRoot, remixCompiler, isUsingTsSolutionSetup);
|
|
82
|
-
targets[options.startTargetName] = startTarget(projectRoot, serverBuildPath, options.buildTargetName, remixCompiler, isUsingTsSolutionSetup);
|
|
83
|
-
targets[options.serveStaticTargetName] = startTarget(projectRoot, serverBuildPath, options.buildTargetName, remixCompiler, isUsingTsSolutionSetup);
|
|
81
|
+
targets[options.devTargetName] = devTarget(serverBuildPath, projectRoot, remixCompiler, namedInputs, isUsingTsSolutionSetup);
|
|
82
|
+
targets[options.startTargetName] = startTarget(projectRoot, serverBuildPath, options.buildTargetName, remixCompiler, namedInputs, isUsingTsSolutionSetup);
|
|
83
|
+
targets[options.serveStaticTargetName] = startTarget(projectRoot, serverBuildPath, options.buildTargetName, remixCompiler, namedInputs, isUsingTsSolutionSetup);
|
|
84
84
|
targets[options.typecheckTargetName] = typecheckTarget(options.typecheckTargetName, projectRoot, namedInputs, siblingFiles, isUsingTsSolutionSetup, pmc);
|
|
85
85
|
(0, internal_2.addBuildAndWatchDepsTargets)(context.workspaceRoot, projectRoot, targets, options, pmc);
|
|
86
86
|
return { targets, metadata: {} };
|
|
@@ -102,12 +102,7 @@ function buildTarget(buildTargetName, projectRoot, buildDirectory, assetsBuildDi
|
|
|
102
102
|
const buildTarget = {
|
|
103
103
|
cache: true,
|
|
104
104
|
dependsOn: [`^${buildTargetName}`],
|
|
105
|
-
inputs:
|
|
106
|
-
...('production' in namedInputs
|
|
107
|
-
? ['production', '^production']
|
|
108
|
-
: ['default', '^default']),
|
|
109
|
-
{ externalDependencies: ['@remix-run/dev'] },
|
|
110
|
-
],
|
|
105
|
+
inputs: buildInputs(namedInputs),
|
|
111
106
|
outputs,
|
|
112
107
|
command: remixCompiler === RemixCompiler.IsVte
|
|
113
108
|
? 'remix vite:build'
|
|
@@ -119,9 +114,18 @@ function buildTarget(buildTargetName, projectRoot, buildDirectory, assetsBuildDi
|
|
|
119
114
|
}
|
|
120
115
|
return buildTarget;
|
|
121
116
|
}
|
|
122
|
-
function
|
|
117
|
+
function buildInputs(namedInputs) {
|
|
118
|
+
return [
|
|
119
|
+
...('production' in namedInputs
|
|
120
|
+
? ['production', '^production']
|
|
121
|
+
: ['default', '^default']),
|
|
122
|
+
{ externalDependencies: ['@remix-run/dev'] },
|
|
123
|
+
];
|
|
124
|
+
}
|
|
125
|
+
function devTarget(serverBuildPath, projectRoot, remixCompiler, namedInputs, isUsingTsSolutionSetup) {
|
|
123
126
|
const devTarget = {
|
|
124
127
|
continuous: true,
|
|
128
|
+
inputs: buildInputs(namedInputs),
|
|
125
129
|
command: remixCompiler === RemixCompiler.IsVte
|
|
126
130
|
? 'remix vite:dev'
|
|
127
131
|
: 'remix dev --manual',
|
|
@@ -132,7 +136,7 @@ function devTarget(serverBuildPath, projectRoot, remixCompiler, isUsingTsSolutio
|
|
|
132
136
|
}
|
|
133
137
|
return devTarget;
|
|
134
138
|
}
|
|
135
|
-
function startTarget(projectRoot, serverBuildPath, buildTargetName, remixCompiler, isUsingTsSolutionSetup) {
|
|
139
|
+
function startTarget(projectRoot, serverBuildPath, buildTargetName, remixCompiler, namedInputs, isUsingTsSolutionSetup) {
|
|
136
140
|
let serverPath = serverBuildPath;
|
|
137
141
|
if (remixCompiler === RemixCompiler.IsVte) {
|
|
138
142
|
if (serverBuildPath === 'build') {
|
|
@@ -142,6 +146,7 @@ function startTarget(projectRoot, serverBuildPath, buildTargetName, remixCompile
|
|
|
142
146
|
const startTarget = {
|
|
143
147
|
dependsOn: [buildTargetName],
|
|
144
148
|
continuous: true,
|
|
149
|
+
inputs: buildInputs(namedInputs),
|
|
145
150
|
command: `remix-serve ${serverPath}`,
|
|
146
151
|
options: {
|
|
147
152
|
cwd: projectRoot,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/remix",
|
|
3
|
-
"version": "23.3.0-beta.
|
|
3
|
+
"version": "23.3.0-beta.1",
|
|
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",
|
|
@@ -56,20 +56,20 @@
|
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"tslib": "^2.3.0",
|
|
58
58
|
"@phenomnomnominal/tsquery": "~6.2.0",
|
|
59
|
-
"@nx/devkit": "23.3.0-beta.
|
|
60
|
-
"@nx/js": "23.3.0-beta.
|
|
61
|
-
"@nx/react": "23.3.0-beta.
|
|
62
|
-
"@nx/web": "23.3.0-beta.
|
|
59
|
+
"@nx/devkit": "23.3.0-beta.1",
|
|
60
|
+
"@nx/js": "23.3.0-beta.1",
|
|
61
|
+
"@nx/react": "23.3.0-beta.1",
|
|
62
|
+
"@nx/web": "23.3.0-beta.1"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@nx/eslint": "23.3.0-beta.
|
|
66
|
-
"nx": "23.3.0-beta.
|
|
67
|
-
"@nx/vitest": "23.3.0-beta.
|
|
65
|
+
"@nx/eslint": "23.3.0-beta.1",
|
|
66
|
+
"nx": "23.3.0-beta.1",
|
|
67
|
+
"@nx/vitest": "23.3.0-beta.1"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"@remix-run/dev": "^2.0.0",
|
|
71
|
-
"@nx/cypress": "23.3.0-beta.
|
|
72
|
-
"@nx/playwright": "23.3.0-beta.
|
|
71
|
+
"@nx/cypress": "23.3.0-beta.1",
|
|
72
|
+
"@nx/playwright": "23.3.0-beta.1"
|
|
73
73
|
},
|
|
74
74
|
"peerDependenciesMeta": {
|
|
75
75
|
"@nx/cypress": {
|