Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(serve): manual mode integration #7231

Merged
merged 11 commits into from
Aug 25, 2023
Merged
5 changes: 5 additions & 0 deletions .changeset/dirty-bags-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/serve": major
---

integrate manual mode in remix-serve
22 changes: 21 additions & 1 deletion integration/helpers/create-fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export async function createAppFixture(fixture: Fixture, mode?: ServerMode) {
let newChunk = chunk.toString();
stdout += newChunk;
let match: RegExpMatchArray | null = stdout.match(
/started at http:\/\/localhost:(\d+)\s/
/\[remix-serve\] http:\/\/localhost:(\d+)\s/
);
if (match) {
clearTimeout(rejectTimeout);
Expand Down Expand Up @@ -223,6 +223,26 @@ export async function createFixtureProject(
path.join(projectDir, "node_modules"),
{ overwrite: true }
);
// let remixDev = path.join(
// projectDir,
// "node_modules/@remix-run/dev/dist/cli.js"
// );
// await fse.chmod(remixDev, 0o755);
// await fse.ensureSymlink(
// remixDev,
// path.join(projectDir, "node_modules/.bin/remix")
// );
//
// let remixServe = path.join(
// projectDir,
// "node_modules/@remix-run/serve/dist/cli.js"
// );
// await fse.chmod(remixServe, 0o755);
// await fse.ensureSymlink(
// remixServe,
// path.join(projectDir, "node_modules/.bin/remix-serve")
// );

await writeTestFiles(init, projectDir);

// We update the config file *after* writing test files so that tests can provide a custom
Expand Down
2 changes: 1 addition & 1 deletion integration/helpers/node-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"build": "node ../../../build/node_modules/@remix-run/dev/dist/cli.js build",
"dev": "node ../../../build/node_modules/@remix-run/dev/dist/cli.js dev",
"start": "node ../../../build/node_modules/@remix-run/serve/dist/cli.js build"
"start": "node ../../../build/node_modules/@remix-run/serve/dist/cli.js ./build/index.js"
},
"dependencies": {
"@remix-run/node": "0.0.0-local-version",
Expand Down
Loading