Skip to content

Commit c428f07

Browse files
author
Ravi
committed
initial commit
0 parents  commit c428f07

20 files changed

Lines changed: 8675 additions & 0 deletions

.eslintrc.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"node": true,
5+
"browser": true
6+
},
7+
"parserOptions": {
8+
"ecmaFeatures": {
9+
"jsx": true
10+
},
11+
"ecmaVersion": "latest",
12+
"sourceType": "module"
13+
},
14+
"extends": ["plugin:react/recommended", "plugin:react/jsx-runtime"],
15+
"rules": {
16+
"react/react-in-jsx-scope": "off",
17+
"semi": [2, "always"]
18+
},
19+
"settings": {
20+
"react": {
21+
"version": "detect"
22+
}
23+
}
24+
}
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Website Deployment
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
lint:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Get code
11+
uses: actions/checkout@v3
12+
- name: Cache dependencies
13+
id: cache
14+
uses: actions/cache@v3
15+
with:
16+
path: ~/.npm
17+
key: deps-node-modules-${{ hashFiles('**/package-lock.json') }}
18+
- name: Install dependencies
19+
run: npm ci
20+
- name: Lint code
21+
run: npm run lint
22+
test:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Get code
26+
uses: actions/checkout@v3
27+
- name: Cache dependencies
28+
id: cache
29+
uses: actions/cache@v3
30+
with:
31+
path: ~/.npm
32+
key: deps-node-modules-${{ hashFiles('**/package-lock.json') }}
33+
- name: Install dependencies
34+
run: npm ci
35+
- name: Test code
36+
run: npm run test
37+
- name: Upload test report
38+
uses: actions/upload-artifact@v3
39+
with:
40+
name: test-report
41+
path: test.json
42+
build:
43+
needs: test
44+
runs-on: ubuntu-latest
45+
steps:
46+
- name: Get code
47+
uses: actions/checkout@v3
48+
- name: Cache dependencies
49+
id: cache
50+
uses: actions/cache@v3
51+
with:
52+
path: ~/.npm
53+
key: deps-node-modules-${{ hashFiles('**/package-lock.json') }}
54+
- name: Install dependencies
55+
run: npm ci
56+
- name: Build website
57+
id: build-website
58+
run: npm run build
59+
- name: Upload artifacts
60+
uses: actions/upload-artifact@v3
61+
with:
62+
name: dist-files
63+
path: dist
64+
deploy:
65+
needs: build
66+
runs-on: ubuntu-latest
67+
steps:
68+
- name: Get build artifacts
69+
uses: actions/download-artifact@v3
70+
with:
71+
name: dist-files
72+
- name: Output contents
73+
run: ls
74+
- name: Deploy
75+
run: echo "Deploying..."

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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*
9+
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?

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + React</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.jsx"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)