Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
pull_request:
branches: [main]
push:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
quality:
name: Quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- run: pnpm install --frozen-lockfile

- name: Lint
run: pnpm lint

- name: Type check
run: pnpm exec tsc --noEmit

- name: Registry build
run: pnpm registry:build

- name: Build
run: pnpm build
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm exec lint-staged && pnpm exec tsc --noEmit
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const compat = new FlatCompat({
});

const eslintConfig = [
{ ignores: [".next/", "next-env.d.ts"] },
...compat.extends("next/core-web-vitals", "next/typescript"),
];

Expand Down
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"dev": "tsx scripts/generate-preview-imports.ts && next dev",
"build": "shadcn build && tsx scripts/generate-preview-imports.ts && next build",
"start": "next start",
"lint": "next lint",
"lint": "eslint .",
"registry:build": "shadcn build",
"previews:generate": "tsx scripts/generate-preview-imports.ts"
"previews:generate": "tsx scripts/generate-preview-imports.ts",
"prepare": "husky"
},
"dependencies": {
"@radix-ui/react-label": "^2.1.7",
Expand Down Expand Up @@ -39,10 +40,15 @@
"eslint": "^9.32.0",
"eslint-config-next": "15.3.1",
"html-to-image": "^1.11.13",
"husky": "^9.1.7",
"lint-staged": "^16.3.3",
"tailwindcss": "^4.1.11",
"tsx": "^4.21.0",
"typescript": "^5.9.2"
},
"lint-staged": {
"*.{ts,tsx}": "eslint --max-warnings 0"
},
"pnpm": {
"overrides": {
"@types/react": "19.1.2",
Expand Down
Loading
Loading