Skip to content

chore: migrate examples to flat routes #201

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

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
10 changes: 5 additions & 5 deletions __template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
"typecheck": "tsc"
},
"dependencies": {
"@remix-run/node": "~1.14.2",
"@remix-run/react": "~1.14.2",
"@remix-run/serve": "~1.14.2",
"@remix-run/node": "^1.15.0",
"@remix-run/react": "^1.15.0",
"@remix-run/serve": "^1.15.0",
"isbot": "^3.6.5",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@remix-run/dev": "~1.14.2",
"@remix-run/eslint-config": "~1.14.2",
"@remix-run/dev": "^1.15.0",
"@remix-run/eslint-config": "^1.15.0",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
"eslint": "^8.27.0",
Expand Down
1 change: 1 addition & 0 deletions __template/remix.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
ignoredRouteFiles: ["**/.*"],
future: { v2_routeConvention: true },
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
// serverBuildPath: "build/index.js",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Alert from "@reach/alert";
import { Alert } from "@reach/alert";
import type { ActionArgs } from "@remix-run/node";
import { json, redirect } from "@remix-run/node";
import { Form, useActionData } from "@remix-run/react";
Expand Down
10 changes: 5 additions & 5 deletions _official-blog-tutorial/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
"@node-rs/bcrypt": "^1.6.0",
"@prisma/client": "^3.13.0",
"@reach/alert": "^0.17.0",
"@remix-run/node": "~1.14.2",
"@remix-run/react": "~1.14.2",
"@remix-run/serve": "~1.14.2",
"@remix-run/node": "^1.15.0",
"@remix-run/react": "^1.15.0",
"@remix-run/serve": "^1.15.0",
"marked": "^4.0.15",
"isbot": "^3.6.5",
"react": "^18.2.0",
Expand All @@ -42,8 +42,8 @@
},
"devDependencies": {
"@faker-js/faker": "^6.3.1",
"@remix-run/dev": "~1.14.2",
"@remix-run/eslint-config": "~1.14.2",
"@remix-run/dev": "^1.15.0",
"@remix-run/eslint-config": "^1.15.0",
"@testing-library/cypress": "^8.0.2",
"@testing-library/dom": "^8.13.0",
"@testing-library/jest-dom": "^5.16.4",
Expand Down
1 change: 1 addition & 0 deletions _official-blog-tutorial/remix.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
module.exports = {
cacheDirectory: "./node_modules/.cache/remix",
ignoredRouteFiles: ["**/.*", "**/*.css", "**/*.test.{js,jsx,ts,tsx}"],
future: { v2_routeConvention: true },
};
2 changes: 2 additions & 0 deletions _official-blog-tutorial/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
"exclude": ["./cypress"],
"include": ["remix.env.d.ts", "**/*.ts", "**/*.tsx"],
"compilerOptions": {
"allowJs": true,
"lib": ["DOM", "DOM.Iterable", "ES2019"],
"types": ["vitest/globals"],
"isolatedModules": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"jsx": "react-jsx",
"module": "ES2020",
"moduleResolution": "node",
Expand Down
10 changes: 5 additions & 5 deletions _official-jokes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
},
"dependencies": {
"@prisma/client": "^3.10.0",
"@remix-run/node": "~1.14.2",
"@remix-run/react": "~1.14.2",
"@remix-run/serve": "~1.14.2",
"@remix-run/node": "^1.15.0",
"@remix-run/react": "^1.15.0",
"@remix-run/serve": "^1.15.0",
"bcryptjs": "^2.4.3",
"isbot": "^3.6.5",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@remix-run/dev": "~1.14.2",
"@remix-run/eslint-config": "~1.14.2",
"@remix-run/dev": "^1.15.0",
"@remix-run/eslint-config": "^1.15.0",
"@types/bcryptjs": "^2.4.2",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
Expand Down
1 change: 1 addition & 0 deletions _official-jokes/remix.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
ignoredRouteFiles: ["**/.*"],
future: { v2_routeConvention: true },
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
// serverBuildPath: "build/index.js",
Expand Down
10 changes: 5 additions & 5 deletions _official-realtime-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"typecheck": "tsc"
},
"dependencies": {
"@remix-run/node": "~1.14.2",
"@remix-run/react": "~1.14.2",
"@remix-run/serve": "~1.14.2",
"@remix-run/node": "^1.15.0",
"@remix-run/react": "^1.15.0",
"@remix-run/serve": "^1.15.0",
"classnames": "^2.3.2",
"compression": "^1.7.4",
"isbot": "^3.6.5",
Expand All @@ -25,8 +25,8 @@
"tiny-invariant": "^1.3.1"
},
"devDependencies": {
"@remix-run/dev": "~1.14.2",
"@remix-run/eslint-config": "~1.14.2",
"@remix-run/dev": "^1.15.0",
"@remix-run/eslint-config": "^1.15.0",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
"eslint": "^8.27.0",
Expand Down
1 change: 1 addition & 0 deletions _official-realtime-app/remix.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
ignoredRouteFiles: ["**/.*"],
future: { v2_routeConvention: true },
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
// serverBuildPath: "build/index.js",
Expand Down
10 changes: 5 additions & 5 deletions _official-tutorial/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"typecheck": "tsc"
},
"dependencies": {
"@remix-run/node": "~1.14.2",
"@remix-run/react": "~1.14.2",
"@remix-run/serve": "~1.14.2",
"@remix-run/node": "^1.15.0",
"@remix-run/react": "^1.15.0",
"@remix-run/serve": "^1.15.0",
"isbot": "^3.6.5",
"match-sorter": "^6.3.1",
"react": "^18.2.0",
Expand All @@ -19,8 +19,8 @@
"tiny-invariant": "^1.3.1"
},
"devDependencies": {
"@remix-run/dev": "~1.14.2",
"@remix-run/eslint-config": "~1.14.2",
"@remix-run/dev": "^1.15.0",
"@remix-run/eslint-config": "^1.15.0",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
"eslint": "^8.27.0",
Expand Down
1 change: 1 addition & 0 deletions _official-tutorial/remix.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
module.exports = {
future: {
unstable_dev: true,
v2_routeConvention: true,
},
ignoredRouteFiles: ["**/.*"],
// appDirectory: "app",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const loader = async ({ params }: LoaderArgs) => {
// Sometimes your code just blows up and you never anticipated it. Remix will
// automatically catch it and send the UI to the error boundary.
if (params.id === "kaboom") {
// @ts-expect-error
lol();
}

Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
"typecheck": "tsc"
},
"dependencies": {
"@remix-run/node": "~1.14.2",
"@remix-run/react": "~1.14.2",
"@remix-run/serve": "~1.14.2",
"@remix-run/node": "^1.15.0",
"@remix-run/react": "^1.15.0",
"@remix-run/serve": "^1.15.0",
"isbot": "^3.6.5",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@remix-run/dev": "~1.14.2",
"@remix-run/eslint-config": "~1.14.2",
"@remix-run/dev": "^1.15.0",
"@remix-run/eslint-config": "^1.15.0",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
"eslint": "^8.27.0",
Expand Down
1 change: 1 addition & 0 deletions basic/remix.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
ignoredRouteFiles: ["**/.*"],
future: { v2_routeConvention: true },
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
// serverBuildPath: "build/index.js",
Expand Down
10 changes: 5 additions & 5 deletions bullmq-task-queue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
"typecheck": "tsc"
},
"dependencies": {
"@remix-run/node": "~1.14.2",
"@remix-run/react": "~1.14.2",
"@remix-run/serve": "~1.14.2",
"@remix-run/node": "^1.15.0",
"@remix-run/react": "^1.15.0",
"@remix-run/serve": "^1.15.0",
"bullmq": "^2.1.0",
"ioredis": "^5.2.3",
"isbot": "^3.6.5",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@remix-run/dev": "~1.14.2",
"@remix-run/eslint-config": "~1.14.2",
"@remix-run/dev": "^1.15.0",
"@remix-run/eslint-config": "^1.15.0",
"@types/ioredis": "^4.28.10",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
Expand Down
1 change: 1 addition & 0 deletions bullmq-task-queue/remix.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ module.exports = {
browserBuildDirectory: "public/build",
publicPath: "/build/",
serverBuildDirectory: "build",
future: { v2_routeConvention: true },
};
10 changes: 5 additions & 5 deletions catch-boundary/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
"typecheck": "tsc"
},
"dependencies": {
"@remix-run/node": "~1.14.2",
"@remix-run/react": "~1.14.2",
"@remix-run/serve": "~1.14.2",
"@remix-run/node": "^1.15.0",
"@remix-run/react": "^1.15.0",
"@remix-run/serve": "^1.15.0",
"isbot": "^3.6.5",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@remix-run/dev": "~1.14.2",
"@remix-run/eslint-config": "~1.14.2",
"@remix-run/dev": "^1.15.0",
"@remix-run/eslint-config": "^1.15.0",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
"eslint": "^8.27.0",
Expand Down
1 change: 1 addition & 0 deletions catch-boundary/remix.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
ignoredRouteFiles: ["**/.*"],
future: { v2_routeConvention: true },
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
// serverBuildPath: "build/index.js",
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions chakra-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@
"@emotion/react": "^11.10.4",
"@emotion/server": "^11.10.0",
"@emotion/styled": "^11.10.4",
"@remix-run/node": "~1.14.2",
"@remix-run/react": "~1.14.2",
"@remix-run/serve": "~1.14.2",
"@remix-run/node": "^1.15.0",
"@remix-run/react": "^1.15.0",
"@remix-run/serve": "^1.15.0",
"framer-motion": "^6.5.1",
"isbot": "^3.6.5",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@remix-run/dev": "~1.14.2",
"@remix-run/eslint-config": "~1.14.2",
"@remix-run/dev": "^1.15.0",
"@remix-run/eslint-config": "^1.15.0",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
"eslint": "^8.27.0",
Expand Down
1 change: 1 addition & 0 deletions chakra-ui/remix.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
ignoredRouteFiles: ["**/.*"],
future: { v2_routeConvention: true },
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
// serverBuildPath: "build/index.js",
Expand Down
10 changes: 5 additions & 5 deletions client-only-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
"typecheck": "tsc"
},
"dependencies": {
"@remix-run/node": "~1.14.2",
"@remix-run/react": "~1.14.2",
"@remix-run/serve": "~1.14.2",
"@remix-run/node": "^1.15.0",
"@remix-run/react": "^1.15.0",
"@remix-run/serve": "^1.15.0",
"isbot": "^3.6.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"remix-utils": "^2.7.0"
},
"devDependencies": {
"@remix-run/dev": "~1.14.2",
"@remix-run/eslint-config": "~1.14.2",
"@remix-run/dev": "^1.15.0",
"@remix-run/eslint-config": "^1.15.0",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
"eslint": "^8.27.0",
Expand Down
1 change: 1 addition & 0 deletions client-only-components/remix.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
ignoredRouteFiles: ["**/.*"],
future: { v2_routeConvention: true },
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
// serverBuildPath: "build/index.js",
Expand Down
10 changes: 5 additions & 5 deletions client-side-validation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
"typecheck": "tsc"
},
"dependencies": {
"@remix-run/node": "~1.14.2",
"@remix-run/react": "~1.14.2",
"@remix-run/serve": "~1.14.2",
"@remix-run/node": "^1.15.0",
"@remix-run/react": "^1.15.0",
"@remix-run/serve": "^1.15.0",
"isbot": "^3.6.5",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@remix-run/dev": "~1.14.2",
"@remix-run/eslint-config": "~1.14.2",
"@remix-run/dev": "^1.15.0",
"@remix-run/eslint-config": "^1.15.0",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
"eslint": "^8.27.0",
Expand Down
1 change: 1 addition & 0 deletions client-side-validation/remix.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
ignoredRouteFiles: ["**/.*"],
future: { v2_routeConvention: true },
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
// serverBuildPath: "build/index.js",
Expand Down
10 changes: 5 additions & 5 deletions collected-notes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
"typecheck": "tsc"
},
"dependencies": {
"@remix-run/node": "~1.14.2",
"@remix-run/react": "~1.14.2",
"@remix-run/serve": "~1.14.2",
"@remix-run/node": "^1.15.0",
"@remix-run/react": "^1.15.0",
"@remix-run/serve": "^1.15.0",
"collected-notes": "^2.3.0",
"isbot": "^3.6.5",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@remix-run/dev": "~1.14.2",
"@remix-run/eslint-config": "~1.14.2",
"@remix-run/dev": "^1.15.0",
"@remix-run/eslint-config": "^1.15.0",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
"eslint": "^8.27.0",
Expand Down
1 change: 1 addition & 0 deletions collected-notes/remix.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
ignoredRouteFiles: ["**/.*"],
future: { v2_routeConvention: true },
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
// serverBuildPath: "build/index.js",
Expand Down
Loading