Skip to content

Clone any website with one command using AI coding agents

Add CI quality gates and local check scripts

rishikeshmanohardc7fe698b535
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000..373c9c97
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,36 @@
+name: CI
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+
+jobs:
+ quality:
+ runs-on: ubuntu-latest
+ timeout-minutes: 15
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: 20
+ cache: npm
+
+ - name: Install dependencies
+ run: npm ci
+
+ - name: Lint
+ run: npm run lint
+
+ - name: Type check
+ run: npm run typecheck
+
+ - name: Build
+ run: npm run build
diff --git a/.nvmrc b/.nvmrc
new file mode 100644
index 00000000..209e3ef4
--- /dev/null
+++ b/.nvmrc
@@ -0,0 +1 @@
+20
diff --git a/README.md b/README.md
index bf068790..48eac4de 100644
--- a/README.md
+++ b/README.md
@@ -110,6 +110,8 @@ GEMINI.md # Gemini CLI config (imports AGENTS.md)
npm run dev # Start dev server
npm run build # Production build
npm run lint # ESLint check
+npm run typecheck # TypeScript check
+npm run check # Run lint + typecheck + build
```
## Updating for Other Platforms
diff --git a/package.json b/package.json
index f6befeb2..ccc30aba 100644
--- a/package.json
+++ b/package.json
@@ -30,7 +30,9 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
- "lint": "eslint"
+ "lint": "eslint",
+ "typecheck": "tsc --noEmit",
+ "check": "npm run lint && npm run typecheck && npm run build"
},
"dependencies": {
"@base-ui/react": "^1.3.0",