mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 20:37:21 +00:00
replaced remix with react-router
This commit is contained in:
@@ -24,7 +24,7 @@ const config = {
|
||||
},
|
||||
framework: {
|
||||
nextjs: "Next.js",
|
||||
remix: "Remix",
|
||||
"react-router": "React Router",
|
||||
astro: "Astro",
|
||||
},
|
||||
} as const;
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import { cloudflare } from "./cloudflare";
|
||||
import { nextjs } from "./nextjs";
|
||||
import { remix } from "./remix";
|
||||
|
||||
export type TemplateSetupCtx = {
|
||||
template: Template;
|
||||
@@ -13,7 +11,7 @@ export type Integration =
|
||||
| "bun"
|
||||
| "cloudflare"
|
||||
| "nextjs"
|
||||
| "remix"
|
||||
| "react-router"
|
||||
| "astro"
|
||||
| "aws"
|
||||
| "custom";
|
||||
@@ -43,8 +41,6 @@ export type Template = {
|
||||
|
||||
export const templates: Template[] = [
|
||||
cloudflare,
|
||||
nextjs,
|
||||
remix,
|
||||
{
|
||||
key: "node",
|
||||
title: "Node.js Basic",
|
||||
@@ -61,6 +57,14 @@ export const templates: Template[] = [
|
||||
path: "gh:bknd-io/bknd/examples/bun",
|
||||
ref: true,
|
||||
},
|
||||
{
|
||||
key: "nextjs",
|
||||
title: "Next.js Basic",
|
||||
integration: "nextjs",
|
||||
description: "A basic bknd Next.js starter",
|
||||
path: "gh:bknd-io/bknd/examples/nextjs",
|
||||
ref: true,
|
||||
},
|
||||
{
|
||||
key: "astro",
|
||||
title: "Astro Basic",
|
||||
@@ -69,6 +73,14 @@ export const templates: Template[] = [
|
||||
path: "gh:bknd-io/bknd/examples/astro",
|
||||
ref: true,
|
||||
},
|
||||
{
|
||||
key: "react-router",
|
||||
title: "React Router Basic",
|
||||
integration: "react-router",
|
||||
description: "A basic bknd React Router starter",
|
||||
path: "gh:bknd-io/bknd/examples/react-router",
|
||||
ref: true,
|
||||
},
|
||||
{
|
||||
key: "aws",
|
||||
title: "AWS Lambda Basic",
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
import { overridePackageJson } from "cli/commands/create/npm";
|
||||
import type { Template } from ".";
|
||||
|
||||
// @todo: add `concurrently`?
|
||||
export const nextjs = {
|
||||
key: "nextjs",
|
||||
title: "Next.js Basic",
|
||||
integration: "nextjs",
|
||||
description: "A basic bknd Next.js starter",
|
||||
path: "gh:bknd-io/bknd/examples/nextjs",
|
||||
scripts: {
|
||||
install: "npm install --force",
|
||||
},
|
||||
ref: true,
|
||||
preinstall: async (ctx) => {
|
||||
// locally it's required to overwrite react, here it is not
|
||||
await overridePackageJson(
|
||||
(pkg) => ({
|
||||
...pkg,
|
||||
dependencies: {
|
||||
...pkg.dependencies,
|
||||
react: undefined,
|
||||
"react-dom": undefined,
|
||||
},
|
||||
}),
|
||||
{ dir: ctx.dir },
|
||||
);
|
||||
},
|
||||
} as const satisfies Template;
|
||||
@@ -1,25 +0,0 @@
|
||||
import { overridePackageJson } from "cli/commands/create/npm";
|
||||
import type { Template } from ".";
|
||||
|
||||
export const remix = {
|
||||
key: "remix",
|
||||
title: "Remix Basic",
|
||||
integration: "remix",
|
||||
description: "A basic bknd Remix starter",
|
||||
path: "gh:bknd-io/bknd/examples/remix",
|
||||
ref: true,
|
||||
preinstall: async (ctx) => {
|
||||
// locally it's required to overwrite react
|
||||
await overridePackageJson(
|
||||
(pkg) => ({
|
||||
...pkg,
|
||||
dependencies: {
|
||||
...pkg.dependencies,
|
||||
react: "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
},
|
||||
}),
|
||||
{ dir: ctx.dir },
|
||||
);
|
||||
},
|
||||
} as const satisfies Template;
|
||||
Reference in New Issue
Block a user