[READ-ONLY] Mirror of https://github.com/flo-bit/skywatched. review movies and tv shows, based on at proto skywatched.app
0

Configure Feed

Select the types of activity you want to include in your feed.

switch to monorepo

+111 -1684
+37 -15
.gitignore
··· 1 - node_modules 2 - 3 - # Output 4 - .output 5 - .vercel 6 - /.svelte-kit 7 - /build 8 - 9 - # OS 1 + # Misc 2 + *.pem 10 3 .DS_Store 11 4 Thumbs.db 12 5 13 - # Env 14 - .env 15 - .env.* 16 - !.env.example 17 - !.env.test 18 - 19 6 # Vite 20 7 vite.config.js.timestamp-* 21 8 vite.config.ts.timestamp-* 22 9 23 10 # SQLite 24 11 *.db 12 + 13 + # Dependencies 14 + node_modules 15 + .pnp 16 + .pnp.js 17 + 18 + # Local env files 19 + .env 20 + .env.* 21 + !.env.example 22 + !.env.test 23 + 24 + # Testing 25 + coverage 26 + 27 + # Turbo 28 + .turbo 29 + 30 + # Vercel 31 + .vercel 32 + 33 + # Build Outputs 34 + .next/ 35 + out/ 36 + dist 37 + .output 38 + .vercel 39 + /.svelte-kit 40 + /build 41 + 42 + # Debug 43 + npm-debug.log* 44 + yarn-debug.log* 45 + yarn-error.log* 46 +
+29 -13
README.md
··· 8 8 9 9 ## development 10 10 11 - 1. copy the .env.example file to .env and set the variables: 11 + this repository is a monorepo managed with [turbo](https://turbo.build/) and has the following parts: 12 + 13 + - `apps/web` - the frontend of the app 14 + - `apps/backend` - the backend/jetstream consumer of the app 15 + - `packages/shared` - shared types and utils 16 + 17 + 1. install the dependencies (in the root directory): 18 + 19 + ```bash 20 + npm install 21 + ``` 22 + 23 + to run the app, you need to set up a `.env` file in both `apps/web` and `apps/backend`. 24 + 25 + 2. copy the .env.example file to .env and set the variables: 12 26 13 27 ```bash 14 - cp .env.example .env 28 + cp apps/web/.env.example apps/web/.env 29 + cp apps/backend/.env.example apps/backend/.env 15 30 ``` 16 31 17 - required: 32 + required (for frontend): 18 33 19 34 - `TMDB_API_KEY` (get one [here](https://www.themoviedb.org/settings/api)) 20 35 - `NYX_PASSWORD` (can be generated on unix systems with `openssl rand -base64 32`) 21 - - `BACKEND_URL` (the url of the backend server) 36 + - `BACKEND_URL` (the url of the backend server, or `http://localhost:3001` for local development) 22 37 23 - 2. install the dependencies: 38 + required (for backend): 24 39 25 - ```bash 26 - npm install 27 - ``` 40 + - `TMDB_API_KEY` (get one [here](https://www.themoviedb.org/settings/api)) 28 41 29 - 3. run the development server: 42 + 4. run the development server: 30 43 31 44 ```bash 32 45 npm run dev ··· 34 47 35 48 5. open the browser and go to [localhost:5173](http://localhost:5173) 36 49 37 - ## tech stack 50 + ## used tech 38 51 39 52 - svelte(kit) 40 - - tailwind 41 - - turso (libSQL) w/ drizzle 42 - - lucia for auth 53 + - tailwind for styling 54 + - litefs (libSQL) w/ drizzle 55 + - bun for backend 56 + - fly.io for deployment 57 + - turbo for monorepo management 58 + - prettier for code formatting
+2
apps/backend/.env.example
··· 1 + # API key for https://www.themoviedb.org/ 2 + TMDB_API_KEY=""
+4 -1
apps/web/.env.example
··· 11 11 # on unix systems you can generate one with `openssl rand -base64 32` 12 12 NYX_PASSWORD="" 13 13 14 - BACKEND_URL="https://skywatched-jetstream.fly.dev" 14 + # backend url 15 + # BACKEND_URL="https://skywatched-jetstream.fly.dev" 16 + # local backend 17 + BACKEND_URL="http://localhost:3001"
+12 -10
package.json
··· 7 7 "packages/*" 8 8 ], 9 9 "scripts": { 10 - "format": "prettier --write .", 11 - "preview": "turbo run preview", 12 - "dev": "turbo run dev" 10 + "build": "turbo build", 11 + "dev": "turbo dev", 12 + "lint": "turbo lint", 13 + "format": "prettier --write \"**/*.{ts,tsx,md}\"" 14 + }, 15 + "engines": { 16 + "node": ">=18" 13 17 }, 14 - "dependencies": { 18 + "packageManager": "npm@10.1.0", 19 + "devDependencies": { 15 20 "prettier": "^3.4.2", 16 21 "prettier-plugin-svelte": "^3.3.2", 17 22 "prettier-plugin-tailwindcss": "^0.6.9", 18 - "turbo": "^2.3.3" 19 - }, 20 - "engines": { 21 - "npm": ">=9.0.0", 22 - "node": ">=16.0.0" 23 + "turbo": "^2.3.3", 24 + "typescript": "5.5.4" 23 25 } 24 - } 26 + }
+27 -20
turbo.json
··· 1 1 { 2 - "$schema": "https://turborepo.org/schema.json", 3 - "pipeline": { 4 - "package": { 2 + "$schema": "https://turbo.build/schema.json", 3 + "ui": "tui", 4 + "tasks": { 5 + "build": { 5 6 "dependsOn": [ 6 - "^package" 7 + "^build" 7 8 ], 8 - "outputs": [ 9 - "package/*" 9 + "inputs": [ 10 + "$TURBO_DEFAULT$", 11 + ".env*" 10 12 ], 11 - "cache": false 12 - }, 13 - "cleanup": { 14 - "cache": false, 15 - "outputs": [] 16 - }, 17 - "preview": { 18 - "cache": false 13 + "outputs": [ 14 + ".next/**", 15 + "!.next/cache/**" 16 + ] 19 17 }, 20 18 "lint": { 21 - "outputs": [] 22 - }, 23 - "dev": { 24 - "cache": false 25 - } 19 + "dependsOn": [ 20 + "^lint" 21 + ] 22 + }, 23 + "check-types": { 24 + "dependsOn": [ 25 + "^check-types" 26 + ] 27 + }, 28 + "dev": { 29 + "cache": false, 30 + "persistent": true 31 + } 26 32 } 27 - } 33 + } 34 +
-38
turbo/my-turborepo/.gitignore
··· 1 - # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 - 3 - # Dependencies 4 - node_modules 5 - .pnp 6 - .pnp.js 7 - 8 - # Local env files 9 - .env 10 - .env.local 11 - .env.development.local 12 - .env.test.local 13 - .env.production.local 14 - 15 - # Testing 16 - coverage 17 - 18 - # Turbo 19 - .turbo 20 - 21 - # Vercel 22 - .vercel 23 - 24 - # Build Outputs 25 - .next/ 26 - out/ 27 - build 28 - dist 29 - 30 - 31 - # Debug 32 - npm-debug.log* 33 - yarn-debug.log* 34 - yarn-error.log* 35 - 36 - # Misc 37 - .DS_Store 38 - *.pem
turbo/my-turborepo/.npmrc

This is a binary file and will not be displayed.

-84
turbo/my-turborepo/README.md
··· 1 - # Turborepo starter 2 - 3 - This is an official starter Turborepo. 4 - 5 - ## Using this example 6 - 7 - Run the following command: 8 - 9 - ```sh 10 - npx create-turbo@latest 11 - ``` 12 - 13 - ## What's inside? 14 - 15 - This Turborepo includes the following packages/apps: 16 - 17 - ### Apps and Packages 18 - 19 - - `docs`: a [Next.js](https://nextjs.org/) app 20 - - `web`: another [Next.js](https://nextjs.org/) app 21 - - `@repo/ui`: a stub React component library shared by both `web` and `docs` applications 22 - - `@repo/eslint-config`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`) 23 - - `@repo/typescript-config`: `tsconfig.json`s used throughout the monorepo 24 - 25 - Each package/app is 100% [TypeScript](https://www.typescriptlang.org/). 26 - 27 - ### Utilities 28 - 29 - This Turborepo has some additional tools already setup for you: 30 - 31 - - [TypeScript](https://www.typescriptlang.org/) for static type checking 32 - - [ESLint](https://eslint.org/) for code linting 33 - - [Prettier](https://prettier.io) for code formatting 34 - 35 - ### Build 36 - 37 - To build all apps and packages, run the following command: 38 - 39 - ``` 40 - cd my-turborepo 41 - pnpm build 42 - ``` 43 - 44 - ### Develop 45 - 46 - To develop all apps and packages, run the following command: 47 - 48 - ``` 49 - cd my-turborepo 50 - pnpm dev 51 - ``` 52 - 53 - ### Remote Caching 54 - 55 - > [!TIP] 56 - > Vercel Remote Cache is free for all plans. Get started today at [vercel.com](https://vercel.com/signup?/signup?utm_source=remote-cache-sdk&utm_campaign=free_remote_cache). 57 - 58 - Turborepo can use a technique known as [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching) to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines. 59 - 60 - By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can [create one](https://vercel.com/signup?utm_source=turborepo-examples), then enter the following commands: 61 - 62 - ``` 63 - cd my-turborepo 64 - npx turbo login 65 - ``` 66 - 67 - This will authenticate the Turborepo CLI with your [Vercel account](https://vercel.com/docs/concepts/personal-accounts/overview). 68 - 69 - Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your Turborepo: 70 - 71 - ``` 72 - npx turbo link 73 - ``` 74 - 75 - ## Useful Links 76 - 77 - Learn more about the power of Turborepo: 78 - 79 - - [Tasks](https://turbo.build/repo/docs/core-concepts/monorepos/running-tasks) 80 - - [Caching](https://turbo.build/repo/docs/core-concepts/caching) 81 - - [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching) 82 - - [Filtering](https://turbo.build/repo/docs/core-concepts/monorepos/filtering) 83 - - [Configuration Options](https://turbo.build/repo/docs/reference/configuration) 84 - - [CLI Usage](https://turbo.build/repo/docs/reference/command-line-reference)
-36
turbo/my-turborepo/apps/docs/.gitignore
··· 1 - # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 - 3 - # dependencies 4 - /node_modules 5 - /.pnp 6 - .pnp.js 7 - .yarn/install-state.gz 8 - 9 - # testing 10 - /coverage 11 - 12 - # next.js 13 - /.next/ 14 - /out/ 15 - 16 - # production 17 - /build 18 - 19 - # misc 20 - .DS_Store 21 - *.pem 22 - 23 - # debug 24 - npm-debug.log* 25 - yarn-debug.log* 26 - yarn-error.log* 27 - 28 - # env files (can opt-in for commiting if needed) 29 - .env* 30 - 31 - # vercel 32 - .vercel 33 - 34 - # typescript 35 - *.tsbuildinfo 36 - next-env.d.ts
-36
turbo/my-turborepo/apps/docs/README.md
··· 1 - This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/create-next-app). 2 - 3 - ## Getting Started 4 - 5 - First, run the development server: 6 - 7 - ```bash 8 - npm run dev 9 - # or 10 - yarn dev 11 - # or 12 - pnpm dev 13 - # or 14 - bun dev 15 - ``` 16 - 17 - Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. 18 - 19 - You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. 20 - 21 - This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load Inter, a custom Google Font. 22 - 23 - ## Learn More 24 - 25 - To learn more about Next.js, take a look at the following resources: 26 - 27 - - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. 28 - - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. 29 - 30 - You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome! 31 - 32 - ## Deploy on Vercel 33 - 34 - The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. 35 - 36 - Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
turbo/my-turborepo/apps/docs/app/favicon.ico

This is a binary file and will not be displayed.

turbo/my-turborepo/apps/docs/app/fonts/GeistMonoVF.woff

This is a binary file and will not be displayed.

turbo/my-turborepo/apps/docs/app/fonts/GeistVF.woff

This is a binary file and will not be displayed.

-50
turbo/my-turborepo/apps/docs/app/globals.css
··· 1 - :root { 2 - --background: #ffffff; 3 - --foreground: #171717; 4 - } 5 - 6 - @media (prefers-color-scheme: dark) { 7 - :root { 8 - --background: #0a0a0a; 9 - --foreground: #ededed; 10 - } 11 - } 12 - 13 - html, 14 - body { 15 - max-width: 100vw; 16 - overflow-x: hidden; 17 - } 18 - 19 - body { 20 - color: var(--foreground); 21 - background: var(--background); 22 - } 23 - 24 - * { 25 - box-sizing: border-box; 26 - padding: 0; 27 - margin: 0; 28 - } 29 - 30 - a { 31 - color: inherit; 32 - text-decoration: none; 33 - } 34 - 35 - .imgDark { 36 - display: none; 37 - } 38 - 39 - @media (prefers-color-scheme: dark) { 40 - html { 41 - color-scheme: dark; 42 - } 43 - 44 - .imgLight { 45 - display: none; 46 - } 47 - .imgDark { 48 - display: unset; 49 - } 50 - }
-31
turbo/my-turborepo/apps/docs/app/layout.tsx
··· 1 - import type { Metadata } from "next"; 2 - import localFont from "next/font/local"; 3 - import "./globals.css"; 4 - 5 - const geistSans = localFont({ 6 - src: "./fonts/GeistVF.woff", 7 - variable: "--font-geist-sans", 8 - }); 9 - const geistMono = localFont({ 10 - src: "./fonts/GeistMonoVF.woff", 11 - variable: "--font-geist-mono", 12 - }); 13 - 14 - export const metadata: Metadata = { 15 - title: "Create Next App", 16 - description: "Generated by create next app", 17 - }; 18 - 19 - export default function RootLayout({ 20 - children, 21 - }: Readonly<{ 22 - children: React.ReactNode; 23 - }>) { 24 - return ( 25 - <html lang="en"> 26 - <body className={`${geistSans.variable} ${geistMono.variable}`}> 27 - {children} 28 - </body> 29 - </html> 30 - ); 31 - }
-188
turbo/my-turborepo/apps/docs/app/page.module.css
··· 1 - .page { 2 - --gray-rgb: 0, 0, 0; 3 - --gray-alpha-200: rgba(var(--gray-rgb), 0.08); 4 - --gray-alpha-100: rgba(var(--gray-rgb), 0.05); 5 - 6 - --button-primary-hover: #383838; 7 - --button-secondary-hover: #f2f2f2; 8 - 9 - display: grid; 10 - grid-template-rows: 20px 1fr 20px; 11 - align-items: center; 12 - justify-items: center; 13 - min-height: 100svh; 14 - padding: 80px; 15 - gap: 64px; 16 - font-synthesis: none; 17 - } 18 - 19 - @media (prefers-color-scheme: dark) { 20 - .page { 21 - --gray-rgb: 255, 255, 255; 22 - --gray-alpha-200: rgba(var(--gray-rgb), 0.145); 23 - --gray-alpha-100: rgba(var(--gray-rgb), 0.06); 24 - 25 - --button-primary-hover: #ccc; 26 - --button-secondary-hover: #1a1a1a; 27 - } 28 - } 29 - 30 - .main { 31 - display: flex; 32 - flex-direction: column; 33 - gap: 32px; 34 - grid-row-start: 2; 35 - } 36 - 37 - .main ol { 38 - font-family: var(--font-geist-mono); 39 - padding-left: 0; 40 - margin: 0; 41 - font-size: 14px; 42 - line-height: 24px; 43 - letter-spacing: -0.01em; 44 - list-style-position: inside; 45 - } 46 - 47 - .main li:not(:last-of-type) { 48 - margin-bottom: 8px; 49 - } 50 - 51 - .main code { 52 - font-family: inherit; 53 - background: var(--gray-alpha-100); 54 - padding: 2px 4px; 55 - border-radius: 4px; 56 - font-weight: 600; 57 - } 58 - 59 - .ctas { 60 - display: flex; 61 - gap: 16px; 62 - } 63 - 64 - .ctas a { 65 - appearance: none; 66 - border-radius: 128px; 67 - height: 48px; 68 - padding: 0 20px; 69 - border: none; 70 - font-family: var(--font-geist-sans); 71 - border: 1px solid transparent; 72 - transition: background 0.2s, color 0.2s, border-color 0.2s; 73 - cursor: pointer; 74 - display: flex; 75 - align-items: center; 76 - justify-content: center; 77 - font-size: 16px; 78 - line-height: 20px; 79 - font-weight: 500; 80 - } 81 - 82 - a.primary { 83 - background: var(--foreground); 84 - color: var(--background); 85 - gap: 8px; 86 - } 87 - 88 - a.secondary { 89 - border-color: var(--gray-alpha-200); 90 - min-width: 180px; 91 - } 92 - 93 - button.secondary { 94 - appearance: none; 95 - border-radius: 128px; 96 - height: 48px; 97 - padding: 0 20px; 98 - border: none; 99 - font-family: var(--font-geist-sans); 100 - border: 1px solid transparent; 101 - transition: background 0.2s, color 0.2s, border-color 0.2s; 102 - cursor: pointer; 103 - display: flex; 104 - align-items: center; 105 - justify-content: center; 106 - font-size: 16px; 107 - line-height: 20px; 108 - font-weight: 500; 109 - background: transparent; 110 - border-color: var(--gray-alpha-200); 111 - min-width: 180px; 112 - } 113 - 114 - .footer { 115 - font-family: var(--font-geist-sans); 116 - grid-row-start: 3; 117 - display: flex; 118 - gap: 24px; 119 - } 120 - 121 - .footer a { 122 - display: flex; 123 - align-items: center; 124 - gap: 8px; 125 - } 126 - 127 - .footer img { 128 - flex-shrink: 0; 129 - } 130 - 131 - /* Enable hover only on non-touch devices */ 132 - @media (hover: hover) and (pointer: fine) { 133 - a.primary:hover { 134 - background: var(--button-primary-hover); 135 - border-color: transparent; 136 - } 137 - 138 - a.secondary:hover { 139 - background: var(--button-secondary-hover); 140 - border-color: transparent; 141 - } 142 - 143 - .footer a:hover { 144 - text-decoration: underline; 145 - text-underline-offset: 4px; 146 - } 147 - } 148 - 149 - @media (max-width: 600px) { 150 - .page { 151 - padding: 32px; 152 - padding-bottom: 80px; 153 - } 154 - 155 - .main { 156 - align-items: center; 157 - } 158 - 159 - .main ol { 160 - text-align: center; 161 - } 162 - 163 - .ctas { 164 - flex-direction: column; 165 - } 166 - 167 - .ctas a { 168 - font-size: 14px; 169 - height: 40px; 170 - padding: 0 16px; 171 - } 172 - 173 - a.secondary { 174 - min-width: auto; 175 - } 176 - 177 - .footer { 178 - flex-wrap: wrap; 179 - align-items: center; 180 - justify-content: center; 181 - } 182 - } 183 - 184 - @media (prefers-color-scheme: dark) { 185 - .logo { 186 - filter: invert(); 187 - } 188 - }
-102
turbo/my-turborepo/apps/docs/app/page.tsx
··· 1 - import Image, { type ImageProps } from "next/image"; 2 - import { Button } from "@repo/ui/button"; 3 - import styles from "./page.module.css"; 4 - 5 - type Props = Omit<ImageProps, "src"> & { 6 - srcLight: string; 7 - srcDark: string; 8 - }; 9 - 10 - const ThemeImage = (props: Props) => { 11 - const { srcLight, srcDark, ...rest } = props; 12 - 13 - return ( 14 - <> 15 - <Image {...rest} src={srcLight} className="imgLight" /> 16 - <Image {...rest} src={srcDark} className="imgDark" /> 17 - </> 18 - ); 19 - }; 20 - 21 - export default function Home() { 22 - return ( 23 - <div className={styles.page}> 24 - <main className={styles.main}> 25 - <ThemeImage 26 - className={styles.logo} 27 - srcLight="turborepo-dark.svg" 28 - srcDark="turborepo-light.svg" 29 - alt="Turborepo logo" 30 - width={180} 31 - height={38} 32 - priority 33 - /> 34 - <ol> 35 - <li> 36 - Get started by editing <code>apps/docs/app/page.tsx</code> 37 - </li> 38 - <li>Save and see your changes instantly.</li> 39 - </ol> 40 - 41 - <div className={styles.ctas}> 42 - <a 43 - className={styles.primary} 44 - href="https://vercel.com/new/clone?demo-description=Learn+to+implement+a+monorepo+with+a+two+Next.js+sites+that+has+installed+three+local+packages.&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F4K8ZISWAzJ8X1504ca0zmC%2F0b21a1c6246add355e55816278ef54bc%2FBasic.png&demo-title=Monorepo+with+Turborepo&demo-url=https%3A%2F%2Fexamples-basic-web.vercel.sh%2F&from=templates&project-name=Monorepo+with+Turborepo&repository-name=monorepo-turborepo&repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fturborepo%2Ftree%2Fmain%2Fexamples%2Fbasic&root-directory=apps%2Fdocs&skippable-integrations=1&teamSlug=vercel&utm_source=create-turbo" 45 - target="_blank" 46 - rel="noopener noreferrer" 47 - > 48 - <Image 49 - className={styles.logo} 50 - src="/vercel.svg" 51 - alt="Vercel logomark" 52 - width={20} 53 - height={20} 54 - /> 55 - Deploy now 56 - </a> 57 - <a 58 - href="https://turbo.build/repo/docs?utm_source" 59 - target="_blank" 60 - rel="noopener noreferrer" 61 - className={styles.secondary} 62 - > 63 - Read our docs 64 - </a> 65 - </div> 66 - <Button appName="docs" className={styles.secondary}> 67 - Open alert 68 - </Button> 69 - </main> 70 - <footer className={styles.footer}> 71 - <a 72 - href="https://vercel.com/templates?search=turborepo&utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app" 73 - target="_blank" 74 - rel="noopener noreferrer" 75 - > 76 - <Image 77 - aria-hidden 78 - src="/window.svg" 79 - alt="Window icon" 80 - width={16} 81 - height={16} 82 - /> 83 - Examples 84 - </a> 85 - <a 86 - href="https://turbo.build?utm_source=create-turbo" 87 - target="_blank" 88 - rel="noopener noreferrer" 89 - > 90 - <Image 91 - aria-hidden 92 - src="/globe.svg" 93 - alt="Globe icon" 94 - width={16} 95 - height={16} 96 - /> 97 - Go to turbo.build → 98 - </a> 99 - </footer> 100 - </div> 101 - ); 102 - }
-4
turbo/my-turborepo/apps/docs/eslint.config.js
··· 1 - import { nextJsConfig } from "@repo/eslint-config/next-js"; 2 - 3 - /** @type {import("eslint").Linter.Config} */ 4 - export default nextJsConfig;
-4
turbo/my-turborepo/apps/docs/next.config.js
··· 1 - /** @type {import('next').NextConfig} */ 2 - const nextConfig = {}; 3 - 4 - export default nextConfig;
-27
turbo/my-turborepo/apps/docs/package.json
··· 1 - { 2 - "name": "docs", 3 - "version": "0.1.0", 4 - "type": "module", 5 - "private": true, 6 - "scripts": { 7 - "dev": "next dev --turbopack", 8 - "build": "next build", 9 - "start": "next start", 10 - "lint": "next lint --max-warnings 0", 11 - "check-types": "tsc --noEmit" 12 - }, 13 - "dependencies": { 14 - "@repo/ui": "*", 15 - "next": "^15.1.0", 16 - "react": "^19.0.0", 17 - "react-dom": "^19.0.0" 18 - }, 19 - "devDependencies": { 20 - "@repo/eslint-config": "*", 21 - "@repo/typescript-config": "*", 22 - "@types/node": "^20", 23 - "@types/react": "18.3.1", 24 - "@types/react-dom": "18.3.0", 25 - "typescript": "5.5.4" 26 - } 27 - }
-3
turbo/my-turborepo/apps/docs/public/file-text.svg
··· 1 - <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> 2 - <path fill-rule="evenodd" clip-rule="evenodd" d="M14.5 13.5V6.5V5.41421C14.5 5.149 14.3946 4.89464 14.2071 4.70711L9.79289 0.292893C9.60536 0.105357 9.351 0 9.08579 0H8H3H1.5V1.5V13.5C1.5 14.8807 2.61929 16 4 16H12C13.3807 16 14.5 14.8807 14.5 13.5ZM13 13.5V6.5H9.5H8V5V1.5H3V13.5C3 14.0523 3.44772 14.5 4 14.5H12C12.5523 14.5 13 14.0523 13 13.5ZM9.5 5V2.12132L12.3787 5H9.5ZM5.13 5.00062H4.505V6.25062H5.13H6H6.625V5.00062H6H5.13ZM4.505 8H5.13H11H11.625V9.25H11H5.13H4.505V8ZM5.13 11H4.505V12.25H5.13H11H11.625V11H11H5.13Z" fill="#666666"/> 3 - </svg>
-10
turbo/my-turborepo/apps/docs/public/globe.svg
··· 1 - <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> 2 - <g clip-path="url(#clip0_868_525)"> 3 - <path fill-rule="evenodd" clip-rule="evenodd" d="M10.268 14.0934C11.9051 13.4838 13.2303 12.2333 13.9384 10.6469C13.1192 10.7941 12.2138 10.9111 11.2469 10.9925C11.0336 12.2005 10.695 13.2621 10.268 14.0934ZM8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM8.48347 14.4823C8.32384 14.494 8.16262 14.5 8 14.5C7.83738 14.5 7.67616 14.494 7.51654 14.4823C7.5132 14.4791 7.50984 14.4759 7.50647 14.4726C7.2415 14.2165 6.94578 13.7854 6.67032 13.1558C6.41594 12.5744 6.19979 11.8714 6.04101 11.0778C6.67605 11.1088 7.33104 11.125 8 11.125C8.66896 11.125 9.32395 11.1088 9.95899 11.0778C9.80021 11.8714 9.58406 12.5744 9.32968 13.1558C9.05422 13.7854 8.7585 14.2165 8.49353 14.4726C8.49016 14.4759 8.4868 14.4791 8.48347 14.4823ZM11.4187 9.72246C12.5137 9.62096 13.5116 9.47245 14.3724 9.28806C14.4561 8.87172 14.5 8.44099 14.5 8C14.5 7.55901 14.4561 7.12828 14.3724 6.71194C13.5116 6.52755 12.5137 6.37904 11.4187 6.27753C11.4719 6.83232 11.5 7.40867 11.5 8C11.5 8.59133 11.4719 9.16768 11.4187 9.72246ZM10.1525 6.18401C10.2157 6.75982 10.25 7.36805 10.25 8C10.25 8.63195 10.2157 9.24018 10.1525 9.81598C9.46123 9.85455 8.7409 9.875 8 9.875C7.25909 9.875 6.53877 9.85455 5.84749 9.81598C5.7843 9.24018 5.75 8.63195 5.75 8C5.75 7.36805 5.7843 6.75982 5.84749 6.18401C6.53877 6.14545 7.25909 6.125 8 6.125C8.74091 6.125 9.46123 6.14545 10.1525 6.18401ZM11.2469 5.00748C12.2138 5.08891 13.1191 5.20593 13.9384 5.35306C13.2303 3.7667 11.9051 2.51622 10.268 1.90662C10.695 2.73788 11.0336 3.79953 11.2469 5.00748ZM8.48347 1.51771C8.4868 1.52089 8.49016 1.52411 8.49353 1.52737C8.7585 1.78353 9.05422 2.21456 9.32968 2.84417C9.58406 3.42562 9.80021 4.12856 9.95899 4.92219C9.32395 4.89118 8.66896 4.875 8 4.875C7.33104 4.875 6.67605 4.89118 6.04101 4.92219C6.19978 4.12856 6.41594 3.42562 6.67032 2.84417C6.94578 2.21456 7.2415 1.78353 7.50647 1.52737C7.50984 1.52411 7.51319 1.52089 7.51653 1.51771C7.67615 1.50597 7.83738 1.5 8 1.5C8.16262 1.5 8.32384 1.50597 8.48347 1.51771ZM5.73202 1.90663C4.0949 2.51622 2.76975 3.7667 2.06159 5.35306C2.88085 5.20593 3.78617 5.08891 4.75309 5.00748C4.96639 3.79953 5.30497 2.73788 5.73202 1.90663ZM4.58133 6.27753C3.48633 6.37904 2.48837 6.52755 1.62761 6.71194C1.54392 7.12828 1.5 7.55901 1.5 8C1.5 8.44099 1.54392 8.87172 1.62761 9.28806C2.48837 9.47245 3.48633 9.62096 4.58133 9.72246C4.52807 9.16768 4.5 8.59133 4.5 8C4.5 7.40867 4.52807 6.83232 4.58133 6.27753ZM4.75309 10.9925C3.78617 10.9111 2.88085 10.7941 2.06159 10.6469C2.76975 12.2333 4.0949 13.4838 5.73202 14.0934C5.30497 13.2621 4.96639 12.2005 4.75309 10.9925Z" fill="#666666"/> 4 - </g> 5 - <defs> 6 - <clipPath id="clip0_868_525"> 7 - <rect width="16" height="16" fill="white"/> 8 - </clipPath> 9 - </defs> 10 - </svg>
-1
turbo/my-turborepo/apps/docs/public/next.svg
··· 1 - <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-39.7 32-39.6h-17.9l-23 28.6-23-28.6zm18.3 56.7-9-11-27.1 33.7h17.8l18.3-22.7z"/><path fill="#000" d="M81 79.3 17 0H0v79.3h13.6V17l50.2 62.3H81Zm252.6-.4c-1 0-1.8-.4-2.5-1s-1.1-1.6-1.1-2.6.3-1.8 1-2.5 1.6-1 2.6-1 1.8.3 2.5 1a3.4 3.4 0 0 1 .6 4.3 3.7 3.7 0 0 1-3 1.8zm23.2-33.5h6v23.3c0 2.1-.4 4-1.3 5.5a9.1 9.1 0 0 1-3.8 3.5c-1.6.8-3.5 1.3-5.7 1.3-2 0-3.7-.4-5.3-1s-2.8-1.8-3.7-3.2c-.9-1.3-1.4-3-1.4-5h6c.1.8.3 1.6.7 2.2s1 1.2 1.6 1.5c.7.4 1.5.5 2.4.5 1 0 1.8-.2 2.4-.6a4 4 0 0 0 1.6-1.8c.3-.8.5-1.8.5-3V45.5zm30.9 9.1a4.4 4.4 0 0 0-2-3.3 7.5 7.5 0 0 0-4.3-1.1c-1.3 0-2.4.2-3.3.5-.9.4-1.6 1-2 1.6a3.5 3.5 0 0 0-.3 4c.3.5.7.9 1.3 1.2l1.8 1 2 .5 3.2.8c1.3.3 2.5.7 3.7 1.2a13 13 0 0 1 3.2 1.8 8.1 8.1 0 0 1 3 6.5c0 2-.5 3.7-1.5 5.1a10 10 0 0 1-4.4 3.5c-1.8.8-4.1 1.2-6.8 1.2-2.6 0-4.9-.4-6.8-1.2-2-.8-3.4-2-4.5-3.5a10 10 0 0 1-1.7-5.6h6a5 5 0 0 0 3.5 4.6c1 .4 2.2.6 3.4.6 1.3 0 2.5-.2 3.5-.6 1-.4 1.8-1 2.4-1.7a4 4 0 0 0 .8-2.4c0-.9-.2-1.6-.7-2.2a11 11 0 0 0-2.1-1.4l-3.2-1-3.8-1c-2.8-.7-5-1.7-6.6-3.2a7.2 7.2 0 0 1-2.4-5.7 8 8 0 0 1 1.7-5 10 10 0 0 1 4.3-3.5c2-.8 4-1.2 6.4-1.2 2.3 0 4.4.4 6.2 1.2 1.8.8 3.2 2 4.3 3.4 1 1.4 1.5 3 1.5 5h-5.8z"/></svg>
-19
turbo/my-turborepo/apps/docs/public/turborepo-dark.svg
··· 1 - <svg width="473" height="76" viewBox="0 0 473 76" fill="none" xmlns="http://www.w3.org/2000/svg"> 2 - <path d="M130.998 30.6565V22.3773H91.0977V30.6565H106.16V58.1875H115.935V30.6565H130.998Z" fill="black"/> 3 - <path d="M153.542 58.7362C165.811 58.7362 172.544 52.5018 172.544 42.2275V22.3773H162.768V41.2799C162.768 47.0155 159.776 50.2574 153.542 50.2574C147.307 50.2574 144.315 47.0155 144.315 41.2799V22.3773H134.539V42.2275C134.539 52.5018 141.272 58.7362 153.542 58.7362Z" fill="black"/> 4 - <path d="M187.508 46.3173H197.234L204.914 58.1875H216.136L207.458 45.2699C212.346 43.5243 215.338 39.634 215.338 34.3473C215.338 26.6665 209.603 22.3773 200.874 22.3773H177.732V58.1875H187.508V46.3173ZM187.508 38.5867V30.5568H200.376C203.817 30.5568 205.712 32.053 205.712 34.5967C205.712 36.9907 203.817 38.5867 200.376 38.5867H187.508Z" fill="black"/> 5 - <path d="M219.887 58.1875H245.472C253.452 58.1875 258.041 54.397 258.041 48.0629C258.041 43.8235 255.348 40.9308 252.156 39.634C254.35 38.5867 257.043 36.0929 257.043 32.1528C257.043 25.8187 252.555 22.3773 244.625 22.3773H219.887V58.1875ZM229.263 36.3922V30.3074H243.627C246.32 30.3074 247.817 31.3548 247.817 33.3498C247.817 35.3448 246.32 36.3922 243.627 36.3922H229.263ZM229.263 43.7238H244.525C247.168 43.7238 248.615 45.0205 248.615 46.9657C248.615 48.9108 247.168 50.2075 244.525 50.2075H229.263V43.7238Z" fill="black"/> 6 - <path d="M281.942 21.7788C269.423 21.7788 260.396 29.6092 260.396 40.2824C260.396 50.9557 269.423 58.786 281.942 58.786C294.461 58.786 303.438 50.9557 303.438 40.2824C303.438 29.6092 294.461 21.7788 281.942 21.7788ZM281.942 30.2575C288.525 30.2575 293.463 34.1478 293.463 40.2824C293.463 46.417 288.525 50.3073 281.942 50.3073C275.359 50.3073 270.421 46.417 270.421 40.2824C270.421 34.1478 275.359 30.2575 281.942 30.2575Z" fill="black"/> 7 - <path d="M317.526 46.3173H327.251L334.932 58.1875H346.154L337.476 45.2699C342.364 43.5243 345.356 39.634 345.356 34.3473C345.356 26.6665 339.62 22.3773 330.892 22.3773H307.75V58.1875H317.526V46.3173ZM317.526 38.5867V30.5568H330.394C333.835 30.5568 335.73 32.053 335.73 34.5967C335.73 36.9907 333.835 38.5867 330.394 38.5867H317.526Z" fill="black"/> 8 - <path d="M349.904 22.3773V58.1875H384.717V49.9083H359.48V44.0729H381.874V35.9932H359.48V30.6565H384.717V22.3773H349.904Z" fill="black"/> 9 - <path d="M399.204 46.7662H412.221C420.95 46.7662 426.685 42.5767 426.685 34.5967C426.685 26.5668 420.95 22.3773 412.221 22.3773H389.428V58.1875H399.204V46.7662ZM399.204 38.6365V30.5568H411.673C415.164 30.5568 417.059 32.053 417.059 34.5967C417.059 37.0904 415.164 38.6365 411.673 38.6365H399.204Z" fill="black"/> 10 - <path d="M450.948 21.7788C438.43 21.7788 429.402 29.6092 429.402 40.2824C429.402 50.9557 438.43 58.786 450.948 58.786C463.467 58.786 472.444 50.9557 472.444 40.2824C472.444 29.6092 463.467 21.7788 450.948 21.7788ZM450.948 30.2575C457.532 30.2575 462.469 34.1478 462.469 40.2824C462.469 46.417 457.532 50.3073 450.948 50.3073C444.365 50.3073 439.427 46.417 439.427 40.2824C439.427 34.1478 444.365 30.2575 450.948 30.2575Z" fill="black"/> 11 - <path d="M38.5017 18.0956C27.2499 18.0956 18.0957 27.2498 18.0957 38.5016C18.0957 49.7534 27.2499 58.9076 38.5017 58.9076C49.7535 58.9076 58.9077 49.7534 58.9077 38.5016C58.9077 27.2498 49.7535 18.0956 38.5017 18.0956ZM38.5017 49.0618C32.6687 49.0618 27.9415 44.3346 27.9415 38.5016C27.9415 32.6686 32.6687 27.9414 38.5017 27.9414C44.3347 27.9414 49.0619 32.6686 49.0619 38.5016C49.0619 44.3346 44.3347 49.0618 38.5017 49.0618Z" fill="black"/> 12 - <path fill-rule="evenodd" clip-rule="evenodd" d="M40.2115 14.744V7.125C56.7719 8.0104 69.9275 21.7208 69.9275 38.5016C69.9275 55.2824 56.7719 68.989 40.2115 69.8782V62.2592C52.5539 61.3776 62.3275 51.0644 62.3275 38.5016C62.3275 25.9388 52.5539 15.6256 40.2115 14.744ZM20.5048 54.0815C17.233 50.3043 15.124 45.4935 14.7478 40.2115H7.125C7.5202 47.6025 10.4766 54.3095 15.1088 59.4737L20.501 54.0815H20.5048ZM36.7916 69.8782V62.2592C31.5058 61.883 26.695 59.7778 22.9178 56.5022L17.5256 61.8944C22.6936 66.5304 29.4006 69.483 36.7878 69.8782H36.7916Z" fill="url(#paint0_linear_2028_278)"/> 13 - <defs> 14 - <linearGradient id="paint0_linear_2028_278" x1="41.443" y1="11.5372" x2="10.5567" y2="42.4236" gradientUnits="userSpaceOnUse"> 15 - <stop stop-color="#0096FF"/> 16 - <stop offset="1" stop-color="#FF1E56"/> 17 - </linearGradient> 18 - </defs> 19 - </svg>
-19
turbo/my-turborepo/apps/docs/public/turborepo-light.svg
··· 1 - <svg width="473" height="76" viewBox="0 0 473 76" fill="none" xmlns="http://www.w3.org/2000/svg"> 2 - <path d="M130.998 30.6566V22.3773H91.0977V30.6566H106.16V58.1876H115.935V30.6566H130.998Z" fill="white"/> 3 - <path d="M153.542 58.7362C165.811 58.7362 172.544 52.5018 172.544 42.2276V22.3773H162.768V41.2799C162.768 47.0156 159.776 50.2574 153.542 50.2574C147.307 50.2574 144.315 47.0156 144.315 41.2799V22.3773H134.539V42.2276C134.539 52.5018 141.272 58.7362 153.542 58.7362Z" fill="white"/> 4 - <path d="M187.508 46.3173H197.234L204.914 58.1876H216.136L207.458 45.2699C212.346 43.5243 215.338 39.6341 215.338 34.3473C215.338 26.6666 209.603 22.3773 200.874 22.3773H177.732V58.1876H187.508V46.3173ZM187.508 38.5867V30.5568H200.376C203.817 30.5568 205.712 32.0531 205.712 34.5967C205.712 36.9907 203.817 38.5867 200.376 38.5867H187.508Z" fill="white"/> 5 - <path d="M219.887 58.1876H245.472C253.452 58.1876 258.041 54.3971 258.041 48.0629C258.041 43.8236 255.348 40.9308 252.156 39.6341C254.35 38.5867 257.043 36.0929 257.043 32.1528C257.043 25.8187 252.555 22.3773 244.625 22.3773H219.887V58.1876ZM229.263 36.3922V30.3074H243.627C246.32 30.3074 247.817 31.3548 247.817 33.3498C247.817 35.3448 246.32 36.3922 243.627 36.3922H229.263ZM229.263 43.7238H244.525C247.168 43.7238 248.615 45.0206 248.615 46.9657C248.615 48.9108 247.168 50.2076 244.525 50.2076H229.263V43.7238Z" fill="white"/> 6 - <path d="M281.942 21.7788C269.423 21.7788 260.396 29.6092 260.396 40.2824C260.396 50.9557 269.423 58.7861 281.942 58.7861C294.461 58.7861 303.438 50.9557 303.438 40.2824C303.438 29.6092 294.461 21.7788 281.942 21.7788ZM281.942 30.2576C288.525 30.2576 293.463 34.1478 293.463 40.2824C293.463 46.4171 288.525 50.3073 281.942 50.3073C275.359 50.3073 270.421 46.4171 270.421 40.2824C270.421 34.1478 275.359 30.2576 281.942 30.2576Z" fill="white"/> 7 - <path d="M317.526 46.3173H327.251L334.932 58.1876H346.154L337.476 45.2699C342.364 43.5243 345.356 39.6341 345.356 34.3473C345.356 26.6666 339.62 22.3773 330.892 22.3773H307.75V58.1876H317.526V46.3173ZM317.526 38.5867V30.5568H330.394C333.835 30.5568 335.73 32.0531 335.73 34.5967C335.73 36.9907 333.835 38.5867 330.394 38.5867H317.526Z" fill="white"/> 8 - <path d="M349.904 22.3773V58.1876H384.717V49.9083H359.48V44.0729H381.874V35.9932H359.48V30.6566H384.717V22.3773H349.904Z" fill="white"/> 9 - <path d="M399.204 46.7662H412.221C420.95 46.7662 426.685 42.5767 426.685 34.5967C426.685 26.5668 420.95 22.3773 412.221 22.3773H389.428V58.1876H399.204V46.7662ZM399.204 38.6366V30.5568H411.673C415.164 30.5568 417.059 32.0531 417.059 34.5967C417.059 37.0904 415.164 38.6366 411.673 38.6366H399.204Z" fill="white"/> 10 - <path d="M450.948 21.7788C438.43 21.7788 429.402 29.6092 429.402 40.2824C429.402 50.9557 438.43 58.7861 450.948 58.7861C463.467 58.7861 472.444 50.9557 472.444 40.2824C472.444 29.6092 463.467 21.7788 450.948 21.7788ZM450.948 30.2576C457.532 30.2576 462.469 34.1478 462.469 40.2824C462.469 46.4171 457.532 50.3073 450.948 50.3073C444.365 50.3073 439.427 46.4171 439.427 40.2824C439.427 34.1478 444.365 30.2576 450.948 30.2576Z" fill="white"/> 11 - <path d="M38.5017 18.0956C27.2499 18.0956 18.0957 27.2498 18.0957 38.5016C18.0957 49.7534 27.2499 58.9076 38.5017 58.9076C49.7535 58.9076 58.9077 49.7534 58.9077 38.5016C58.9077 27.2498 49.7535 18.0956 38.5017 18.0956ZM38.5017 49.0618C32.6687 49.0618 27.9415 44.3346 27.9415 38.5016C27.9415 32.6686 32.6687 27.9414 38.5017 27.9414C44.3347 27.9414 49.0619 32.6686 49.0619 38.5016C49.0619 44.3346 44.3347 49.0618 38.5017 49.0618Z" fill="white"/> 12 - <path fill-rule="evenodd" clip-rule="evenodd" d="M40.2115 14.744V7.125C56.7719 8.0104 69.9275 21.7208 69.9275 38.5016C69.9275 55.2824 56.7719 68.989 40.2115 69.8782V62.2592C52.5539 61.3776 62.3275 51.0644 62.3275 38.5016C62.3275 25.9388 52.5539 15.6256 40.2115 14.744ZM20.5048 54.0815C17.233 50.3043 15.124 45.4935 14.7478 40.2115H7.125C7.5202 47.6025 10.4766 54.3095 15.1088 59.4737L20.501 54.0815H20.5048ZM36.7916 69.8782V62.2592C31.5058 61.883 26.695 59.7778 22.9178 56.5022L17.5256 61.8944C22.6936 66.5304 29.4006 69.483 36.7878 69.8782H36.7916Z" fill="url(#paint0_linear_2028_477)"/> 13 - <defs> 14 - <linearGradient id="paint0_linear_2028_477" x1="41.443" y1="11.5372" x2="10.5567" y2="42.4236" gradientUnits="userSpaceOnUse"> 15 - <stop stop-color="#0096FF"/> 16 - <stop offset="1" stop-color="#FF1E56"/> 17 - </linearGradient> 18 - </defs> 19 - </svg>
-10
turbo/my-turborepo/apps/docs/public/vercel.svg
··· 1 - <svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg"> 2 - <g clip-path="url(#clip0_977_547)"> 3 - <path fill-rule="evenodd" clip-rule="evenodd" d="M10.5 3L18.5 17H2.5L10.5 3Z" fill="white"/> 4 - </g> 5 - <defs> 6 - <clipPath id="clip0_977_547"> 7 - <rect width="16" height="16" fill="white" transform="translate(2.5 2)"/> 8 - </clipPath> 9 - </defs> 10 - </svg>
-3
turbo/my-turborepo/apps/docs/public/window.svg
··· 1 - <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> 2 - <path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 2.5H14.5V12.5C14.5 13.0523 14.0523 13.5 13.5 13.5H2.5C1.94772 13.5 1.5 13.0523 1.5 12.5V2.5ZM0 1H1.5H14.5H16V2.5V12.5C16 13.8807 14.8807 15 13.5 15H2.5C1.11929 15 0 13.8807 0 12.5V2.5V1ZM3.75 5.5C4.16421 5.5 4.5 5.16421 4.5 4.75C4.5 4.33579 4.16421 4 3.75 4C3.33579 4 3 4.33579 3 4.75C3 5.16421 3.33579 5.5 3.75 5.5ZM7 4.75C7 5.16421 6.66421 5.5 6.25 5.5C5.83579 5.5 5.5 5.16421 5.5 4.75C5.5 4.33579 5.83579 4 6.25 4C6.66421 4 7 4.33579 7 4.75ZM8.75 5.5C9.16421 5.5 9.5 5.16421 9.5 4.75C9.5 4.33579 9.16421 4 8.75 4C8.33579 4 8 4.33579 8 4.75C8 5.16421 8.33579 5.5 8.75 5.5Z" fill="#666666"/> 3 - </svg>
-20
turbo/my-turborepo/apps/docs/tsconfig.json
··· 1 - { 2 - "extends": "@repo/typescript-config/nextjs.json", 3 - "compilerOptions": { 4 - "plugins": [ 5 - { 6 - "name": "next" 7 - } 8 - ] 9 - }, 10 - "include": [ 11 - "**/*.ts", 12 - "**/*.tsx", 13 - "next-env.d.ts", 14 - "next.config.js", 15 - ".next/types/**/*.ts" 16 - ], 17 - "exclude": [ 18 - "node_modules" 19 - ] 20 - }
-36
turbo/my-turborepo/apps/web/.gitignore
··· 1 - # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 - 3 - # dependencies 4 - /node_modules 5 - /.pnp 6 - .pnp.js 7 - .yarn/install-state.gz 8 - 9 - # testing 10 - /coverage 11 - 12 - # next.js 13 - /.next/ 14 - /out/ 15 - 16 - # production 17 - /build 18 - 19 - # misc 20 - .DS_Store 21 - *.pem 22 - 23 - # debug 24 - npm-debug.log* 25 - yarn-debug.log* 26 - yarn-error.log* 27 - 28 - # env files (can opt-in for commiting if needed) 29 - .env* 30 - 31 - # vercel 32 - .vercel 33 - 34 - # typescript 35 - *.tsbuildinfo 36 - next-env.d.ts
-36
turbo/my-turborepo/apps/web/README.md
··· 1 - This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/create-next-app). 2 - 3 - ## Getting Started 4 - 5 - First, run the development server: 6 - 7 - ```bash 8 - npm run dev 9 - # or 10 - yarn dev 11 - # or 12 - pnpm dev 13 - # or 14 - bun dev 15 - ``` 16 - 17 - Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. 18 - 19 - You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. 20 - 21 - This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load Inter, a custom Google Font. 22 - 23 - ## Learn More 24 - 25 - To learn more about Next.js, take a look at the following resources: 26 - 27 - - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. 28 - - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. 29 - 30 - You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome! 31 - 32 - ## Deploy on Vercel 33 - 34 - The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. 35 - 36 - Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
turbo/my-turborepo/apps/web/app/favicon.ico

This is a binary file and will not be displayed.

turbo/my-turborepo/apps/web/app/fonts/GeistMonoVF.woff

This is a binary file and will not be displayed.

turbo/my-turborepo/apps/web/app/fonts/GeistVF.woff

This is a binary file and will not be displayed.

-50
turbo/my-turborepo/apps/web/app/globals.css
··· 1 - :root { 2 - --background: #ffffff; 3 - --foreground: #171717; 4 - } 5 - 6 - @media (prefers-color-scheme: dark) { 7 - :root { 8 - --background: #0a0a0a; 9 - --foreground: #ededed; 10 - } 11 - } 12 - 13 - html, 14 - body { 15 - max-width: 100vw; 16 - overflow-x: hidden; 17 - } 18 - 19 - body { 20 - color: var(--foreground); 21 - background: var(--background); 22 - } 23 - 24 - * { 25 - box-sizing: border-box; 26 - padding: 0; 27 - margin: 0; 28 - } 29 - 30 - a { 31 - color: inherit; 32 - text-decoration: none; 33 - } 34 - 35 - .imgDark { 36 - display: none; 37 - } 38 - 39 - @media (prefers-color-scheme: dark) { 40 - html { 41 - color-scheme: dark; 42 - } 43 - 44 - .imgLight { 45 - display: none; 46 - } 47 - .imgDark { 48 - display: unset; 49 - } 50 - }
-31
turbo/my-turborepo/apps/web/app/layout.tsx
··· 1 - import type { Metadata } from "next"; 2 - import localFont from "next/font/local"; 3 - import "./globals.css"; 4 - 5 - const geistSans = localFont({ 6 - src: "./fonts/GeistVF.woff", 7 - variable: "--font-geist-sans", 8 - }); 9 - const geistMono = localFont({ 10 - src: "./fonts/GeistMonoVF.woff", 11 - variable: "--font-geist-mono", 12 - }); 13 - 14 - export const metadata: Metadata = { 15 - title: "Create Next App", 16 - description: "Generated by create next app", 17 - }; 18 - 19 - export default function RootLayout({ 20 - children, 21 - }: Readonly<{ 22 - children: React.ReactNode; 23 - }>) { 24 - return ( 25 - <html lang="en"> 26 - <body className={`${geistSans.variable} ${geistMono.variable}`}> 27 - {children} 28 - </body> 29 - </html> 30 - ); 31 - }
-188
turbo/my-turborepo/apps/web/app/page.module.css
··· 1 - .page { 2 - --gray-rgb: 0, 0, 0; 3 - --gray-alpha-200: rgba(var(--gray-rgb), 0.08); 4 - --gray-alpha-100: rgba(var(--gray-rgb), 0.05); 5 - 6 - --button-primary-hover: #383838; 7 - --button-secondary-hover: #f2f2f2; 8 - 9 - display: grid; 10 - grid-template-rows: 20px 1fr 20px; 11 - align-items: center; 12 - justify-items: center; 13 - min-height: 100svh; 14 - padding: 80px; 15 - gap: 64px; 16 - font-synthesis: none; 17 - } 18 - 19 - @media (prefers-color-scheme: dark) { 20 - .page { 21 - --gray-rgb: 255, 255, 255; 22 - --gray-alpha-200: rgba(var(--gray-rgb), 0.145); 23 - --gray-alpha-100: rgba(var(--gray-rgb), 0.06); 24 - 25 - --button-primary-hover: #ccc; 26 - --button-secondary-hover: #1a1a1a; 27 - } 28 - } 29 - 30 - .main { 31 - display: flex; 32 - flex-direction: column; 33 - gap: 32px; 34 - grid-row-start: 2; 35 - } 36 - 37 - .main ol { 38 - font-family: var(--font-geist-mono); 39 - padding-left: 0; 40 - margin: 0; 41 - font-size: 14px; 42 - line-height: 24px; 43 - letter-spacing: -0.01em; 44 - list-style-position: inside; 45 - } 46 - 47 - .main li:not(:last-of-type) { 48 - margin-bottom: 8px; 49 - } 50 - 51 - .main code { 52 - font-family: inherit; 53 - background: var(--gray-alpha-100); 54 - padding: 2px 4px; 55 - border-radius: 4px; 56 - font-weight: 600; 57 - } 58 - 59 - .ctas { 60 - display: flex; 61 - gap: 16px; 62 - } 63 - 64 - .ctas a { 65 - appearance: none; 66 - border-radius: 128px; 67 - height: 48px; 68 - padding: 0 20px; 69 - border: none; 70 - font-family: var(--font-geist-sans); 71 - border: 1px solid transparent; 72 - transition: background 0.2s, color 0.2s, border-color 0.2s; 73 - cursor: pointer; 74 - display: flex; 75 - align-items: center; 76 - justify-content: center; 77 - font-size: 16px; 78 - line-height: 20px; 79 - font-weight: 500; 80 - } 81 - 82 - a.primary { 83 - background: var(--foreground); 84 - color: var(--background); 85 - gap: 8px; 86 - } 87 - 88 - a.secondary { 89 - border-color: var(--gray-alpha-200); 90 - min-width: 180px; 91 - } 92 - 93 - button.secondary { 94 - appearance: none; 95 - border-radius: 128px; 96 - height: 48px; 97 - padding: 0 20px; 98 - border: none; 99 - font-family: var(--font-geist-sans); 100 - border: 1px solid transparent; 101 - transition: background 0.2s, color 0.2s, border-color 0.2s; 102 - cursor: pointer; 103 - display: flex; 104 - align-items: center; 105 - justify-content: center; 106 - font-size: 16px; 107 - line-height: 20px; 108 - font-weight: 500; 109 - background: transparent; 110 - border-color: var(--gray-alpha-200); 111 - min-width: 180px; 112 - } 113 - 114 - .footer { 115 - font-family: var(--font-geist-sans); 116 - grid-row-start: 3; 117 - display: flex; 118 - gap: 24px; 119 - } 120 - 121 - .footer a { 122 - display: flex; 123 - align-items: center; 124 - gap: 8px; 125 - } 126 - 127 - .footer img { 128 - flex-shrink: 0; 129 - } 130 - 131 - /* Enable hover only on non-touch devices */ 132 - @media (hover: hover) and (pointer: fine) { 133 - a.primary:hover { 134 - background: var(--button-primary-hover); 135 - border-color: transparent; 136 - } 137 - 138 - a.secondary:hover { 139 - background: var(--button-secondary-hover); 140 - border-color: transparent; 141 - } 142 - 143 - .footer a:hover { 144 - text-decoration: underline; 145 - text-underline-offset: 4px; 146 - } 147 - } 148 - 149 - @media (max-width: 600px) { 150 - .page { 151 - padding: 32px; 152 - padding-bottom: 80px; 153 - } 154 - 155 - .main { 156 - align-items: center; 157 - } 158 - 159 - .main ol { 160 - text-align: center; 161 - } 162 - 163 - .ctas { 164 - flex-direction: column; 165 - } 166 - 167 - .ctas a { 168 - font-size: 14px; 169 - height: 40px; 170 - padding: 0 16px; 171 - } 172 - 173 - a.secondary { 174 - min-width: auto; 175 - } 176 - 177 - .footer { 178 - flex-wrap: wrap; 179 - align-items: center; 180 - justify-content: center; 181 - } 182 - } 183 - 184 - @media (prefers-color-scheme: dark) { 185 - .logo { 186 - filter: invert(); 187 - } 188 - }
-102
turbo/my-turborepo/apps/web/app/page.tsx
··· 1 - import Image, { type ImageProps } from "next/image"; 2 - import { Button } from "@repo/ui/button"; 3 - import styles from "./page.module.css"; 4 - 5 - type Props = Omit<ImageProps, "src"> & { 6 - srcLight: string; 7 - srcDark: string; 8 - }; 9 - 10 - const ThemeImage = (props: Props) => { 11 - const { srcLight, srcDark, ...rest } = props; 12 - 13 - return ( 14 - <> 15 - <Image {...rest} src={srcLight} className="imgLight" /> 16 - <Image {...rest} src={srcDark} className="imgDark" /> 17 - </> 18 - ); 19 - }; 20 - 21 - export default function Home() { 22 - return ( 23 - <div className={styles.page}> 24 - <main className={styles.main}> 25 - <ThemeImage 26 - className={styles.logo} 27 - srcLight="turborepo-dark.svg" 28 - srcDark="turborepo-light.svg" 29 - alt="Turborepo logo" 30 - width={180} 31 - height={38} 32 - priority 33 - /> 34 - <ol> 35 - <li> 36 - Get started by editing <code>apps/web/app/page.tsx</code> 37 - </li> 38 - <li>Save and see your changes instantly.</li> 39 - </ol> 40 - 41 - <div className={styles.ctas}> 42 - <a 43 - className={styles.primary} 44 - href="https://vercel.com/new/clone?demo-description=Learn+to+implement+a+monorepo+with+a+two+Next.js+sites+that+has+installed+three+local+packages.&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F4K8ZISWAzJ8X1504ca0zmC%2F0b21a1c6246add355e55816278ef54bc%2FBasic.png&demo-title=Monorepo+with+Turborepo&demo-url=https%3A%2F%2Fexamples-basic-web.vercel.sh%2F&from=templates&project-name=Monorepo+with+Turborepo&repository-name=monorepo-turborepo&repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fturborepo%2Ftree%2Fmain%2Fexamples%2Fbasic&root-directory=apps%2Fdocs&skippable-integrations=1&teamSlug=vercel&utm_source=create-turbo" 45 - target="_blank" 46 - rel="noopener noreferrer" 47 - > 48 - <Image 49 - className={styles.logo} 50 - src="/vercel.svg" 51 - alt="Vercel logomark" 52 - width={20} 53 - height={20} 54 - /> 55 - Deploy now 56 - </a> 57 - <a 58 - href="https://turbo.build/repo/docs?utm_source" 59 - target="_blank" 60 - rel="noopener noreferrer" 61 - className={styles.secondary} 62 - > 63 - Read our docs 64 - </a> 65 - </div> 66 - <Button appName="web" className={styles.secondary}> 67 - Open alert 68 - </Button> 69 - </main> 70 - <footer className={styles.footer}> 71 - <a 72 - href="https://vercel.com/templates?search=turborepo&utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app" 73 - target="_blank" 74 - rel="noopener noreferrer" 75 - > 76 - <Image 77 - aria-hidden 78 - src="/window.svg" 79 - alt="Window icon" 80 - width={16} 81 - height={16} 82 - /> 83 - Examples 84 - </a> 85 - <a 86 - href="https://turbo.build?utm_source=create-turbo" 87 - target="_blank" 88 - rel="noopener noreferrer" 89 - > 90 - <Image 91 - aria-hidden 92 - src="/globe.svg" 93 - alt="Globe icon" 94 - width={16} 95 - height={16} 96 - /> 97 - Go to turbo.build → 98 - </a> 99 - </footer> 100 - </div> 101 - ); 102 - }
-4
turbo/my-turborepo/apps/web/eslint.config.js
··· 1 - import { nextJsConfig } from "@repo/eslint-config/next-js"; 2 - 3 - /** @type {import("eslint").Linter.Config} */ 4 - export default nextJsConfig;
-4
turbo/my-turborepo/apps/web/next.config.js
··· 1 - /** @type {import('next').NextConfig} */ 2 - const nextConfig = {}; 3 - 4 - export default nextConfig;
-27
turbo/my-turborepo/apps/web/package.json
··· 1 - { 2 - "name": "web", 3 - "version": "0.1.0", 4 - "type": "module", 5 - "private": true, 6 - "scripts": { 7 - "dev": "next dev --turbopack", 8 - "build": "next build", 9 - "start": "next start", 10 - "lint": "next lint --max-warnings 0", 11 - "check-types": "tsc --noEmit" 12 - }, 13 - "dependencies": { 14 - "@repo/ui": "*", 15 - "next": "^15.1.0", 16 - "react": "^19.0.0", 17 - "react-dom": "^19.0.0" 18 - }, 19 - "devDependencies": { 20 - "@repo/eslint-config": "*", 21 - "@repo/typescript-config": "*", 22 - "@types/node": "^20", 23 - "@types/react": "18.3.1", 24 - "@types/react-dom": "18.3.0", 25 - "typescript": "5.5.4" 26 - } 27 - }
-3
turbo/my-turborepo/apps/web/public/file-text.svg
··· 1 - <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> 2 - <path fill-rule="evenodd" clip-rule="evenodd" d="M14.5 13.5V6.5V5.41421C14.5 5.149 14.3946 4.89464 14.2071 4.70711L9.79289 0.292893C9.60536 0.105357 9.351 0 9.08579 0H8H3H1.5V1.5V13.5C1.5 14.8807 2.61929 16 4 16H12C13.3807 16 14.5 14.8807 14.5 13.5ZM13 13.5V6.5H9.5H8V5V1.5H3V13.5C3 14.0523 3.44772 14.5 4 14.5H12C12.5523 14.5 13 14.0523 13 13.5ZM9.5 5V2.12132L12.3787 5H9.5ZM5.13 5.00062H4.505V6.25062H5.13H6H6.625V5.00062H6H5.13ZM4.505 8H5.13H11H11.625V9.25H11H5.13H4.505V8ZM5.13 11H4.505V12.25H5.13H11H11.625V11H11H5.13Z" fill="#666666"/> 3 - </svg>
-10
turbo/my-turborepo/apps/web/public/globe.svg
··· 1 - <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> 2 - <g clip-path="url(#clip0_868_525)"> 3 - <path fill-rule="evenodd" clip-rule="evenodd" d="M10.268 14.0934C11.9051 13.4838 13.2303 12.2333 13.9384 10.6469C13.1192 10.7941 12.2138 10.9111 11.2469 10.9925C11.0336 12.2005 10.695 13.2621 10.268 14.0934ZM8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM8.48347 14.4823C8.32384 14.494 8.16262 14.5 8 14.5C7.83738 14.5 7.67616 14.494 7.51654 14.4823C7.5132 14.4791 7.50984 14.4759 7.50647 14.4726C7.2415 14.2165 6.94578 13.7854 6.67032 13.1558C6.41594 12.5744 6.19979 11.8714 6.04101 11.0778C6.67605 11.1088 7.33104 11.125 8 11.125C8.66896 11.125 9.32395 11.1088 9.95899 11.0778C9.80021 11.8714 9.58406 12.5744 9.32968 13.1558C9.05422 13.7854 8.7585 14.2165 8.49353 14.4726C8.49016 14.4759 8.4868 14.4791 8.48347 14.4823ZM11.4187 9.72246C12.5137 9.62096 13.5116 9.47245 14.3724 9.28806C14.4561 8.87172 14.5 8.44099 14.5 8C14.5 7.55901 14.4561 7.12828 14.3724 6.71194C13.5116 6.52755 12.5137 6.37904 11.4187 6.27753C11.4719 6.83232 11.5 7.40867 11.5 8C11.5 8.59133 11.4719 9.16768 11.4187 9.72246ZM10.1525 6.18401C10.2157 6.75982 10.25 7.36805 10.25 8C10.25 8.63195 10.2157 9.24018 10.1525 9.81598C9.46123 9.85455 8.7409 9.875 8 9.875C7.25909 9.875 6.53877 9.85455 5.84749 9.81598C5.7843 9.24018 5.75 8.63195 5.75 8C5.75 7.36805 5.7843 6.75982 5.84749 6.18401C6.53877 6.14545 7.25909 6.125 8 6.125C8.74091 6.125 9.46123 6.14545 10.1525 6.18401ZM11.2469 5.00748C12.2138 5.08891 13.1191 5.20593 13.9384 5.35306C13.2303 3.7667 11.9051 2.51622 10.268 1.90662C10.695 2.73788 11.0336 3.79953 11.2469 5.00748ZM8.48347 1.51771C8.4868 1.52089 8.49016 1.52411 8.49353 1.52737C8.7585 1.78353 9.05422 2.21456 9.32968 2.84417C9.58406 3.42562 9.80021 4.12856 9.95899 4.92219C9.32395 4.89118 8.66896 4.875 8 4.875C7.33104 4.875 6.67605 4.89118 6.04101 4.92219C6.19978 4.12856 6.41594 3.42562 6.67032 2.84417C6.94578 2.21456 7.2415 1.78353 7.50647 1.52737C7.50984 1.52411 7.51319 1.52089 7.51653 1.51771C7.67615 1.50597 7.83738 1.5 8 1.5C8.16262 1.5 8.32384 1.50597 8.48347 1.51771ZM5.73202 1.90663C4.0949 2.51622 2.76975 3.7667 2.06159 5.35306C2.88085 5.20593 3.78617 5.08891 4.75309 5.00748C4.96639 3.79953 5.30497 2.73788 5.73202 1.90663ZM4.58133 6.27753C3.48633 6.37904 2.48837 6.52755 1.62761 6.71194C1.54392 7.12828 1.5 7.55901 1.5 8C1.5 8.44099 1.54392 8.87172 1.62761 9.28806C2.48837 9.47245 3.48633 9.62096 4.58133 9.72246C4.52807 9.16768 4.5 8.59133 4.5 8C4.5 7.40867 4.52807 6.83232 4.58133 6.27753ZM4.75309 10.9925C3.78617 10.9111 2.88085 10.7941 2.06159 10.6469C2.76975 12.2333 4.0949 13.4838 5.73202 14.0934C5.30497 13.2621 4.96639 12.2005 4.75309 10.9925Z" fill="#666666"/> 4 - </g> 5 - <defs> 6 - <clipPath id="clip0_868_525"> 7 - <rect width="16" height="16" fill="white"/> 8 - </clipPath> 9 - </defs> 10 - </svg>
-1
turbo/my-turborepo/apps/web/public/next.svg
··· 1 - <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-39.7 32-39.6h-17.9l-23 28.6-23-28.6zm18.3 56.7-9-11-27.1 33.7h17.8l18.3-22.7z"/><path fill="#000" d="M81 79.3 17 0H0v79.3h13.6V17l50.2 62.3H81Zm252.6-.4c-1 0-1.8-.4-2.5-1s-1.1-1.6-1.1-2.6.3-1.8 1-2.5 1.6-1 2.6-1 1.8.3 2.5 1a3.4 3.4 0 0 1 .6 4.3 3.7 3.7 0 0 1-3 1.8zm23.2-33.5h6v23.3c0 2.1-.4 4-1.3 5.5a9.1 9.1 0 0 1-3.8 3.5c-1.6.8-3.5 1.3-5.7 1.3-2 0-3.7-.4-5.3-1s-2.8-1.8-3.7-3.2c-.9-1.3-1.4-3-1.4-5h6c.1.8.3 1.6.7 2.2s1 1.2 1.6 1.5c.7.4 1.5.5 2.4.5 1 0 1.8-.2 2.4-.6a4 4 0 0 0 1.6-1.8c.3-.8.5-1.8.5-3V45.5zm30.9 9.1a4.4 4.4 0 0 0-2-3.3 7.5 7.5 0 0 0-4.3-1.1c-1.3 0-2.4.2-3.3.5-.9.4-1.6 1-2 1.6a3.5 3.5 0 0 0-.3 4c.3.5.7.9 1.3 1.2l1.8 1 2 .5 3.2.8c1.3.3 2.5.7 3.7 1.2a13 13 0 0 1 3.2 1.8 8.1 8.1 0 0 1 3 6.5c0 2-.5 3.7-1.5 5.1a10 10 0 0 1-4.4 3.5c-1.8.8-4.1 1.2-6.8 1.2-2.6 0-4.9-.4-6.8-1.2-2-.8-3.4-2-4.5-3.5a10 10 0 0 1-1.7-5.6h6a5 5 0 0 0 3.5 4.6c1 .4 2.2.6 3.4.6 1.3 0 2.5-.2 3.5-.6 1-.4 1.8-1 2.4-1.7a4 4 0 0 0 .8-2.4c0-.9-.2-1.6-.7-2.2a11 11 0 0 0-2.1-1.4l-3.2-1-3.8-1c-2.8-.7-5-1.7-6.6-3.2a7.2 7.2 0 0 1-2.4-5.7 8 8 0 0 1 1.7-5 10 10 0 0 1 4.3-3.5c2-.8 4-1.2 6.4-1.2 2.3 0 4.4.4 6.2 1.2 1.8.8 3.2 2 4.3 3.4 1 1.4 1.5 3 1.5 5h-5.8z"/></svg>
-19
turbo/my-turborepo/apps/web/public/turborepo-dark.svg
··· 1 - <svg width="473" height="76" viewBox="0 0 473 76" fill="none" xmlns="http://www.w3.org/2000/svg"> 2 - <path d="M130.998 30.6565V22.3773H91.0977V30.6565H106.16V58.1875H115.935V30.6565H130.998Z" fill="black"/> 3 - <path d="M153.542 58.7362C165.811 58.7362 172.544 52.5018 172.544 42.2275V22.3773H162.768V41.2799C162.768 47.0155 159.776 50.2574 153.542 50.2574C147.307 50.2574 144.315 47.0155 144.315 41.2799V22.3773H134.539V42.2275C134.539 52.5018 141.272 58.7362 153.542 58.7362Z" fill="black"/> 4 - <path d="M187.508 46.3173H197.234L204.914 58.1875H216.136L207.458 45.2699C212.346 43.5243 215.338 39.634 215.338 34.3473C215.338 26.6665 209.603 22.3773 200.874 22.3773H177.732V58.1875H187.508V46.3173ZM187.508 38.5867V30.5568H200.376C203.817 30.5568 205.712 32.053 205.712 34.5967C205.712 36.9907 203.817 38.5867 200.376 38.5867H187.508Z" fill="black"/> 5 - <path d="M219.887 58.1875H245.472C253.452 58.1875 258.041 54.397 258.041 48.0629C258.041 43.8235 255.348 40.9308 252.156 39.634C254.35 38.5867 257.043 36.0929 257.043 32.1528C257.043 25.8187 252.555 22.3773 244.625 22.3773H219.887V58.1875ZM229.263 36.3922V30.3074H243.627C246.32 30.3074 247.817 31.3548 247.817 33.3498C247.817 35.3448 246.32 36.3922 243.627 36.3922H229.263ZM229.263 43.7238H244.525C247.168 43.7238 248.615 45.0205 248.615 46.9657C248.615 48.9108 247.168 50.2075 244.525 50.2075H229.263V43.7238Z" fill="black"/> 6 - <path d="M281.942 21.7788C269.423 21.7788 260.396 29.6092 260.396 40.2824C260.396 50.9557 269.423 58.786 281.942 58.786C294.461 58.786 303.438 50.9557 303.438 40.2824C303.438 29.6092 294.461 21.7788 281.942 21.7788ZM281.942 30.2575C288.525 30.2575 293.463 34.1478 293.463 40.2824C293.463 46.417 288.525 50.3073 281.942 50.3073C275.359 50.3073 270.421 46.417 270.421 40.2824C270.421 34.1478 275.359 30.2575 281.942 30.2575Z" fill="black"/> 7 - <path d="M317.526 46.3173H327.251L334.932 58.1875H346.154L337.476 45.2699C342.364 43.5243 345.356 39.634 345.356 34.3473C345.356 26.6665 339.62 22.3773 330.892 22.3773H307.75V58.1875H317.526V46.3173ZM317.526 38.5867V30.5568H330.394C333.835 30.5568 335.73 32.053 335.73 34.5967C335.73 36.9907 333.835 38.5867 330.394 38.5867H317.526Z" fill="black"/> 8 - <path d="M349.904 22.3773V58.1875H384.717V49.9083H359.48V44.0729H381.874V35.9932H359.48V30.6565H384.717V22.3773H349.904Z" fill="black"/> 9 - <path d="M399.204 46.7662H412.221C420.95 46.7662 426.685 42.5767 426.685 34.5967C426.685 26.5668 420.95 22.3773 412.221 22.3773H389.428V58.1875H399.204V46.7662ZM399.204 38.6365V30.5568H411.673C415.164 30.5568 417.059 32.053 417.059 34.5967C417.059 37.0904 415.164 38.6365 411.673 38.6365H399.204Z" fill="black"/> 10 - <path d="M450.948 21.7788C438.43 21.7788 429.402 29.6092 429.402 40.2824C429.402 50.9557 438.43 58.786 450.948 58.786C463.467 58.786 472.444 50.9557 472.444 40.2824C472.444 29.6092 463.467 21.7788 450.948 21.7788ZM450.948 30.2575C457.532 30.2575 462.469 34.1478 462.469 40.2824C462.469 46.417 457.532 50.3073 450.948 50.3073C444.365 50.3073 439.427 46.417 439.427 40.2824C439.427 34.1478 444.365 30.2575 450.948 30.2575Z" fill="black"/> 11 - <path d="M38.5017 18.0956C27.2499 18.0956 18.0957 27.2498 18.0957 38.5016C18.0957 49.7534 27.2499 58.9076 38.5017 58.9076C49.7535 58.9076 58.9077 49.7534 58.9077 38.5016C58.9077 27.2498 49.7535 18.0956 38.5017 18.0956ZM38.5017 49.0618C32.6687 49.0618 27.9415 44.3346 27.9415 38.5016C27.9415 32.6686 32.6687 27.9414 38.5017 27.9414C44.3347 27.9414 49.0619 32.6686 49.0619 38.5016C49.0619 44.3346 44.3347 49.0618 38.5017 49.0618Z" fill="black"/> 12 - <path fill-rule="evenodd" clip-rule="evenodd" d="M40.2115 14.744V7.125C56.7719 8.0104 69.9275 21.7208 69.9275 38.5016C69.9275 55.2824 56.7719 68.989 40.2115 69.8782V62.2592C52.5539 61.3776 62.3275 51.0644 62.3275 38.5016C62.3275 25.9388 52.5539 15.6256 40.2115 14.744ZM20.5048 54.0815C17.233 50.3043 15.124 45.4935 14.7478 40.2115H7.125C7.5202 47.6025 10.4766 54.3095 15.1088 59.4737L20.501 54.0815H20.5048ZM36.7916 69.8782V62.2592C31.5058 61.883 26.695 59.7778 22.9178 56.5022L17.5256 61.8944C22.6936 66.5304 29.4006 69.483 36.7878 69.8782H36.7916Z" fill="url(#paint0_linear_2028_278)"/> 13 - <defs> 14 - <linearGradient id="paint0_linear_2028_278" x1="41.443" y1="11.5372" x2="10.5567" y2="42.4236" gradientUnits="userSpaceOnUse"> 15 - <stop stop-color="#0096FF"/> 16 - <stop offset="1" stop-color="#FF1E56"/> 17 - </linearGradient> 18 - </defs> 19 - </svg>
-19
turbo/my-turborepo/apps/web/public/turborepo-light.svg
··· 1 - <svg width="473" height="76" viewBox="0 0 473 76" fill="none" xmlns="http://www.w3.org/2000/svg"> 2 - <path d="M130.998 30.6566V22.3773H91.0977V30.6566H106.16V58.1876H115.935V30.6566H130.998Z" fill="white"/> 3 - <path d="M153.542 58.7362C165.811 58.7362 172.544 52.5018 172.544 42.2276V22.3773H162.768V41.2799C162.768 47.0156 159.776 50.2574 153.542 50.2574C147.307 50.2574 144.315 47.0156 144.315 41.2799V22.3773H134.539V42.2276C134.539 52.5018 141.272 58.7362 153.542 58.7362Z" fill="white"/> 4 - <path d="M187.508 46.3173H197.234L204.914 58.1876H216.136L207.458 45.2699C212.346 43.5243 215.338 39.6341 215.338 34.3473C215.338 26.6666 209.603 22.3773 200.874 22.3773H177.732V58.1876H187.508V46.3173ZM187.508 38.5867V30.5568H200.376C203.817 30.5568 205.712 32.0531 205.712 34.5967C205.712 36.9907 203.817 38.5867 200.376 38.5867H187.508Z" fill="white"/> 5 - <path d="M219.887 58.1876H245.472C253.452 58.1876 258.041 54.3971 258.041 48.0629C258.041 43.8236 255.348 40.9308 252.156 39.6341C254.35 38.5867 257.043 36.0929 257.043 32.1528C257.043 25.8187 252.555 22.3773 244.625 22.3773H219.887V58.1876ZM229.263 36.3922V30.3074H243.627C246.32 30.3074 247.817 31.3548 247.817 33.3498C247.817 35.3448 246.32 36.3922 243.627 36.3922H229.263ZM229.263 43.7238H244.525C247.168 43.7238 248.615 45.0206 248.615 46.9657C248.615 48.9108 247.168 50.2076 244.525 50.2076H229.263V43.7238Z" fill="white"/> 6 - <path d="M281.942 21.7788C269.423 21.7788 260.396 29.6092 260.396 40.2824C260.396 50.9557 269.423 58.7861 281.942 58.7861C294.461 58.7861 303.438 50.9557 303.438 40.2824C303.438 29.6092 294.461 21.7788 281.942 21.7788ZM281.942 30.2576C288.525 30.2576 293.463 34.1478 293.463 40.2824C293.463 46.4171 288.525 50.3073 281.942 50.3073C275.359 50.3073 270.421 46.4171 270.421 40.2824C270.421 34.1478 275.359 30.2576 281.942 30.2576Z" fill="white"/> 7 - <path d="M317.526 46.3173H327.251L334.932 58.1876H346.154L337.476 45.2699C342.364 43.5243 345.356 39.6341 345.356 34.3473C345.356 26.6666 339.62 22.3773 330.892 22.3773H307.75V58.1876H317.526V46.3173ZM317.526 38.5867V30.5568H330.394C333.835 30.5568 335.73 32.0531 335.73 34.5967C335.73 36.9907 333.835 38.5867 330.394 38.5867H317.526Z" fill="white"/> 8 - <path d="M349.904 22.3773V58.1876H384.717V49.9083H359.48V44.0729H381.874V35.9932H359.48V30.6566H384.717V22.3773H349.904Z" fill="white"/> 9 - <path d="M399.204 46.7662H412.221C420.95 46.7662 426.685 42.5767 426.685 34.5967C426.685 26.5668 420.95 22.3773 412.221 22.3773H389.428V58.1876H399.204V46.7662ZM399.204 38.6366V30.5568H411.673C415.164 30.5568 417.059 32.0531 417.059 34.5967C417.059 37.0904 415.164 38.6366 411.673 38.6366H399.204Z" fill="white"/> 10 - <path d="M450.948 21.7788C438.43 21.7788 429.402 29.6092 429.402 40.2824C429.402 50.9557 438.43 58.7861 450.948 58.7861C463.467 58.7861 472.444 50.9557 472.444 40.2824C472.444 29.6092 463.467 21.7788 450.948 21.7788ZM450.948 30.2576C457.532 30.2576 462.469 34.1478 462.469 40.2824C462.469 46.4171 457.532 50.3073 450.948 50.3073C444.365 50.3073 439.427 46.4171 439.427 40.2824C439.427 34.1478 444.365 30.2576 450.948 30.2576Z" fill="white"/> 11 - <path d="M38.5017 18.0956C27.2499 18.0956 18.0957 27.2498 18.0957 38.5016C18.0957 49.7534 27.2499 58.9076 38.5017 58.9076C49.7535 58.9076 58.9077 49.7534 58.9077 38.5016C58.9077 27.2498 49.7535 18.0956 38.5017 18.0956ZM38.5017 49.0618C32.6687 49.0618 27.9415 44.3346 27.9415 38.5016C27.9415 32.6686 32.6687 27.9414 38.5017 27.9414C44.3347 27.9414 49.0619 32.6686 49.0619 38.5016C49.0619 44.3346 44.3347 49.0618 38.5017 49.0618Z" fill="white"/> 12 - <path fill-rule="evenodd" clip-rule="evenodd" d="M40.2115 14.744V7.125C56.7719 8.0104 69.9275 21.7208 69.9275 38.5016C69.9275 55.2824 56.7719 68.989 40.2115 69.8782V62.2592C52.5539 61.3776 62.3275 51.0644 62.3275 38.5016C62.3275 25.9388 52.5539 15.6256 40.2115 14.744ZM20.5048 54.0815C17.233 50.3043 15.124 45.4935 14.7478 40.2115H7.125C7.5202 47.6025 10.4766 54.3095 15.1088 59.4737L20.501 54.0815H20.5048ZM36.7916 69.8782V62.2592C31.5058 61.883 26.695 59.7778 22.9178 56.5022L17.5256 61.8944C22.6936 66.5304 29.4006 69.483 36.7878 69.8782H36.7916Z" fill="url(#paint0_linear_2028_477)"/> 13 - <defs> 14 - <linearGradient id="paint0_linear_2028_477" x1="41.443" y1="11.5372" x2="10.5567" y2="42.4236" gradientUnits="userSpaceOnUse"> 15 - <stop stop-color="#0096FF"/> 16 - <stop offset="1" stop-color="#FF1E56"/> 17 - </linearGradient> 18 - </defs> 19 - </svg>
-10
turbo/my-turborepo/apps/web/public/vercel.svg
··· 1 - <svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg"> 2 - <g clip-path="url(#clip0_977_547)"> 3 - <path fill-rule="evenodd" clip-rule="evenodd" d="M10.5 3L18.5 17H2.5L10.5 3Z" fill="white"/> 4 - </g> 5 - <defs> 6 - <clipPath id="clip0_977_547"> 7 - <rect width="16" height="16" fill="white" transform="translate(2.5 2)"/> 8 - </clipPath> 9 - </defs> 10 - </svg>
-3
turbo/my-turborepo/apps/web/public/window.svg
··· 1 - <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> 2 - <path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 2.5H14.5V12.5C14.5 13.0523 14.0523 13.5 13.5 13.5H2.5C1.94772 13.5 1.5 13.0523 1.5 12.5V2.5ZM0 1H1.5H14.5H16V2.5V12.5C16 13.8807 14.8807 15 13.5 15H2.5C1.11929 15 0 13.8807 0 12.5V2.5V1ZM3.75 5.5C4.16421 5.5 4.5 5.16421 4.5 4.75C4.5 4.33579 4.16421 4 3.75 4C3.33579 4 3 4.33579 3 4.75C3 5.16421 3.33579 5.5 3.75 5.5ZM7 4.75C7 5.16421 6.66421 5.5 6.25 5.5C5.83579 5.5 5.5 5.16421 5.5 4.75C5.5 4.33579 5.83579 4 6.25 4C6.66421 4 7 4.33579 7 4.75ZM8.75 5.5C9.16421 5.5 9.5 5.16421 9.5 4.75C9.5 4.33579 9.16421 4 8.75 4C8.33579 4 8 4.33579 8 4.75C8 5.16421 8.33579 5.5 8.75 5.5Z" fill="#666666"/> 3 - </svg>
-20
turbo/my-turborepo/apps/web/tsconfig.json
··· 1 - { 2 - "extends": "@repo/typescript-config/nextjs.json", 3 - "compilerOptions": { 4 - "plugins": [ 5 - { 6 - "name": "next" 7 - } 8 - ] 9 - }, 10 - "include": [ 11 - "**/*.ts", 12 - "**/*.tsx", 13 - "next-env.d.ts", 14 - "next.config.js", 15 - ".next/types/**/*.ts" 16 - ], 17 - "exclude": [ 18 - "node_modules" 19 - ] 20 - }
-23
turbo/my-turborepo/package.json
··· 1 - { 2 - "name": "my-turborepo", 3 - "private": true, 4 - "scripts": { 5 - "build": "turbo build", 6 - "dev": "turbo dev", 7 - "lint": "turbo lint", 8 - "format": "prettier --write \"**/*.{ts,tsx,md}\"" 9 - }, 10 - "devDependencies": { 11 - "prettier": "^3.2.5", 12 - "turbo": "^2.3.3", 13 - "typescript": "5.5.4" 14 - }, 15 - "engines": { 16 - "node": ">=18" 17 - }, 18 - "packageManager": "npm@10.1.0", 19 - "workspaces": [ 20 - "apps/*", 21 - "packages/*" 22 - ] 23 - }
-3
turbo/my-turborepo/packages/eslint-config/README.md
··· 1 - # `@turbo/eslint-config` 2 - 3 - Collection of internal eslint configurations.
-32
turbo/my-turborepo/packages/eslint-config/base.js
··· 1 - import js from "@eslint/js"; 2 - import eslintConfigPrettier from "eslint-config-prettier"; 3 - import turboPlugin from "eslint-plugin-turbo"; 4 - import tseslint from "typescript-eslint"; 5 - import onlyWarn from "eslint-plugin-only-warn"; 6 - 7 - /** 8 - * A shared ESLint configuration for the repository. 9 - * 10 - * @type {import("eslint").Linter.Config} 11 - * */ 12 - export const config = [ 13 - js.configs.recommended, 14 - eslintConfigPrettier, 15 - ...tseslint.configs.recommended, 16 - { 17 - plugins: { 18 - turbo: turboPlugin, 19 - }, 20 - rules: { 21 - "turbo/no-undeclared-env-vars": "warn", 22 - }, 23 - }, 24 - { 25 - plugins: { 26 - onlyWarn, 27 - }, 28 - }, 29 - { 30 - ignores: ["dist/**"], 31 - }, 32 - ];
-49
turbo/my-turborepo/packages/eslint-config/next.js
··· 1 - import js from "@eslint/js"; 2 - import eslintConfigPrettier from "eslint-config-prettier"; 3 - import tseslint from "typescript-eslint"; 4 - import pluginReactHooks from "eslint-plugin-react-hooks"; 5 - import pluginReact from "eslint-plugin-react"; 6 - import globals from "globals"; 7 - import pluginNext from "@next/eslint-plugin-next"; 8 - import { config as baseConfig } from "./base.js"; 9 - 10 - /** 11 - * A custom ESLint configuration for libraries that use Next.js. 12 - * 13 - * @type {import("eslint").Linter.Config} 14 - * */ 15 - export const nextJsConfig = [ 16 - ...baseConfig, 17 - js.configs.recommended, 18 - eslintConfigPrettier, 19 - ...tseslint.configs.recommended, 20 - { 21 - ...pluginReact.configs.flat.recommended, 22 - languageOptions: { 23 - ...pluginReact.configs.flat.recommended.languageOptions, 24 - globals: { 25 - ...globals.serviceworker, 26 - }, 27 - }, 28 - }, 29 - { 30 - plugins: { 31 - "@next/next": pluginNext, 32 - }, 33 - rules: { 34 - ...pluginNext.configs.recommended.rules, 35 - ...pluginNext.configs["core-web-vitals"].rules, 36 - }, 37 - }, 38 - { 39 - plugins: { 40 - "react-hooks": pluginReactHooks, 41 - }, 42 - settings: { react: { version: "detect" } }, 43 - rules: { 44 - ...pluginReactHooks.configs.recommended.rules, 45 - // React scope no longer necessary with new JSX transform. 46 - "react/react-in-jsx-scope": "off", 47 - }, 48 - }, 49 - ];
-26
turbo/my-turborepo/packages/eslint-config/package.json
··· 1 - { 2 - "name": "@repo/eslint-config", 3 - "version": "0.0.0", 4 - "type": "module", 5 - "private": true, 6 - "exports": { 7 - "./base": "./base.js", 8 - "./next-js": "./next.js", 9 - "./react-internal": "./react-internal.js" 10 - }, 11 - "devDependencies": { 12 - "@eslint/js": "^9.17.0", 13 - "@next/eslint-plugin-next": "^15.1.0", 14 - "@typescript-eslint/eslint-plugin": "^8.15.0", 15 - "@typescript-eslint/parser": "^8.15.0", 16 - "eslint": "^9.15.0", 17 - "eslint-config-prettier": "^9.1.0", 18 - "eslint-plugin-only-warn": "^1.1.0", 19 - "eslint-plugin-react": "^7.37.2", 20 - "eslint-plugin-react-hooks": "^5.0.0", 21 - "eslint-plugin-turbo": "^2.3.0", 22 - "globals": "^15.12.0", 23 - "typescript": "^5.3.3", 24 - "typescript-eslint": "^8.15.0" 25 - } 26 - }
-39
turbo/my-turborepo/packages/eslint-config/react-internal.js
··· 1 - import js from "@eslint/js"; 2 - import eslintConfigPrettier from "eslint-config-prettier"; 3 - import tseslint from "typescript-eslint"; 4 - import pluginReactHooks from "eslint-plugin-react-hooks"; 5 - import pluginReact from "eslint-plugin-react"; 6 - import globals from "globals"; 7 - import { config as baseConfig } from "./base.js"; 8 - 9 - /** 10 - * A custom ESLint configuration for libraries that use React. 11 - * 12 - * @type {import("eslint").Linter.Config} */ 13 - export const config = [ 14 - ...baseConfig, 15 - js.configs.recommended, 16 - eslintConfigPrettier, 17 - ...tseslint.configs.recommended, 18 - pluginReact.configs.flat.recommended, 19 - { 20 - languageOptions: { 21 - ...pluginReact.configs.flat.recommended.languageOptions, 22 - globals: { 23 - ...globals.serviceworker, 24 - ...globals.browser, 25 - }, 26 - }, 27 - }, 28 - { 29 - plugins: { 30 - "react-hooks": pluginReactHooks, 31 - }, 32 - settings: { react: { version: "detect" } }, 33 - rules: { 34 - ...pluginReactHooks.configs.recommended.rules, 35 - // React scope no longer necessary with new JSX transform. 36 - "react/react-in-jsx-scope": "off", 37 - }, 38 - }, 39 - ];
-19
turbo/my-turborepo/packages/typescript-config/base.json
··· 1 - { 2 - "$schema": "https://json.schemastore.org/tsconfig", 3 - "compilerOptions": { 4 - "declaration": true, 5 - "declarationMap": true, 6 - "esModuleInterop": true, 7 - "incremental": false, 8 - "isolatedModules": true, 9 - "lib": ["es2022", "DOM", "DOM.Iterable"], 10 - "module": "NodeNext", 11 - "moduleDetection": "force", 12 - "moduleResolution": "NodeNext", 13 - "noUncheckedIndexedAccess": true, 14 - "resolveJsonModule": true, 15 - "skipLibCheck": true, 16 - "strict": true, 17 - "target": "ES2022" 18 - } 19 - }
-12
turbo/my-turborepo/packages/typescript-config/nextjs.json
··· 1 - { 2 - "$schema": "https://json.schemastore.org/tsconfig", 3 - "extends": "./base.json", 4 - "compilerOptions": { 5 - "plugins": [{ "name": "next" }], 6 - "module": "ESNext", 7 - "moduleResolution": "Bundler", 8 - "allowJs": true, 9 - "jsx": "preserve", 10 - "noEmit": true 11 - } 12 - }
-9
turbo/my-turborepo/packages/typescript-config/package.json
··· 1 - { 2 - "name": "@repo/typescript-config", 3 - "version": "0.0.0", 4 - "private": true, 5 - "license": "MIT", 6 - "publishConfig": { 7 - "access": "public" 8 - } 9 - }
-7
turbo/my-turborepo/packages/typescript-config/react-library.json
··· 1 - { 2 - "$schema": "https://json.schemastore.org/tsconfig", 3 - "extends": "./base.json", 4 - "compilerOptions": { 5 - "jsx": "react-jsx" 6 - } 7 - }
-4
turbo/my-turborepo/packages/ui/eslint.config.js
··· 1 - import { config } from "@repo/eslint-config/react-internal"; 2 - 3 - /** @type {import("eslint").Linter.Config} */ 4 - export default config;
-29
turbo/my-turborepo/packages/ui/package.json
··· 1 - { 2 - "name": "@repo/ui", 3 - "version": "0.0.0", 4 - "type": "module", 5 - "private": true, 6 - "exports": { 7 - "./button": "./src/button.tsx", 8 - "./card": "./src/card.tsx", 9 - "./code": "./src/code.tsx" 10 - }, 11 - "scripts": { 12 - "lint": "eslint . --max-warnings 0", 13 - "generate:component": "turbo gen react-component", 14 - "check-types": "tsc --noEmit" 15 - }, 16 - "devDependencies": { 17 - "@repo/eslint-config": "*", 18 - "@repo/typescript-config": "*", 19 - "@turbo/gen": "^1.12.4", 20 - "@types/node": "^20.11.24", 21 - "@types/react": "18.3.0", 22 - "@types/react-dom": "18.3.1", 23 - "typescript": "5.5.4" 24 - }, 25 - "dependencies": { 26 - "react": "^19.0.0", 27 - "react-dom": "^19.0.0" 28 - } 29 - }
-20
turbo/my-turborepo/packages/ui/src/button.tsx
··· 1 - "use client"; 2 - 3 - import { ReactNode } from "react"; 4 - 5 - interface ButtonProps { 6 - children: ReactNode; 7 - className?: string; 8 - appName: string; 9 - } 10 - 11 - export const Button = ({ children, className, appName }: ButtonProps) => { 12 - return ( 13 - <button 14 - className={className} 15 - onClick={() => alert(`Hello from your ${appName} app!`)} 16 - > 17 - {children} 18 - </button> 19 - ); 20 - };
-27
turbo/my-turborepo/packages/ui/src/card.tsx
··· 1 - import { type JSX } from "react"; 2 - 3 - export function Card({ 4 - className, 5 - title, 6 - children, 7 - href, 8 - }: { 9 - className?: string; 10 - title: string; 11 - children: React.ReactNode; 12 - href: string; 13 - }): JSX.Element { 14 - return ( 15 - <a 16 - className={className} 17 - href={`${href}?utm_source=create-turbo&utm_medium=basic&utm_campaign=create-turbo"`} 18 - rel="noopener noreferrer" 19 - target="_blank" 20 - > 21 - <h2> 22 - {title} <span>-&gt;</span> 23 - </h2> 24 - <p>{children}</p> 25 - </a> 26 - ); 27 - }
-11
turbo/my-turborepo/packages/ui/src/code.tsx
··· 1 - import { type JSX } from "react"; 2 - 3 - export function Code({ 4 - children, 5 - className, 6 - }: { 7 - children: React.ReactNode; 8 - className?: string; 9 - }): JSX.Element { 10 - return <code className={className}>{children}</code>; 11 - }
-8
turbo/my-turborepo/packages/ui/tsconfig.json
··· 1 - { 2 - "extends": "@repo/typescript-config/react-library.json", 3 - "compilerOptions": { 4 - "outDir": "dist" 5 - }, 6 - "include": ["src"], 7 - "exclude": ["node_modules", "dist"] 8 - }
-30
turbo/my-turborepo/packages/ui/turbo/generators/config.ts
··· 1 - import type { PlopTypes } from "@turbo/gen"; 2 - 3 - // Learn more about Turborepo Generators at https://turbo.build/repo/docs/core-concepts/monorepos/code-generation 4 - 5 - export default function generator(plop: PlopTypes.NodePlopAPI): void { 6 - // A simple generator to add a new React component to the internal UI library 7 - plop.setGenerator("react-component", { 8 - description: "Adds a new react component", 9 - prompts: [ 10 - { 11 - type: "input", 12 - name: "name", 13 - message: "What is the name of the component?", 14 - }, 15 - ], 16 - actions: [ 17 - { 18 - type: "add", 19 - path: "src/{{kebabCase name}}.tsx", 20 - templateFile: "templates/component.hbs", 21 - }, 22 - { 23 - type: "append", 24 - path: "package.json", 25 - pattern: /"exports": {(?<insertion>)/g, 26 - template: ' "./{{kebabCase name}}": "./src/{{kebabCase name}}.tsx",', 27 - }, 28 - ], 29 - }); 30 - }
-8
turbo/my-turborepo/packages/ui/turbo/generators/templates/component.hbs
··· 1 - export const {{ pascalCase name }} = ({ children }: { children: React.ReactNode }) => { 2 - return ( 3 - <div> 4 - <h1>{{ pascalCase name }} Component</h1> 5 - {children} 6 - </div> 7 - ); 8 - };
-21
turbo/my-turborepo/turbo.json
··· 1 - { 2 - "$schema": "https://turbo.build/schema.json", 3 - "ui": "tui", 4 - "tasks": { 5 - "build": { 6 - "dependsOn": ["^build"], 7 - "inputs": ["$TURBO_DEFAULT$", ".env*"], 8 - "outputs": [".next/**", "!.next/cache/**"] 9 - }, 10 - "lint": { 11 - "dependsOn": ["^lint"] 12 - }, 13 - "check-types": { 14 - "dependsOn": ["^check-types"] 15 - }, 16 - "dev": { 17 - "cache": false, 18 - "persistent": true 19 - } 20 - } 21 - }