Skip to content

Commit

Permalink
Merge pull request #71 from Meetesh-Saini/master
Browse files Browse the repository at this point in the history
new frontend
  • Loading branch information
Meetesh-Saini authored Jan 22, 2024
2 parents 045dc49 + 2991c21 commit ff945f4
Show file tree
Hide file tree
Showing 291 changed files with 13,665 additions and 13,905 deletions.
20 changes: 20 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
settings: { react: { version: '18.2' } },
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
}
70 changes: 43 additions & 27 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,48 @@
name: React CD
name: Deployment

on:
push:
branches: [master]
workflow_dispatch:
push:
branches: ['deployment']

jobs:
deploy:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Check out repo
uses: actions/checkout@v2
workflow_dispatch:

- name: Setup Node
uses: actions/setup-node@v2
permissions:
contents: read
pages: write
id-token: write

concurrency:
group: 'page'
cancel-in-progress: true

- name: Install dependencies
run: npm ci

- name: Build React
run: CI=false && npm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: 8.10.2
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
Expand Down
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>lugvitc</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
86 changes: 35 additions & 51 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,60 +1,44 @@
{
"name": "lugwebsite",
"homepage": "https://lugvitc.github.io/",
"version": "0.1.0",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.1.1",
"@fortawesome/free-solid-svg-icons": "^6.1.1",
"@fortawesome/react-fontawesome": "^0.1.18",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.1.3",
"@testing-library/user-event": "^13.5.0",
"ajv": "6.12.6",
"axios": "^1.5.1",
"dompurify": "^3.0.5",
"formik": "^2.4.5",
"framer-motion": "^6.5.1",
"isomorphic-dompurify": "^1.8.0",
"nord": "^0.2.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-hot-toast": "^2.4.1",
"react-markdown": "^8.0.3",
"react-scripts": "^5.0.0",
"typescript": "^3.9.10",
"web-vitals": "^2.1.4",
"zustand": "^4.0.0-rc.1"
},
"version": "0.0.0",
"type": "module",
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d build",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"dev": "vite",
"build": "vite build",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
"dependencies": {
"@heroicons/react": "^2.1.1",
"@material-tailwind/react": "^2.1.8",
"axios": "^1.6.5",
"prettier": "^3.2.4",
"primereact": "^10.3.0",
"react": "^18.2.0",
"react-code-blocks": "^0.1.5",
"react-countup": "^6.5.0",
"react-dom": "^18.2.0",
"react-photo-album": "^2.3.0",
"react-router-dom": "^6.21.1",
"react-simple-typewriter": "^5.0.1",
"react-tsparticles": "^2.12.2",
"swiper": "^11.0.5",
"tsparticles-slim": "^2.12.0",
"typewriter-effect": "^2.21.0",
"zustand": "^4.4.7"
},
"devDependencies": {
"gh-pages": "^3.2.3",
"react-router-dom": "^6.2.2",
"tailwindcss": "^3.3.3"
"@types/react": "^18.2.43",
"@types/react-dom": "^18.2.17",
"@vitejs/plugin-react-swc": "^3.5.0",
"autoprefixer": "^10.4.16",
"eslint": "^8.55.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"postcss": "^8.4.32",
"tailwindcss": "^3.4.0",
"vite": "^5.0.8"
}
}
Loading

0 comments on commit ff945f4

Please sign in to comment.