Skip to content

Commit 1db9dc8

Browse files
authored
Merge pull request #11 from raminr77/feat-new-version-2025
Feat new version 2025
2 parents 3e1a1a4 + 77e71c9 commit 1db9dc8

File tree

171 files changed

+13012
-12804
lines changed

Some content is hidden

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

171 files changed

+13012
-12804
lines changed

.dockerignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
node_modules
2-
Dockerfile
3-
.git
2+
dist
3+
.git
4+
.vscode
5+
*.log
6+
.env

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ indent_size = 2
99
trim_trailing_whitespace = true
1010

1111
[*.md]
12-
trim_trailing_whitespace = false
12+
trim_trailing_whitespace = false

.env.example

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
NODE_ENV=production
2-
REACT_APP_VERSION=0.1.0
3-
REACT_APP_NAME=REACT_SAMPLE_APP
4-
REACT_APP_API_BASE_URL=https://jsonplaceholder.typicode.com/
1+
VITE_API_BASE_URL=
2+
3+
VITE_FIREBASE_APP_ID=
4+
VITE_FIREBASE_API_KEY=
5+
VITE_FIREBASE_VAPID_KEY=
6+
VITE_FIREBASE_PROJECT_ID=
7+
VITE_FIREBASE_AUTH_DOMAIN=
8+
VITE_FIREBASE_STORAGE_BUCKET=
9+
VITE_FIREBASE_MEASUREMENT_ID=
10+
VITE_FIREBASE_MESSAGING_SENDER_ID=

.eslintrc.js

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

.github/workflows/ci-cd.yml

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

.github/workflows/deploy.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Deploy static content to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["main"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
13+
permissions:
14+
pages: write
15+
contents: read
16+
id-token: write
17+
18+
# Allow one concurrent deployment
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: true
22+
23+
jobs:
24+
# Single deploy job since we're just deploying
25+
deploy:
26+
environment:
27+
name: github-pages
28+
url: ${{ steps.deployment.outputs.page_url }}
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
- name: Set up Node
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version: 20
37+
cache: "npm"
38+
- name: Install dependencies
39+
run: npm ci
40+
- name: Run Tests
41+
run: npm run test
42+
- name: Build
43+
run: npm run build
44+
env:
45+
VITE_FIREBASE_APP_ID: ${{ secrets.VITE_FIREBASE_APP_ID }}
46+
VITE_FIREBASE_API_KEY: ${{ secrets.VITE_FIREBASE_API_KEY }}
47+
VITE_FIREBASE_PROJECT_ID: ${{ secrets.VITE_FIREBASE_PROJECT_ID }}
48+
VITE_FIREBASE_AUTH_DOMAIN: ${{ secrets.VITE_FIREBASE_AUTH_DOMAIN }}
49+
VITE_FIREBASE_STORAGE_BUCKET: ${{ secrets.VITE_FIREBASE_STORAGE_BUCKET }}
50+
VITE_FIREBASE_MEASUREMENT_ID: ${{ secrets.VITE_FIREBASE_MEASUREMENT_ID }}
51+
VITE_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.VITE_FIREBASE_MESSAGING_SENDER_ID }}
52+
- name: Setup Pages
53+
uses: actions/configure-pages@v4
54+
- name: Upload artifact
55+
uses: actions/upload-pages-artifact@v3
56+
with:
57+
# Upload dist folder
58+
path: "./dist"
59+
- name: Deploy to GitHub Pages
60+
id: deployment
61+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,35 @@
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-
.env
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
89

9-
# testing
10-
/coverage
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
1114

12-
# production
13-
/build
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?
1425

15-
# misc
26+
# VS Code
27+
.vscode/
28+
.history
1629
.DS_Store
17-
.env.local
18-
.env.development.local
19-
.env.test.local
20-
.env.production.local
2130

22-
package-lock.json
31+
dev-dist/
2332

24-
npm-debug.log*
25-
yarn-debug.log*
26-
yarn-error.log*
33+
yarn.lock
34+
35+
.env

.husky/commit-msg

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

.husky/pre-commit

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
1+
npm run check-types ||
2+
(
3+
echo '❌ Failed Type check.'
4+
false;
5+
)
36

7+
echo '🔎 Formatting your code ...';
8+
9+
npm run lint:style
410
npx lint-staged
5-
yarn run lint:style
11+
12+
echo '✅ Done.'

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.12.0
1+
v22.4.1

0 commit comments

Comments
 (0)