Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit eaa9b37

Browse files
turbobot-tempvinodnextcoder
authored andcommitted
feat(create-turbo): apply official-starter transform
1 parent d10cade commit eaa9b37

Some content is hidden

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

85 files changed

+11801
-0
lines changed

‎kitchen-sink-project/.gitignore‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.DS_Store
2+
node_modules
3+
.turbo
4+
*.log
5+
.next
6+
dist
7+
dist-ssr
8+
*.local
9+
.env
10+
.cache
11+
server/dist
12+
public/dist

‎kitchen-sink-project/.npmrc‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
auto-install-peers = true

‎kitchen-sink-project/README.md‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Turborepo kitchen sink starter
2+
3+
This is an official starter Turborepo with multiple meta-frameworks all working in harmony and sharing packages.
4+
5+
This example also shows how to use [Workspace Configurations](https://turbo.build/repo/docs/core-concepts/monorepos/configuring-workspaces).
6+
7+
## Using this example
8+
9+
Run the following command:
10+
11+
```sh
12+
npx create-turbo@latest -e kitchen-sink
13+
```
14+
15+
## What's inside?
16+
17+
This Turborepo includes the following packages and apps:
18+
19+
### Apps and Packages
20+
21+
- `api`: an [Express](https://expressjs.com/) server
22+
- `storefront`: a [Next.js](https://nextjs.org/) app
23+
- `admin`: a [Vite](https://vitejs.dev/) single page app
24+
- `blog`: a [Remix](https://remix.run/) blog
25+
- `@repo/eslint-config`: ESLint configurations used throughout the monorepo
26+
- `@repo/jest-presets`: Jest configurations
27+
- `@repo/logger`: isomorphic logger (a small wrapper around console.log)
28+
- `@repo/ui`: a dummy React UI library (which contains `<CounterButton>` and `<Link>` components)
29+
- `@repo/typescript-config`: tsconfig.json's used throughout the monorepo
30+
31+
Each package and app is 100% [TypeScript](https://www.typescriptlang.org/).
32+
33+
### Utilities
34+
35+
This Turborepo has some additional tools already setup for you:
36+
37+
- [TypeScript](https://www.typescriptlang.org/) for static type checking
38+
- [ESLint](https://eslint.org/) for code linting
39+
- [Jest](https://jestjs.io) test runner for all things JavaScript
40+
- [Prettier](https://prettier.io) for code formatting
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/** @type {import("eslint").Linter.Config} */
2+
module.exports = {
3+
extends: ["@repo/eslint-config/react.js"],
4+
parser: "@typescript-eslint/parser",
5+
parserOptions: {
6+
project: true,
7+
},
8+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Admin | Kitchen Sink</title>
7+
</head>
8+
<body>
9+
<div id="root"></div>
10+
<script type="module" src="/src/main.tsx"></script>
11+
</body>
12+
</html>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "admin",
3+
"version": "0.0.0",
4+
"private": true,
5+
"scripts": {
6+
"build": "vite build",
7+
"clean": "rm -rf dist",
8+
"dev": "vite --host 0.0.0.0 --port 3001 --clearScreen false",
9+
"typecheck": "tsc --noEmit",
10+
"lint": "eslint src/"
11+
},
12+
"dependencies": {
13+
"react": "^18.2.0",
14+
"react-dom": "^18.2.0",
15+
"@repo/ui": "workspace:*"
16+
},
17+
"devDependencies": {
18+
"@types/react": "^18.2.62",
19+
"@types/react-dom": "^18.2.19",
20+
"@vitejs/plugin-react": "^4.2.1",
21+
"@repo/eslint-config": "workspace:*",
22+
"@repo/typescript-config": "workspace:*",
23+
"typescript": "^5.3.3",
24+
"vite": "^5.1.4"
25+
}
26+
}
364 KB
Binary file not shown.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import React from "react";
2+
import "./styles.css";
3+
import { CounterButton, Link } from "@repo/ui";
4+
5+
function App(): JSX.Element {
6+
return (
7+
<div className="container">
8+
<h1 className="title">
9+
Admin <br />
10+
<span>Kitchen Sink</span>
11+
</h1>
12+
<CounterButton />
13+
<p className="description">
14+
Built With{" "}
15+
<Link href="https://turbo.build/repo" newTab>
16+
Turborepo
17+
</Link>
18+
{" & "}
19+
<Link href="https://vitejs.dev/" newTab>
20+
Vite
21+
</Link>
22+
</p>
23+
</div>
24+
);
25+
}
26+
27+
export default App;
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
.container {
2+
min-height: 100vh;
3+
display: flex;
4+
flex-direction: column;
5+
align-items: center;
6+
justify-content: center;
7+
gap: 1.5rem;
8+
max-width: 100%;
9+
margin: 0 auto;
10+
padding: 0 16px;
11+
text-align: center;
12+
}
13+
14+
.title {
15+
font-size: 3rem;
16+
font-weight: 700;
17+
margin: 0;
18+
}
19+
20+
.title span {
21+
display: inline-block;
22+
background-image: linear-gradient(to right, #3b82f6, #ef4444);
23+
-webkit-background-clip: text;
24+
background-clip: text;
25+
color: transparent;
26+
}
27+
28+
.description {
29+
color: #9ca3af;
30+
font-weight: 500;
31+
}
32+
33+
.description a {
34+
color: #3b82f6;
35+
text-decoration: none;
36+
}
37+
38+
.description a:hover {
39+
text-decoration: underline;
40+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
html {
2+
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
3+
Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
4+
-webkit-text-size-adjust: 100%;
5+
-webkit-font-smoothing: antialiased;
6+
-moz-osx-font-smoothing: grayscale;
7+
-webkit-tap-highlight-color: transparent;
8+
line-height: 1.5;
9+
tab-size: 4;
10+
}
11+
12+
body {
13+
margin: 0;
14+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /