Skip to content

Commit 0f22eab

Browse files
Add roocode.com website to monorepo (#4128)
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
1 parent 6762b57 commit 0f22eab

Some content is hidden

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

83 files changed

+13824
-111
lines changed

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"esbenp.prettier-vscode",
77
"csstools.postcss",
88
"bradlc.vscode-tailwindcss",
9-
"connor4312.esbuild-problem-matchers"
9+
"connor4312.esbuild-problem-matchers",
10+
"yoavbls.pretty-ts-errors"
1011
]
1112
}

apps/website/.env.example

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# PostHog Analytics Configuration
2+
# Replace these values with your actual PostHog API key and host
3+
NEXT_PUBLIC_POSTHOG_KEY=your_posthog_api_key_here
4+
NEXT_PUBLIC_POSTHOG_HOST=https://us.i.posthog.com
5+
6+
# Basin Form Endpoint for Static Form Submissions
7+
# Replace this with your actual Basin form endpoint (e.g., https://usebasin.com/f/your-form-id)
8+
NEXT_PUBLIC_BASIN_ENDPOINT=https://usebasin.com/f/your-form-id-here
9+
10+
TURSO_CONNECTION_URL=libsql://development-roo-code.aws-us-east-1.turso.io
11+
TURSO_AUTH_TOKEN=your-auth-token-here

apps/website/.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
12+
13+
# testing
14+
/coverage
15+
16+
# next.js
17+
/.next/
18+
/out/
19+
20+
# production
21+
/build
22+
23+
# misc
24+
.DS_Store
25+
*.pem
26+
27+
# debug
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
.pnpm-debug.log*
32+
33+
# env files (can opt-in for committing if needed)
34+
.env*
35+
!.env.example
36+
37+
# vercel
38+
.vercel
39+
40+
# typescript
41+
*.tsbuildinfo
42+
next-env.d.ts

apps/website/components.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.js",
8+
"css": "src/app/globals.css",
9+
"baseColor": "slate",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
},
20+
"iconLibrary": "lucide"
21+
}

apps/website/drizzle.config.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { defineConfig } from "drizzle-kit"
2+
3+
const dialect = process.env.BENCHMARKS_DB_PATH ? "sqlite" : "turso"
4+
5+
const dbCredentials = process.env.BENCHMARKS_DB_PATH
6+
? { url: process.env.BENCHMARKS_DB_PATH }
7+
: { url: process.env.TURSO_CONNECTION_URL!, authToken: process.env.TURSO_AUTH_TOKEN! }
8+
9+
export default defineConfig({
10+
out: "./drizzle",
11+
schema: "./src/db/schema.ts",
12+
dialect,
13+
dbCredentials,
14+
})

apps/website/eslint.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { nextJsConfig } from "@roo-code/config-eslint/next-js"
2+
3+
/** @type {import("eslint").Linter.Config} */
4+
export default [...nextJsConfig]

apps/website/next.config.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import type { NextConfig } from "next"
2+
3+
const nextConfig: NextConfig = {
4+
webpack: (config) => {
5+
config.resolve.extensionAlias = { ".js": [".ts", ".tsx", ".js", ".jsx"] }
6+
return config
7+
},
8+
async redirects() {
9+
return [
10+
// Redirect www to non-www
11+
{
12+
source: "/:path*",
13+
has: [{ type: "host", value: "www.roocode.com" }],
14+
destination: "https://roocode.com/:path*",
15+
permanent: true,
16+
},
17+
// Redirect HTTP to HTTPS
18+
{
19+
source: "/:path*",
20+
has: [{ type: "header", key: "x-forwarded-proto", value: "http" }],
21+
destination: "https://roocode.com/:path*",
22+
permanent: true,
23+
},
24+
]
25+
},
26+
}
27+
28+
export default nextConfig

apps/website/package.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"name": "@roo-code/website",
3+
"version": "0.0.0",
4+
"type": "module",
5+
"scripts": {
6+
"lint": "next lint",
7+
"check-types": "tsc --noEmit",
8+
"dev": "next dev",
9+
"build": "next build",
10+
"start": "next start",
11+
"drizzle-kit": "dotenvx run -f .env -- tsx node_modules/drizzle-kit/bin.cjs",
12+
"db:generate": "pnpm drizzle-kit generate",
13+
"db:migrate": "pnpm drizzle-kit migrate",
14+
"db:push": "pnpm drizzle-kit push",
15+
"db:pull": "pnpm drizzle-kit pull",
16+
"db:check": "pnpm drizzle-kit check",
17+
"db:up": "pnpm drizzle-kit up",
18+
"db:studio": "pnpm drizzle-kit studio"
19+
},
20+
"dependencies": {
21+
"@libsql/client": "^0.15.7",
22+
"@radix-ui/react-dialog": "^1.1.14",
23+
"@radix-ui/react-slot": "^1.2.3",
24+
"@roo-code/types": "workspace:^",
25+
"@tanstack/react-query": "^5.79.0",
26+
"class-variance-authority": "^0.7.1",
27+
"clsx": "^2.1.1",
28+
"drizzle-orm": "^0.41.0",
29+
"drizzle-zod": "^0.7.1",
30+
"embla-carousel-auto-scroll": "^8.6.0",
31+
"embla-carousel-autoplay": "^8.6.0",
32+
"embla-carousel-react": "^8.6.0",
33+
"framer-motion": "^12.15.0",
34+
"lucide-react": "^0.479.0",
35+
"next": "15.2.4",
36+
"next-themes": "^0.4.6",
37+
"posthog-js": "^1.248.1",
38+
"react": "^18.3.1",
39+
"react-dom": "^18.3.1",
40+
"react-icons": "^5.5.0",
41+
"recharts": "^2.15.3",
42+
"tailwind-merge": "^3.3.0",
43+
"tailwindcss-animate": "^1.0.7",
44+
"zod": "^3.25.41"
45+
},
46+
"devDependencies": {
47+
"@roo-code/config-eslint": "workspace:^",
48+
"@roo-code/config-typescript": "workspace:^",
49+
"@tailwindcss/typography": "^0.5.16",
50+
"@types/node": "^20.17.54",
51+
"@types/react": "^18.3.23",
52+
"@types/react-dom": "^18.3.7",
53+
"autoprefixer": "^10.4.21",
54+
"drizzle-kit": "^0.30.6",
55+
"postcss": "^8.5.4",
56+
"tailwindcss": "^3.4.17"
57+
}
58+
}

apps/website/postcss.config.cjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}

0 commit comments

Comments
 (0)