Skip to content

Commit 153414d

Browse files
committed
chore: creating something new
1 parent 9a4b615 commit 153414d

153 files changed

Lines changed: 26522 additions & 10857 deletions

File tree

Some content is hidden

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

.cursor/rule/rule.mdc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
description:
3+
globs:
4+
alwaysApply: true
5+
---
6+
For all designs I ask you to make, have them be beautiful, not cookie cutter. Make webpages that are fully featured and worthy for production.
7+
8+
When using client-side hooks (useState and useEffect) in a component that's being treated as a Server Component by Next.js, always add the "use client" directive at the top of the file.
9+
10+
Do not write code that will trigger this error: "Warning: Extra attributes from the server: %s%s""class,style"
11+
12+
By default, this template supports JSX syntax with Tailwind CSS classes, the shadcn/ui library, React hooks, and Lucide React for icons. Do not install other packages for UI themes, icons, etc unless absolutely necessary or I request them.
13+
14+
Use icons from lucide-react for logos.

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}

.github/FUNDING.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 28 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -2,138 +2,54 @@ name: Deploy to GitHub Pages
22

33
on:
44
push:
5-
branches: [master]
6-
pull_request:
7-
branches: [master]
8-
workflow_dispatch:
5+
branches:
6+
- master # Set your default branch here
7+
workflow_dispatch: # Allows manual triggering
98

109
permissions:
11-
contents: write
10+
contents: read
1211
pages: write
1312
id-token: write
14-
security-events: write
1513

14+
# Allow only one concurrent deployment
1615
concurrency:
17-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
16+
group: "pages"
1817
cancel-in-progress: true
1918

2019
jobs:
21-
security:
22-
name: Security Scan
20+
build:
2321
runs-on: ubuntu-latest
2422
steps:
25-
- uses: actions/checkout@v3
26-
27-
- name: Run CodeQL Analysis
28-
uses: github/codeql-action/init@v2
29-
with:
30-
languages: javascript, typescript
31-
32-
- name: Autobuild
33-
uses: github/codeql-action/autobuild@v2
34-
35-
- name: Perform CodeQL Analysis
36-
uses: github/codeql-action/analyze@v2
37-
38-
build-and-deploy:
39-
needs: security
40-
runs-on: ubuntu-latest
41-
42-
steps:
43-
- name: Checkout
23+
- name: Checkout repository
4424
uses: actions/checkout@v3
4525

4626
- name: Setup Node.js
4727
uses: actions/setup-node@v3
4828
with:
49-
node-version: '20'
29+
node-version: 18
5030
cache: 'npm'
5131

52-
- name: Cache build
53-
uses: actions/cache@v3
54-
with:
55-
path: |
56-
dist
57-
node_modules/.cache
58-
key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json', '**/src/**') }}
59-
restore-keys: |
60-
${{ runner.os }}-build-
32+
- name: Install dependencies
33+
run: npm ci
6134

62-
- name: Install Dependencies
63-
run: |
64-
npm ci
65-
npm install -g html-minifier-terser svgo
66-
if [ $? -ne 0 ]; then
67-
echo "::error::Failed to install dependencies"
68-
exit 1
69-
fi
35+
- name: Build website
36+
run: npm run build
7037

71-
- name: Validate Environment
72-
run: |
73-
if [ -z "${{ secrets.ESHANIZED_GH_TOKEN }}" ]; then
74-
echo "::error::ESHANIZED_GH_TOKEN is not set"
75-
exit 1
76-
fi
38+
- name: Setup Pages
39+
uses: actions/configure-pages@v3
7740

78-
- name: Build
79-
run: |
80-
npm run build
81-
if [ $? -ne 0 ]; then
82-
echo "::error::Build failed"
83-
exit 1
84-
fi
85-
env:
86-
DEPLOY_TARGET: github
87-
NODE_ENV: production
88-
89-
- name: Optimize Assets
90-
run: |
91-
# HTML Minification
92-
html-minifier-terser \
93-
--input-dir dist \
94-
--output-dir dist \
95-
--file-ext html \
96-
--collapse-whitespace \
97-
--remove-comments \
98-
--remove-redundant-attributes \
99-
--remove-script-type-attributes \
100-
--remove-style-link-type-attributes \
101-
--use-short-doctype \
102-
--minify-css true \
103-
--minify-js true \
104-
|| echo "HTML minification failed, continuing..."
105-
106-
# SVG Optimization (only if SVG files exist)
107-
if find dist -name "*.svg" -type f -print -quit | grep -q .; then
108-
svgo -f dist -r
109-
else
110-
echo "No SVG files found to optimize"
111-
fi
112-
113-
- name: Deploy to GitHub Pages
114-
uses: peaceiris/actions-gh-pages@v3
115-
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
41+
- name: Upload artifact
42+
uses: actions/upload-pages-artifact@v2
11643
with:
117-
github_token: ${{ secrets.ESHANIZED_GH_TOKEN }}
118-
publish_dir: ./dist
119-
cname: eshanized.is-a.dev
120-
user_name: 'eshanized'
121-
user_email: 'm.eshanized@gmail.com'
122-
commit_message: 'Deploy to GitHub Pages'
123-
full_commit_message: 'Deploy to GitHub Pages from @ ${{ github.sha }}'
44+
path: ./out
12445

125-
- name: Report Status
126-
if: always() && github.event_name == 'pull_request'
127-
uses: actions/github-script@v6
128-
with:
129-
script: |
130-
const { conclusion } = context;
131-
const message = conclusion === 'success'
132-
? '✅ Deployment successful'
133-
: '❌ Deployment failed';
134-
github.rest.issues.createComment({
135-
issue_number: context.issue.number,
136-
owner: context.repo.owner,
137-
repo: context.repo.repo,
138-
body: message
139-
});
46+
deploy:
47+
environment:
48+
name: github-pages
49+
url: ${{ steps.deployment.outputs.page_url }}
50+
runs-on: ubuntu-latest
51+
needs: build
52+
steps:
53+
- name: Deploy to GitHub Pages
54+
id: deployment
55+
uses: actions/deploy-pages@v2

.gitignore

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,36 @@
1-
# Logs
2-
logs
3-
*.log
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
423
npm-debug.log*
524
yarn-debug.log*
625
yarn-error.log*
7-
pnpm-debug.log*
8-
lerna-debug.log*
926

10-
/node_modules
11-
dist
12-
dist-ssr
13-
*.local
14-
15-
# Editor directories and files
16-
.vscode/*
17-
!.vscode/extensions.json
18-
.idea
19-
.DS_Store
20-
*.suo
21-
*.ntvs*
22-
*.njsproj
23-
*.sln
24-
*.sw?
27+
# local env files
28+
.env
29+
.env*.local
30+
31+
# vercel
32+
.vercel
33+
34+
# typescript
35+
*.tsbuildinfo
36+
next-env.d.ts

.prettierrc

Lines changed: 0 additions & 11 deletions
This file was deleted.

CODE_OF_CONDUCT.md

Lines changed: 0 additions & 128 deletions
This file was deleted.

0 commit comments

Comments
 (0)