Skip to content

Commit e12840b

Browse files
authored
feat(serve): manual mode integration (#7231)
1 parent 04d0fc7 commit e12840b

File tree

11 files changed

+369
-748
lines changed

11 files changed

+369
-748
lines changed

.changeset/dirty-bags-wink.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@remix-run/serve": major
3+
---
4+
5+
integrate manual mode in remix-serve

integration/helpers/create-fixture.ts

+21-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export async function createAppFixture(fixture: Fixture, mode?: ServerMode) {
137137
let newChunk = chunk.toString();
138138
stdout += newChunk;
139139
let match: RegExpMatchArray | null = stdout.match(
140-
/started at http:\/\/localhost:(\d+)\s/
140+
/\[remix-serve\] http:\/\/localhost:(\d+)\s/
141141
);
142142
if (match) {
143143
clearTimeout(rejectTimeout);
@@ -223,6 +223,26 @@ export async function createFixtureProject(
223223
path.join(projectDir, "node_modules"),
224224
{ overwrite: true }
225225
);
226+
// let remixDev = path.join(
227+
// projectDir,
228+
// "node_modules/@remix-run/dev/dist/cli.js"
229+
// );
230+
// await fse.chmod(remixDev, 0o755);
231+
// await fse.ensureSymlink(
232+
// remixDev,
233+
// path.join(projectDir, "node_modules/.bin/remix")
234+
// );
235+
//
236+
// let remixServe = path.join(
237+
// projectDir,
238+
// "node_modules/@remix-run/serve/dist/cli.js"
239+
// );
240+
// await fse.chmod(remixServe, 0o755);
241+
// await fse.ensureSymlink(
242+
// remixServe,
243+
// path.join(projectDir, "node_modules/.bin/remix-serve")
244+
// );
245+
226246
await writeTestFiles(init, projectDir);
227247

228248
// We update the config file *after* writing test files so that tests can provide a custom

integration/helpers/node-template/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"build": "node ../../../build/node_modules/@remix-run/dev/dist/cli.js build",
88
"dev": "node ../../../build/node_modules/@remix-run/dev/dist/cli.js dev",
9-
"start": "node ../../../build/node_modules/@remix-run/serve/dist/cli.js build"
9+
"start": "node ../../../build/node_modules/@remix-run/serve/dist/cli.js ./build/index.js"
1010
},
1111
"dependencies": {
1212
"@remix-run/node": "0.0.0-local-version",

0 commit comments

Comments
 (0)