Skip to content

Commit f5a51f5

Browse files
authored
Merge pull request #12 from mxurice-rm/refactoring/general
Refactor project structure and added github action
2 parents abd2fa1 + cd036f4 commit f5a51f5

32 files changed

+1713
-1734
lines changed

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Code analysis checks
2+
3+
on:
4+
push:
5+
branches: [ '**' ]
6+
paths: &paths
7+
- 'src/**'
8+
- '*.ts'
9+
- '*.tsx'
10+
- '*.js'
11+
- '*.mjs'
12+
- 'package.json'
13+
- 'pnpm-lock.yaml'
14+
- '.github/workflows/**'
15+
pull_request:
16+
paths: *paths
17+
18+
env:
19+
NODE_VERSION: 22
20+
21+
jobs:
22+
codeanalysis:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- uses: pnpm/action-setup@v4
28+
with:
29+
version: latest
30+
31+
- uses: actions/setup-node@v4
32+
with:
33+
node-version: ${{ env.NODE_VERSION }}
34+
cache: 'pnpm'
35+
36+
- name: Install dependencies
37+
run: pnpm install --frozen-lockfile
38+
39+
- name: Lint
40+
run: pnpm lint
41+
42+
- name: Check formatting
43+
run: pnpm format:check
44+
45+
- name: Typecheck
46+
run: pnpm typecheck

commitlint.config.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

commitlint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const config = { extends: ['@commitlint/config-conventional'] }
2+
3+
export default config

drizzle.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineConfig } from 'drizzle-kit'
22

33
export default defineConfig({
44
dialect: 'postgresql',
5-
schema: './src/database/schema/index.ts',
5+
schema: './src/lib/database/schema/index.ts',
66
out: './drizzle',
77
dbCredentials: {
88
host: process.env.POSTGRES_HOST || 'next-database',

package.json

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -35,46 +35,46 @@
3535
"@radix-ui/react-separator": "^1.1.8",
3636
"@radix-ui/react-slot": "^1.2.4",
3737
"@radix-ui/react-switch": "^1.2.6",
38-
"@tanstack/form-core": "^1.26.0",
39-
"@tanstack/react-form": "^1.23.8",
40-
"better-auth": "^1.4.5",
38+
"@tanstack/form-core": "^1.28.0",
39+
"@tanstack/react-form": "^1.28.0",
40+
"better-auth": "^1.4.18",
4141
"class-variance-authority": "^0.7.1",
4242
"clsx": "^2.1.1",
4343
"dotenv": "^17.2.3",
44-
"drizzle-orm": "^0.44.7",
45-
"lucide-react": "^0.552.0",
46-
"next": "16.0.10",
47-
"pg": "^8.16.3",
48-
"react": "19.2.0",
49-
"react-dom": "19.2.0",
50-
"shadcn": "^3.6.3",
51-
"tailwind-merge": "^3.3.1"
44+
"drizzle-orm": "^0.45.1",
45+
"lucide-react": "^0.563.0",
46+
"next": "16.1.6",
47+
"pg": "^8.18.0",
48+
"react": "19.2.4",
49+
"react-dom": "19.2.4",
50+
"shadcn": "^3.8.3",
51+
"tailwind-merge": "^3.4.0"
5252
},
5353
"devDependencies": {
54-
"@commitlint/cli": "^20.1.0",
55-
"@commitlint/config-conventional": "^20.0.0",
56-
"@tailwindcss/postcss": "^4",
57-
"@types/node": "^20",
58-
"@types/pg": "^8.15.6",
59-
"@types/react": "^19",
60-
"@types/react-dom": "^19",
54+
"@commitlint/cli": "^20.4.1",
55+
"@commitlint/config-conventional": "^20.4.1",
56+
"@tailwindcss/postcss": "^4.1.18",
57+
"@types/node": "^25.2.0",
58+
"@types/pg": "^8.16.0",
59+
"@types/react": "^19.2.11",
60+
"@types/react-dom": "^19.2.3",
6161
"babel-plugin-react-compiler": "1.0.0",
62-
"baseline-browser-mapping": "^2.8.32",
63-
"drizzle-kit": "^0.31.6",
64-
"eslint": "^9",
65-
"eslint-config-next": "16.0.1",
62+
"baseline-browser-mapping": "^2.9.19",
63+
"drizzle-kit": "^0.31.8",
64+
"eslint": "^9.39.2",
65+
"eslint-config-next": "16.1.6",
6666
"eslint-config-prettier": "^10.1.8",
6767
"eslint-plugin-jsx-a11y": "^6.10.2",
68-
"eslint-plugin-prettier": "^5.5.4",
68+
"eslint-plugin-prettier": "^5.5.5",
6969
"eslint-plugin-simple-import-sort": "^12.1.1",
7070
"husky": "^9.1.7",
71-
"lint-staged": "^16.2.4",
72-
"prettier": "^3.6.2",
73-
"prettier-plugin-tailwindcss": "^0.7.1",
74-
"tailwindcss": "^4",
75-
"tsx": "^4.20.6",
71+
"lint-staged": "^16.2.7",
72+
"prettier": "^3.8.1",
73+
"prettier-plugin-tailwindcss": "^0.7.2",
74+
"tailwindcss": "^4.1.18",
75+
"tsx": "^4.21.0",
7676
"tw-animate-css": "^1.4.0",
77-
"typescript": "^5",
78-
"typescript-eslint": "^8.46.3"
77+
"typescript": "^5.9.3",
78+
"typescript-eslint": "^8.54.0"
7979
}
8080
}

0 commit comments

Comments
 (0)