diff --git a/.prettierignore b/.prettierignore index 87715a7..c43d892 100644 --- a/.prettierignore +++ b/.prettierignore @@ -9,6 +9,9 @@ dist .env.* !.env.example .git +.github +coverage +pnpm-* # Ignore files for PNPM, NPM and YARN pnpm-lock.yaml diff --git a/apps/code-not-found/next.config.js b/apps/code-not-found/next.config.js index a843cbe..d139cfa 100644 --- a/apps/code-not-found/next.config.js +++ b/apps/code-not-found/next.config.js @@ -1,6 +1,6 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - reactStrictMode: true, + reactStrictMode: true, } module.exports = nextConfig diff --git a/apps/code-not-found/package.json b/apps/code-not-found/package.json index ae7d851..c0e6f0a 100644 --- a/apps/code-not-found/package.json +++ b/apps/code-not-found/package.json @@ -1,20 +1,20 @@ { - "name": "code-not-found", - "version": "0.1.0", - "private": true, - "scripts": { - "dev": "PORT=3004 next dev", - "build": "next build", - "start": "PORT=3004 next start", - "lint": "next lint" - }, - "dependencies": { - "next": "13.1.1", - "react": "18.2.0", - "react-dom": "18.2.0" - }, - "devDependencies": { - "config": "workspace:*", - "tsconfig": "workspace:*" - } + "name": "code-not-found", + "version": "0.1.0", + "private": true, + "scripts": { + "dev": "PORT=3004 next dev", + "build": "next build", + "start": "PORT=3004 next start", + "lint": "next lint" + }, + "dependencies": { + "next": "13.1.1", + "react": "18.2.0", + "react-dom": "18.2.0" + }, + "devDependencies": { + "config": "workspace:*", + "tsconfig": "workspace:*" + } } diff --git a/apps/code-not-found/pages/_app.tsx b/apps/code-not-found/pages/_app.tsx index a20e33f..2675529 100644 --- a/apps/code-not-found/pages/_app.tsx +++ b/apps/code-not-found/pages/_app.tsx @@ -1,8 +1,8 @@ import '../styles/globals.css' import type { AppProps } from 'next/app' -function MyApp ({ Component, pageProps }: AppProps) { - return +function MyApp({ Component, pageProps }: AppProps) { + return } export default MyApp diff --git a/apps/code-not-found/pages/api/hello.ts b/apps/code-not-found/pages/api/hello.ts index b38ee99..ce9023c 100644 --- a/apps/code-not-found/pages/api/hello.ts +++ b/apps/code-not-found/pages/api/hello.ts @@ -2,12 +2,9 @@ import type { NextApiRequest, NextApiResponse } from 'next' type Data = { - name: string + name: string } -export default function handler ( - req: NextApiRequest, - res: NextApiResponse, -) { - res.status(200).json({ name: 'John Doe' }) +export default function handler(req: NextApiRequest, res: NextApiResponse) { + res.status(200).json({ name: 'John Doe' }) } diff --git a/apps/code-not-found/pages/index.tsx b/apps/code-not-found/pages/index.tsx index 001a7af..b52ea0f 100644 --- a/apps/code-not-found/pages/index.tsx +++ b/apps/code-not-found/pages/index.tsx @@ -4,80 +4,88 @@ import Image from 'next/image' import styles from '../styles/Home.module.css' const HomePage: NextPage = () => { - return ( - <> - -
- - Create Next App - - - + return ( + <> + + + - -
- - ) + + + + ) } export default HomePage -export function getStaticProps () { - return { - props: { - initialData: { - name: 'John Doe', - age: 35, - }, - }, - } +export function getStaticProps() { + return { + props: { + initialData: { + name: 'John Doe', + age: 35, + }, + }, + } } diff --git a/apps/code-not-found/pages/page-a.tsx b/apps/code-not-found/pages/page-a.tsx index 81e869a..dba4053 100644 --- a/apps/code-not-found/pages/page-a.tsx +++ b/apps/code-not-found/pages/page-a.tsx @@ -4,69 +4,61 @@ import Image from 'next/image' import styles from '../styles/Home.module.css' const PageAPage: NextPage = () => { - return ( -
- - Create Next App - - - + return ( +
+ + Create Next App + + + -
-

- Welcome to Page A -

+
+

Welcome to Page A

-

- Get started by editing{' '} - pages/index.tsx -

+

+ Get started by editing pages/index.tsx +

-
+ +

Deploy →

+

Instantly deploy your Next.js site to a public URL with Vercel.

+
+
+ - -
- ) + + + ) } export default PageAPage diff --git a/apps/code-not-found/styles/Home.module.css b/apps/code-not-found/styles/Home.module.css index 32a57d5..e380026 100644 --- a/apps/code-not-found/styles/Home.module.css +++ b/apps/code-not-found/styles/Home.module.css @@ -1,116 +1,116 @@ .container { - padding: 0 2rem; + padding: 0 2rem; } .main { - min-height: 100vh; - padding: 4rem 0; - flex: 1; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; + min-height: 100vh; + padding: 4rem 0; + flex: 1; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; } .footer { - display: flex; - flex: 1; - padding: 2rem 0; - border-top: 1px solid #eaeaea; - justify-content: center; - align-items: center; + display: flex; + flex: 1; + padding: 2rem 0; + border-top: 1px solid #eaeaea; + justify-content: center; + align-items: center; } .footer a { - display: flex; - justify-content: center; - align-items: center; - flex-grow: 1; + display: flex; + justify-content: center; + align-items: center; + flex-grow: 1; } .title a { - color: #0070f3; - text-decoration: none; + color: #0070f3; + text-decoration: none; } .title a:hover, .title a:focus, .title a:active { - text-decoration: underline; + text-decoration: underline; } .title { - margin: 0; - line-height: 1.15; - font-size: 4rem; + margin: 0; + line-height: 1.15; + font-size: 4rem; } .title, .description { - text-align: center; + text-align: center; } .description { - margin: 4rem 0; - line-height: 1.5; - font-size: 1.5rem; + margin: 4rem 0; + line-height: 1.5; + font-size: 1.5rem; } .code { - background: #fafafa; - border-radius: 5px; - padding: 0.75rem; - font-size: 1.1rem; - font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, - Bitstream Vera Sans Mono, Courier New, monospace; + background: #fafafa; + border-radius: 5px; + padding: 0.75rem; + font-size: 1.1rem; + font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, + Bitstream Vera Sans Mono, Courier New, monospace; } .grid { - display: flex; - align-items: center; - justify-content: center; - flex-wrap: wrap; - max-width: 800px; + display: flex; + align-items: center; + justify-content: center; + flex-wrap: wrap; + max-width: 800px; } .card { - margin: 1rem; - padding: 1.5rem; - text-align: left; - color: inherit; - text-decoration: none; - border: 1px solid #eaeaea; - border-radius: 10px; - transition: color 0.15s ease, border-color 0.15s ease; - max-width: 300px; + margin: 1rem; + padding: 1.5rem; + text-align: left; + color: inherit; + text-decoration: none; + border: 1px solid #eaeaea; + border-radius: 10px; + transition: color 0.15s ease, border-color 0.15s ease; + max-width: 300px; } .card:hover, .card:focus, .card:active { - color: #0070f3; - border-color: #0070f3; + color: #0070f3; + border-color: #0070f3; } .card h2 { - margin: 0 0 1rem 0; - font-size: 1.5rem; + margin: 0 0 1rem 0; + font-size: 1.5rem; } .card p { - margin: 0; - font-size: 1.25rem; - line-height: 1.5; + margin: 0; + font-size: 1.25rem; + line-height: 1.5; } .logo { - height: 1em; - margin-left: 0.5rem; + height: 1em; + margin-left: 0.5rem; } @media (max-width: 600px) { - .grid { - width: 100%; - flex-direction: column; - } + .grid { + width: 100%; + flex-direction: column; + } } diff --git a/apps/code-not-found/styles/globals.css b/apps/code-not-found/styles/globals.css index e5e2dcc..67f28bb 100644 --- a/apps/code-not-found/styles/globals.css +++ b/apps/code-not-found/styles/globals.css @@ -1,16 +1,16 @@ html, body { - padding: 0; - margin: 0; - font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, - Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; + padding: 0; + margin: 0; + font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, + Fira Sans, Droid Sans, Helvetica Neue, sans-serif; } a { - color: inherit; - text-decoration: none; + color: inherit; + text-decoration: none; } * { - box-sizing: border-box; + box-sizing: border-box; } diff --git a/apps/code-not-found/tsconfig.json b/apps/code-not-found/tsconfig.json index 1775ffc..e9fe231 100644 --- a/apps/code-not-found/tsconfig.json +++ b/apps/code-not-found/tsconfig.json @@ -1,35 +1,25 @@ { - "extends": "tsconfig/nextjs.json", - "compilerOptions": { - "baseUrl": ".", - "target": "es5", - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], - "allowJs": true, - "skipLibCheck": true, - "strict": false, - "forceConsistentCasingInFileNames": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "node", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "preserve", - "incremental": true, - "paths": { - "@/components/*": ["./components/*"] - } - }, - "include": [ - "next-env.d.ts", - "**/*.ts", - "**/*.tsx" - ], - "exclude": [ - "node_modules" - ] + "extends": "tsconfig/nextjs.json", + "compilerOptions": { + "baseUrl": ".", + "target": "es5", + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "strict": false, + "forceConsistentCasingInFileNames": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "node", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "incremental": true, + "paths": { + "@/components/*": ["./components/*"] + } + }, + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], + "exclude": ["node_modules"] } diff --git a/apps/design/next.config.js b/apps/design/next.config.js index 1bd0dd2..5e09e13 100644 --- a/apps/design/next.config.js +++ b/apps/design/next.config.js @@ -1,13 +1,11 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - reactStrictMode: true, - swcMinify: true, - experimental: { - externalDir: true, - }, - basePath: process.env.NODE_ENV === 'production' - ? '/design' - : '', + reactStrictMode: true, + swcMinify: true, + experimental: { + externalDir: true, + }, + basePath: process.env.NODE_ENV === 'production' ? '/design' : '', } module.exports = nextConfig diff --git a/apps/design/package.json b/apps/design/package.json index ad43332..c0992dd 100644 --- a/apps/design/package.json +++ b/apps/design/package.json @@ -1,27 +1,27 @@ { - "name": "design-app", - "private": true, - "scripts": { - "dev": "PORT=3001 next dev", - "build": "next build", - "export": "next export", - "start": "PORT=3001 next start", - "lint": "next lint" - }, - "dependencies": { - "@radix-ui/react-icons": "1.1.1", - "@radix-ui/react-label": "1.0.0", - "@radix-ui/react-progress": "1.0.0", - "@radix-ui/react-radio-group": "latest", - "framer-motion": "6.2.3", - "lib": "workspace:*", - "next": "13.1.1", - "react": "18.2.0", - "react-dom": "18.2.0", - "shared": "workspace:*" - }, - "devDependencies": { - "config": "workspace:*", - "tsconfig": "workspace:*" - } + "name": "design-app", + "private": true, + "scripts": { + "dev": "PORT=3001 next dev", + "build": "next build", + "export": "next export", + "start": "PORT=3001 next start", + "lint": "next lint" + }, + "dependencies": { + "@radix-ui/react-icons": "1.1.1", + "@radix-ui/react-label": "1.0.0", + "@radix-ui/react-progress": "1.0.0", + "@radix-ui/react-radio-group": "latest", + "framer-motion": "6.2.3", + "lib": "workspace:*", + "next": "13.1.1", + "react": "18.2.0", + "react-dom": "18.2.0", + "shared": "workspace:*" + }, + "devDependencies": { + "config": "workspace:*", + "tsconfig": "workspace:*" + } } diff --git a/apps/design/pages/_app.tsx b/apps/design/pages/_app.tsx index a1f6af7..4af32ae 100644 --- a/apps/design/pages/_app.tsx +++ b/apps/design/pages/_app.tsx @@ -2,17 +2,18 @@ import type { AppProps } from 'next/app' import Head from 'next/head' import 'shared/globals.css' -export default function App ({ Component, pageProps }: AppProps) { - return ( - <> - -