Skip to content

Commit

Permalink
Update with-docker with App Router. (#4844)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshew authored May 16, 2023
1 parent 39247a7 commit 7bf313f
Show file tree
Hide file tree
Showing 9 changed files with 1,094 additions and 702 deletions.
2 changes: 1 addition & 1 deletion examples/with-docker/apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start": "next start"
},
"dependencies": {
"next": "latest",
"next": "^13.4.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"ui": "*"
Expand Down
11 changes: 11 additions & 0 deletions examples/with-docker/apps/web/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en">
<body>{children}</body>
</html>
);
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client";

import { useEffect, useState } from "react";
import { Button } from "ui";

Expand Down
5 changes: 4 additions & 1 deletion examples/with-docker/apps/web/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "tsconfig/nextjs.json",
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"compilerOptions": {
"plugins": [{ "name": "next" }]
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}
4 changes: 2 additions & 2 deletions examples/with-docker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"dependencies": {},
"devDependencies": {
"eslint-config-custom": "*",
"prettier": "latest",
"turbo": "latest"
"prettier": "^2.8.8",
"turbo": "^1.9.3"
},
"packageManager": "yarn@1.22.19",
"engines": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"license": "MIT",
"main": "index.js",
"dependencies": {
"eslint-config-next": "latest",
"eslint-config-next": "^13.4.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-react": "7.28.0",
"eslint-config-turbo": "latest"
"eslint-config-turbo": "^1.9.3"
},
"publishConfig": {
"access": "public"
Expand Down
1 change: 1 addition & 0 deletions examples/with-docker/packages/tsconfig/nextjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"display": "Next.js",
"extends": "./base.json",
"compilerOptions": {
"plugins": [{ "name": "next" }],
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
Expand Down
2 changes: 1 addition & 1 deletion examples/with-docker/packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@types/react-dom": "^17.0.11",
"eslint": "^7.32.0",
"eslint-config-custom": "*",
"react": "^17.0.2",
"react": "^18.2.0",
"tsconfig": "*",
"typescript": "^4.5.2"
}
Expand Down
1,765 changes: 1,070 additions & 695 deletions examples/with-docker/yarn.lock

Large diffs are not rendered by default.

0 comments on commit 7bf313f

Please sign in to comment.