Skip to content

Commit 0ee63a3

Browse files
feat(setup): Merge pull request #3 from lakinmindfire/setup
feat(setup): Fix Structure & integrate frontend setup with shadcn UI
2 parents 989f7ad + 6f8f760 commit 0ee63a3

Some content is hidden

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

50 files changed

+7242
-0
lines changed

β€Ž.editorconfigβ€Ž

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# .editorconfig
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.json]
13+
indent_size = 4

β€Ž.eslintrc.cjsβ€Ž

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
plugins: ['@typescript-eslint'],
5+
extends: [
6+
'eslint:recommended',
7+
'plugin:@typescript-eslint/recommended',
8+
],
9+
rules: {
10+
'@typescript-eslint/explicit-module-boundary-types': 'off',
11+
},
12+
ignorePatterns: ['dist', 'node_modules', '**/*.js'],
13+
};
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
if: github.ref == 'refs/heads/main'
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
token: ${{ secrets.GITHUB_TOKEN }}
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version-file: '.nvmrc'
22+
registry-url: 'https://registry.npmjs.org'
23+
24+
- name: Setup pnpm
25+
uses: pnpm/action-setup@v2
26+
with:
27+
version: 8
28+
29+
- name: Install dependencies
30+
run: pnpm install --frozen-lockfile
31+
32+
- name: Build packages
33+
run: pnpm turbo build
34+
35+
- name: Run tests
36+
run: pnpm turbo test
37+
38+
- name: Release
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
42+
run: pnpm semantic-release

β€Ž.gitignoreβ€Ž

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Dependencies
2+
node_modules
3+
packages/core/node_modules
4+
.pnp
5+
.pnp.js
6+
7+
# Testing
8+
coverage
9+
.nyc_output
10+
11+
# Build outputs
12+
dist
13+
build
14+
out
15+
.next
16+
.nuxt
17+
.cache
18+
.turbo
19+
packages/core/dist
20+
21+
22+
# Environment files
23+
.env
24+
.env.local
25+
.env.*.local
26+
.env.development.local
27+
.env.test.local
28+
.env.production.local
29+
30+
# Debug logs
31+
npm-debug.log*
32+
yarn-debug.log*
33+
yarn-error.log*
34+
pnpm-debug.log*
35+
36+
# Editor directories and files
37+
.idea
38+
.DS_Store
39+
*.suo
40+
*.ntvs*
41+
*.njsproj
42+
*.sln
43+
*.sw?
44+
.vscode/*
45+
!.vscode/extensions.json
46+
!.vscode/settings.json
47+
48+
# TypeScript
49+
*.tsbuildinfo
50+
51+
# Vercel
52+
.vercel
53+
54+
# Package manager specific
55+
.pnpm-store/
56+
57+
# Temporary files
58+
*.log
59+
*.tmp
60+
.temp
61+
.tmp
62+
63+
# OS generated files
64+
.DS_Store
65+
.DS_Store?
66+
._*
67+
.Spotlight-V100
68+
.Trashes
69+
ehthumbs.db
70+
Thumbs.db
71+
72+
# Do NOT ignore pnpm-lock.yaml
73+
!pnpm-lock.yaml

β€Ž.husky/commit-msgβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
echo "πŸ“ Validating commit message..."
5+
npx --no -- commitlint --edit $1

β€Ž.husky/pre-commitβ€Ž

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
echo "πŸ” Running pre-commit checks..."
5+
6+
# Run lint-staged
7+
npx lint-staged
8+
9+
# Type checking
10+
echo "πŸ“ Type checking..."
11+
pnpm turbo type-check
12+
13+
# Run tests for changed packages
14+
echo "πŸ§ͺ Running tests..."
15+
pnpm turbo test --filter='...[HEAD~1]'
16+
17+
echo "βœ… Pre-commit checks completed"

β€Ž.husky/pre-pushβ€Ž

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
echo "πŸš€ Running pre-push checks..."
5+
6+
# Build all packages
7+
echo "πŸ”¨ Building packages..."
8+
pnpm turbo build
9+
10+
# Run full test suite
11+
echo "πŸ§ͺ Running full test suite..."
12+
pnpm turbo test
13+
14+
# Check formatting
15+
echo "πŸ’„ Checking code formatting..."
16+
pnpm format:check
17+
18+
echo "βœ… Pre-push checks completed"

β€Ž.nvmrcβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22.17.0

β€Ž.prettierignoreβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
dist
3+
build
4+
*.log

β€Ž.prettierrcβ€Ž

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

0 commit comments

Comments
Β (0)