Skip to content

Commit 9808666

Browse files
committed
feat: plan cursor MVP version
1 parent fa1e3f6 commit 9808666

64 files changed

Lines changed: 19080 additions & 2804 deletions

Some content is hidden

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

.env.example

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# API Keys (Required to enable respective provider)
2+
ANTHROPIC_API_KEY="your_anthropic_api_key_here" # Required: Format: sk-ant-api03-...
3+
PERPLEXITY_API_KEY="your_perplexity_api_key_here" # Optional: Format: pplx-...
4+
OPENAI_API_KEY="your_openai_api_key_here" # Optional, for OpenAI models. Format: sk-proj-...
5+
GOOGLE_API_KEY="your_google_api_key_here" # Optional, for Google Gemini models.
6+
MISTRAL_API_KEY="your_mistral_key_here" # Optional, for Mistral AI models.
7+
XAI_API_KEY="YOUR_XAI_KEY_HERE" # Optional, for xAI AI models.
8+
GROQ_API_KEY="YOUR_GROQ_KEY_HERE" # Optional, for Groq models.
9+
OPENROUTER_API_KEY="YOUR_OPENROUTER_KEY_HERE" # Optional, for OpenRouter models.
10+
AZURE_OPENAI_API_KEY="your_azure_key_here" # Optional, for Azure OpenAI models (requires endpoint in .taskmaster/config.json).
11+
OLLAMA_API_KEY="your_ollama_api_key_here" # Optional: For remote Ollama servers that require authentication.
12+
GITHUB_API_KEY="your_github_api_key_here" # Optional: For GitHub import/export features. Format: ghp_... or github_pat_...

.eslintrc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": [
3+
"next/core-web-vitals",
4+
"next/typescript"
5+
],
6+
"rules": {
7+
"react/no-unescaped-entities": "off",
8+
"@next/next/no-img-element": "error",
9+
"prefer-const": "error",
10+
"no-console": ["warn", { "allow": ["error", "warn"] }]
11+
}
12+
}
13+

.github/workflows/lighthouse.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Lighthouse CI
2+
3+
on:
4+
pull_request:
5+
branches: [main, develop]
6+
push:
7+
branches: [main]
8+
9+
jobs:
10+
lighthouse:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: '20'
19+
cache: 'npm'
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Build Next.js
25+
run: npm run build
26+
env:
27+
NEXT_PUBLIC_GA_ID: ${{ secrets.NEXT_PUBLIC_GA_ID }}
28+
NEXT_PUBLIC_SITE_URL: https://blog.klyx.fr
29+
NEXT_PUBLIC_CALENDLY_URL: https://calendly.com/klyx-studio/call-solution-site-internet
30+
NEXT_PUBLIC_CONTACT_EMAIL: contact@klyx.fr
31+
NEXT_PUBLIC_MAIN_SITE_URL: https://klyx.fr
32+
33+
- name: Start Next.js server
34+
run: npm run start &
35+
env:
36+
NEXT_PUBLIC_GA_ID: ${{ secrets.NEXT_PUBLIC_GA_ID }}
37+
NEXT_PUBLIC_SITE_URL: https://blog.klyx.fr
38+
NEXT_PUBLIC_CALENDLY_URL: https://calendly.com/klyx-studio/call-solution-site-internet
39+
NEXT_PUBLIC_CONTACT_EMAIL: contact@klyx.fr
40+
NEXT_PUBLIC_MAIN_SITE_URL: https://klyx.fr
41+
42+
- name: Wait for server
43+
run: npx wait-on http://localhost:3000 --timeout 60000
44+
45+
- name: Run Lighthouse CI
46+
uses: treosh/lighthouse-ci-action@v10
47+
with:
48+
urls: |
49+
http://localhost:3000
50+
http://localhost:3000/about
51+
http://localhost:3000/contact
52+
budgetPath: ./.lighthouserc.json
53+
uploadArtifacts: true
54+
temporaryPublicStorage: true
55+
56+
- name: Comment PR with results
57+
if: github.event_name == 'pull_request'
58+
uses: actions/github-script@v7
59+
with:
60+
script: |
61+
const results = require('./.lighthouseci/manifest.json');
62+
const comment = `## ⚡ Lighthouse CI Results\n\nPerformance scores are available in the artifacts.`;
63+
github.rest.issues.createComment({
64+
issue_number: context.issue.number,
65+
owner: context.repo.owner,
66+
repo: context.repo.repo,
67+
body: comment
68+
});
69+

.gitignore

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,11 @@
33
# dependencies
44
/node_modules
55
/.pnp
6-
.pnp.*
7-
.yarn/*
8-
!.yarn/patches
9-
!.yarn/plugins
10-
!.yarn/releases
11-
!.yarn/versions
6+
.pnp.js
127

138
# testing
149
/coverage
10+
/.lighthouseci
1511

1612
# next.js
1713
/.next/
@@ -28,10 +24,10 @@
2824
npm-debug.log*
2925
yarn-debug.log*
3026
yarn-error.log*
31-
.pnpm-debug.log*
3227

33-
# env files (can opt-in for committing if needed)
34-
.env*
28+
# local env files
29+
.env*.local
30+
.env
3531

3632
# vercel
3733
.vercel
@@ -40,24 +36,5 @@ yarn-error.log*
4036
*.tsbuildinfo
4137
next-env.d.ts
4238

43-
# Logs
44-
logs
45-
*.log
46-
dev-debug.log
47-
# Dependency directories
48-
node_modules/
49-
# Environment variables
50-
.env
51-
# Editor directories and files
52-
.idea
53-
.vscode
54-
*.suo
55-
*.ntvs*
56-
*.njsproj
57-
*.sln
58-
*.sw?
59-
# OS specific
60-
61-
# Task files
62-
# tasks.json
63-
# tasks/
39+
# npm cache
40+
.npm-cache

.lighthouserc.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"ci": {
3+
"collect": {
4+
"numberOfRuns": 3,
5+
"startServerCommand": "npm run start",
6+
"url": [
7+
"http://localhost:3000",
8+
"http://localhost:3000/about",
9+
"http://localhost:3000/contact"
10+
]
11+
},
12+
"assert": {
13+
"preset": "lighthouse:recommended",
14+
"assertions": {
15+
"categories:performance": ["error", { "minScore": 0.9 }],
16+
"categories:accessibility": ["error", { "minScore": 0.9 }],
17+
"categories:best-practices": ["error", { "minScore": 0.9 }],
18+
"categories:seo": ["error", { "minScore": 0.95 }],
19+
"first-contentful-paint": ["error", { "maxNumericValue": 2000 }],
20+
"largest-contentful-paint": ["error", { "maxNumericValue": 2500 }],
21+
"cumulative-layout-shift": ["error", { "maxNumericValue": 0.1 }],
22+
"total-blocking-time": ["error", { "maxNumericValue": 300 }],
23+
"speed-index": ["error", { "maxNumericValue": 3000 }]
24+
}
25+
},
26+
"upload": {
27+
"target": "temporary-public-storage"
28+
}
29+
}
30+
}
31+

.prettierrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "es5",
4+
"singleQuote": true,
5+
"printWidth": 100,
6+
"tabWidth": 2,
7+
"useTabs": false,
8+
"arrowParens": "always",
9+
"endOfLine": "lf"
10+
}
11+

0 commit comments

Comments
 (0)