Skip to content

Commit f763fd2

Browse files
Update default create-react-router template (#12342)
1 parent b98209d commit f763fd2

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed
-37.7 KB
Binary file not shown.
72.5 KB
Binary file not shown.

packages/create-react-router/__tests__/github-mocks.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,8 @@ let sendTarball: ResponseResolver = async (req, res, ctx) => {
5555
invariant(typeof repo === "string", "repo must be a string");
5656

5757
let pathToTarball: string;
58-
if (owner === "remix-run" && repo === "react-router") {
59-
pathToTarball = path.join(
60-
__dirname,
61-
"fixtures",
62-
"react-router-repo.tar.gz"
63-
);
58+
if (owner === "remix-run" && repo === "react-router-templates") {
59+
pathToTarball = path.join(__dirname, "fixtures", "templates-repo.tar.gz");
6460
} else if (owner === "fake-react-router-tester" && repo === "nested-dir") {
6561
pathToTarball = path.join(__dirname, "fixtures", "nested-dir-repo.tar.gz");
6662
} else {

packages/create-react-router/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,14 @@ async function copyTemplateToTempDirStep(ctx: Context) {
251251
info("Template:", ["Using ", color.reset(ctx.template), "..."]);
252252
} else {
253253
log("");
254-
info("Using basic template"); // TODO: (v7) Add link to templates
254+
info("Using default template", [
255+
"See https://github.com/remix-run/react-router-templates for more",
256+
]);
255257
}
256258

257259
let template =
258260
ctx.template ??
259-
// TODO: (v7) Update to main branch
260-
"https://github.com/remix-run/react-router/tree/dev/templates/basic";
261+
"https://github.com/remix-run/react-router-templates/tree/main/default";
261262

262263
await loadingIndicator({
263264
start: "Template copying...",

0 commit comments

Comments
 (0)