Skip to content

Commit 66ac09e

Browse files
committed
init
1 parent 96b06fb commit 66ac09e

29 files changed

+10851
-0
lines changed

.eslintrc.cjs

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
browser: true,
5+
es2020: true,
6+
node: true,
7+
},
8+
extends: [
9+
'eslint:recommended',
10+
'plugin:react/recommended',
11+
'plugin:react/jsx-runtime',
12+
'plugin:react-hooks/recommended',
13+
],
14+
ignorePatterns: ['dist', '.eslintrc.js'],
15+
parserOptions: {
16+
ecmaVersion: 'latest',
17+
sourceType: 'module',
18+
ecmaFeatures: {
19+
jsx: true,
20+
},
21+
},
22+
settings: {
23+
react: {
24+
version: '18.2',
25+
},
26+
},
27+
plugins: ['react-refresh'],
28+
rules: {
29+
'react-refresh/only-export-components': [
30+
'warn',
31+
{ allowConstantExport: true },
32+
],
33+
'react/prop-types': 'off',
34+
'no-unused-vars': 'warn',
35+
'no-console': 'warn',
36+
},
37+
}

.github/workflows/deploy.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
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: Build
27+
run: npm run build
28+
env:
29+
GITHUB_PAGES: true
30+
31+
- name: Setup Pages
32+
uses: actions/configure-pages@v4
33+
34+
- name: Upload artifact
35+
uses: actions/upload-pages-artifact@v3
36+
with:
37+
path: ./dist
38+
39+
deploy:
40+
environment:
41+
name: github-pages
42+
url: ${{ steps.deployment.outputs.page_url }}
43+
runs-on: ubuntu-latest
44+
needs: build
45+
if: github.ref == 'refs/heads/main'
46+
47+
permissions:
48+
pages: write
49+
id-token: write
50+
51+
steps:
52+
- name: Deploy to GitHub Pages
53+
id: deployment
54+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# Dependencies
2+
node_modules/
3+
npm-debug.log*
4+
yarn-debug.log*
5+
yarn-error.log*
6+
pnpm-debug.log*
7+
8+
# Build outputs
9+
dist/
10+
build/
11+
12+
# Environment variables
13+
.env
14+
.env.local
15+
.env.development.local
16+
.env.test.local
17+
.env.production.local
18+
19+
# IDE and editor files
20+
.vscode/
21+
.idea/
22+
*.swp
23+
*.swo
24+
*~
25+
26+
# OS generated files
27+
.DS_Store
28+
.DS_Store?
29+
._*
30+
.Spotlight-V100
31+
.Trashes
32+
ehthumbs.db
33+
Thumbs.db
34+
35+
# Logs
36+
logs
37+
*.log
38+
39+
# Runtime data
40+
pids
41+
*.pid
42+
*.seed
43+
*.pid.lock
44+
45+
# Coverage directory used by tools like istanbul
46+
coverage/
47+
*.lcov
48+
49+
# nyc test coverage
50+
.nyc_output
51+
52+
# Dependency directories
53+
jspm_packages/
54+
55+
# Optional npm cache directory
56+
.npm
57+
58+
# Optional eslint cache
59+
.eslintcache
60+
61+
# Optional REPL history
62+
.node_repl_history
63+
64+
# Output of 'npm pack'
65+
*.tgz
66+
67+
# Yarn Integrity file
68+
.yarn-integrity
69+
70+
# parcel-bundler cache (https://parceljs.org/)
71+
.cache
72+
.parcel-cache
73+
74+
# Next.js build output
75+
.next
76+
77+
# Nuxt.js build / generate output
78+
.nuxt
79+
80+
# Storybook build outputs
81+
.out
82+
.storybook-out
83+
84+
# Temporary folders
85+
tmp/
86+
temp/
87+
88+
# Vite cache
89+
.vite
90+
91+
# TypeScript cache
92+
*.tsbuildinfo

0 commit comments

Comments
 (0)