Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 07feb15

Browse files
committed
Added monorepo with tasks package
1 parent 0d45082 commit 07feb15

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+7563
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# Generated
4+
packages/database/generated
5+
packages/database/generated/client/
6+
packages/database/.env
7+
*.db
8+
*.db-journal
9+
10+
# Dependencies
11+
node_modules
12+
.pnp
13+
.pnp.js
14+
15+
# Local env files
16+
.env
17+
.env.local
18+
.env.development.local
19+
.env.test.local
20+
.env.production.local
21+
22+
# Testing
23+
coverage
24+
25+
# Turbo
26+
.turbo
27+
28+
# Vercel
29+
.vercel
30+
31+
# Build Outputs
32+
.next/
33+
out/
34+
build
35+
dist
36+
37+
38+
# Debug
39+
npm-debug.log*
40+
yarn-debug.log*
41+
yarn-error.log*
42+
43+
# Misc
44+
.DS_Store
45+
*.pem
46+
47+
# Prisma migrations
48+
# Uncomment next line if you want to version migrations
49+
# !packages/database/prisma/migrations/
50+
51+
# Trigger.dev
52+
.trigger/
53+
.trigger-dev/

monorepos/turborepo-prisma-tasks-package/.npmrc

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"eslint.workingDirectories": [
3+
{
4+
"mode": "auto"
5+
}
6+
]
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# Turborepo starter
2+
3+
This Turborepo starter is maintained by the Turborepo core team.
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)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
}

0 commit comments

Comments
 (0)