Skip to content

Commit 8004b36

Browse files
committed
Add roocode.com website to monorepo
1 parent 6762b57 commit 8004b36

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

+16101
-22
lines changed

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: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { defineConfig } from "drizzle-kit"
2+
3+
if ((!process.env.TURSO_CONNECTION_URL || !process.env.TURSO_AUTH_TOKEN) && !process.env.BENCHMARKS_DB_PATH) {
4+
throw new Error("TURSO_CONNECTION_URL and TURSO_AUTH_TOKEN or BENCHMARKS_DB_PATH must be set")
5+
}
6+
7+
const dialect = process.env.BENCHMARKS_DB_PATH ? "sqlite" : "turso"
8+
9+
const dbCredentials = process.env.BENCHMARKS_DB_PATH
10+
? { url: process.env.BENCHMARKS_DB_PATH }
11+
: { url: process.env.TURSO_CONNECTION_URL!, authToken: process.env.TURSO_AUTH_TOKEN! }
12+
13+
export default defineConfig({
14+
out: "./drizzle",
15+
schema: "./src/db/schema.ts",
16+
dialect,
17+
dbCredentials,
18+
})

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: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import type { NextConfig } from "next"
2+
3+
const nextConfig: NextConfig = {
4+
/* config options here */
5+
async redirects() {
6+
return [
7+
// Redirect www to non-www
8+
{
9+
source: "/:path*",
10+
has: [
11+
{
12+
type: "host",
13+
value: "www.roocode.com",
14+
},
15+
],
16+
destination: "https://roocode.com/:path*",
17+
permanent: true,
18+
},
19+
// Redirect HTTP to HTTPS
20+
{
21+
source: "/:path*",
22+
has: [
23+
{
24+
type: "header",
25+
key: "x-forwarded-proto",
26+
value: "http",
27+
},
28+
],
29+
destination: "https://roocode.com/:path*",
30+
permanent: true,
31+
},
32+
]
33+
},
34+
}
35+
36+
export default nextConfig

apps/website/package.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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.2",
22+
"@radix-ui/react-dialog": "^1.1.6",
23+
"@radix-ui/react-slot": "^1.1.2",
24+
"@tanstack/react-query": "^5.71.10",
25+
"class-variance-authority": "^0.7.1",
26+
"clsx": "^2.1.1",
27+
"drizzle-orm": "^0.41.0",
28+
"drizzle-zod": "^0.7.1",
29+
"embla-carousel-auto-scroll": "^8.6.0",
30+
"embla-carousel-autoplay": "^8.6.0",
31+
"embla-carousel-react": "^8.6.0",
32+
"framer-motion": "^12.6.3",
33+
"lucide-react": "^0.479.0",
34+
"next": "15.2.4",
35+
"next-themes": "^0.4.6",
36+
"posthog-js": "^1.234.9",
37+
"react": "^19.1.0",
38+
"react-dom": "^19.1.0",
39+
"react-icons": "^5.5.0",
40+
"recharts": "^2.15.2",
41+
"tailwind-merge": "^3.1.0",
42+
"tailwindcss-animate": "^1.0.7",
43+
"zod": "^3.24.2"
44+
},
45+
"devDependencies": {
46+
"@roo-code/config-eslint": "workspace:^",
47+
"@roo-code/config-typescript": "workspace:^",
48+
"@tailwindcss/typography": "^0.5.16",
49+
"@types/node": "^20.17.30",
50+
"@types/react": "^19.1.0",
51+
"@types/react-dom": "^19.1.1",
52+
"autoprefixer": "^10.4.21",
53+
"drizzle-kit": "^0.30.6",
54+
"postcss": "^8.5.3",
55+
"tailwindcss": "^3.4.17"
56+
}
57+
}

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)