Skip to content

Commit 4694edd

Browse files
Update
0 parents  commit 4694edd

Some content is hidden

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

48 files changed

+7809
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 22
21+
cache: 'npm'
22+
23+
# Clean install with explicit dependencies
24+
- name: Install Dependencies
25+
run: |
26+
rm -rf node_modules package-lock.json
27+
npm install
28+
29+
npm install clsx react-draggable tailwind-merge core-js core-js-pure moment is-retina charenc is-buffer emoji-mart --save
30+
31+
# Install dev dependencies explicitly
32+
npm install -D @vitejs/plugin-react vite @types/react @types/react-dom gh-pages tailwindcss @tailwindcss/forms autoprefixer postcss mocha webpack
33+
34+
# Install runtime dependencies explicitly
35+
npm install react-toastify firebase peerjs uuid lucide-react @mui/material @emotion/react @emotion/styled
36+
37+
# Install react-avatar with necessary peer dependency
38+
npm install react-avatar prop-types --save vite-plugin-commonjs --save-dev
39+
40+
npm install vite@latest emoji-mart@latest --save-dev emoji-picker-react
41+
42+
# Generate config files
43+
- name: Generate Config Files
44+
run: |
45+
cat > postcss.config.js << 'EOL'
46+
module.exports = {
47+
plugins: {
48+
tailwindcss: {},
49+
autoprefixer: {},
50+
}
51+
};
52+
EOL
53+
54+
cat > tailwind.config.js << 'EOL'
55+
module.exports = {
56+
content: [
57+
'./src/**/*.{js,jsx,ts,tsx}',
58+
'./index.html',
59+
],
60+
theme: {
61+
extend: {},
62+
},
63+
plugins: [
64+
require('@tailwindcss/forms')({
65+
strategy: 'class',
66+
}),
67+
],
68+
};
69+
EOL
70+
71+
# Build with error handling and increased memory limit
72+
- name: Build
73+
run: |
74+
npm run build || (echo "Build failed" && exit 1)
75+
76+
# Upload for GitHub Pages
77+
- name: Upload Pages Artifact
78+
uses: actions/upload-pages-artifact@v3
79+
with:
80+
path: dist
81+
82+
deploy:
83+
environment:
84+
name: github-pages
85+
url: ${{ steps.deployment.outputs.page_url }}
86+
needs: build
87+
runs-on: ubuntu-latest
88+
steps:
89+
- name: Deploy to GitHub Pages
90+
id: deployment
91+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# dependencies
2+
/node_modules
3+
/.pnp
4+
.pnp.js
5+
6+
# testing
7+
/coverage
8+
9+
# production
10+
/build
11+
12+
# misc
13+
.DS_Store
14+
.env
15+
.env.local
16+
.env.development.local
17+
.env.test.local
18+
.env.production.local
19+
20+
npm-debug.log*
21+
yarn-debug.log*
22+
yarn-error.log*
23+
24+
# IDE
25+
.idea/
26+
.vscode/
27+
*.swp
28+
*.swo

0 commit comments

Comments
 (0)