Skip to content

Commit 2a788e1

Browse files
committed
feat: initial commit with complete React hooks learning platform
1 parent 51de7ce commit 2a788e1

39 files changed

+15096
-2981
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI Pipeline
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
ci:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '18'
21+
cache: 'npm'
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Run linter
27+
run: npm run lint
28+
29+
- name: Run tests
30+
run: npm test
31+
32+
- name: Build
33+
run: npm run build
34+
35+
- name: Check build output
36+
run: |
37+
echo "Build completed successfully!"
38+
echo "Build directory contents:"
39+
ls -la dist/

.gitignore

Lines changed: 122 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,130 @@
1-
# Logs
2-
logs
3-
*.log
1+
# Dependencies
2+
node_modules/
43
npm-debug.log*
54
yarn-debug.log*
65
yarn-error.log*
76
pnpm-debug.log*
87
lerna-debug.log*
98

10-
node_modules
11-
dist
12-
dist-ssr
13-
*.local
9+
# Build outputs
10+
dist/
11+
build/
12+
*.tsbuildinfo
13+
14+
# Environment variables
15+
.env
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
# IDE and editor files
22+
.vscode/
23+
.idea/
24+
*.swp
25+
*.swo
26+
*~
1427

15-
# Editor directories and files
16-
.vscode/*
17-
!.vscode/extensions.json
18-
.idea
28+
# OS generated files
1929
.DS_Store
20-
*.suo
21-
*.ntvs*
22-
*.njsproj
23-
*.sln
24-
*.sw?
30+
.DS_Store?
31+
._*
32+
.Spotlight-V100
33+
.Trashes
34+
ehthumbs.db
35+
Thumbs.db
36+
37+
# Logs
38+
logs
39+
*.log
40+
41+
# Runtime data
42+
pids
43+
*.pid
44+
*.seed
45+
*.pid.lock
46+
47+
# Coverage directory used by tools like istanbul
48+
coverage/
49+
*.lcov
50+
51+
# nyc test coverage
52+
.nyc_output
53+
54+
# Dependency directories
55+
jspm_packages/
56+
57+
# Optional npm cache directory
58+
.npm
59+
60+
# Optional eslint cache
61+
.eslintcache
62+
63+
# Optional stylelint cache
64+
.stylelintcache
65+
66+
# Microbundle cache
67+
.rpt2_cache/
68+
.rts2_cache_cjs/
69+
.rts2_cache_es/
70+
.rts2_cache_umd/
71+
72+
# Optional REPL history
73+
.node_repl_history
74+
75+
# Output of 'npm pack'
76+
*.tgz
77+
78+
# Yarn Integrity file
79+
.yarn-integrity
80+
81+
# parcel-bundler cache (https://parceljs.org/)
82+
.cache
83+
.parcel-cache
84+
85+
# Next.js build output
86+
.next
87+
88+
# Nuxt.js build / generate output
89+
.nuxt
90+
91+
# Storybook build outputs
92+
.out
93+
.storybook-out
94+
95+
# Temporary folders
96+
tmp/
97+
temp/
98+
99+
# Vite
100+
.vite/
101+
102+
# Vitest
103+
.vitest/
104+
105+
# Playwright
106+
test-results/
107+
playwright-report/
108+
playwright/.cache/
109+
110+
# Sentry
111+
.sentryclirc
112+
113+
# Local Netlify folder
114+
.netlify
115+
116+
# Vercel
117+
.vercel
118+
119+
# Firebase
120+
.firebase/
121+
firebase-debug.log
122+
firestore-debug.log
123+
ui-debug.log
124+
125+
# Docker
126+
.dockerignore
127+
128+
# Backup files
129+
*.bak
130+
*.backup

.prettierrc

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

0 commit comments

Comments
 (0)