Skip to content

Commit

Permalink
Migration to React+Vite (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
waalbert authored May 1, 2024
1 parent 6e8de17 commit 0c0ac7a
Show file tree
Hide file tree
Showing 234 changed files with 2,813 additions and 3,435 deletions.
22 changes: 22 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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/jsx-no-target-blank": "off",
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
"react/prop-types": "off",
},
};
14 changes: 0 additions & 14 deletions .eslintrc.json

This file was deleted.

9 changes: 0 additions & 9 deletions .github/pull_request_template.md

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/deploy-preview.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/deploy-prod.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
with:
static_site_generator: next

- name: build nextjs
run: npx next build
- name: build vite
run: npx vite build
env:
NEXT_PUBLIC_MAINTENANCE_MODE_RESOURCES: ${{ secrets.NEXT_PUBLIC_MAINTENANCE_MODE_RESOURCES }}
NEXT_PUBLIC_MAINTENANCE_MODE_SCHEDULE: ${{ secrets.NEXT_PUBLIC_MAINTENANCE_MODE_SCHEDULE }}
Expand All @@ -39,7 +39,7 @@ jobs:
- name: upload
uses: actions/upload-pages-artifact@v3
with:
path: ./out
path: ./dist

deploy:
environment:
Expand Down
52 changes: 20 additions & 32 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,35 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# nextjs/ts
.next
dist/
next-env.d.ts
*.tsbuildinfo

# vercel
.vercel

# dependencies
/node_modules
/.pnp
.pnp.js
.pnp.*

# testing
/coverage

# production
/build

# misc
.DS_Store
*.pem
.env.local
.env.development.local
.env.test.local
.env.production.local
.vs

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
7 changes: 0 additions & 7 deletions .husky/pre-commit

This file was deleted.

14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
# VenusHacks Website

Planned in collaboration with [WICS](https://wics.ics.uci.edu/) and [Hack at UCI](https://hack.ics.uci.edu/), VenusHacks is UCI’s largest women-centric hackathon!

<img width="1212" alt="image" src="https://github.com/WICS-UCI/venushacks/assets/45449494/4313c4fa-b611-4f50-89aa-3f6543dc4bc6">

## Mission
Our mission is to empower underrepresented groups by providing an inclusive community to foster growth and creativity in computing.

Our mission is to empower underrepresented groups by providing an inclusive community to foster growth and creativity in computing.
VenusHacks will be open to participants of all experience levels, as we aim to increase diversity in tech through support, exposure, and community.

## Local Development

### Getting Setup

- `git clone https://github.com/wics-uci/venushacks`
- `cd venushacks`
- `pnpm install`
- `cd venushacks`
- `pnpm install`

### Running the Project
- `pnpm dev`
- Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

- `pnpm dev`
- Open [http://localhost:5173](http://localhost:5173) to view it in the browser.
20 changes: 20 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="UC Irvine's women-centric hackathon!" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN"
crossorigin="anonymous"
/>
<title>VenusHacks 2024</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
23 changes: 3 additions & 20 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,8 @@
{
"compilerOptions": {
"baseUrl": ".",
"target": "es5",
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"]
"src/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.js", "**/*.jsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}
}
}
9 changes: 0 additions & 9 deletions next.config.js

This file was deleted.

56 changes: 19 additions & 37 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,49 +1,31 @@
{
"name": "venushacks",
"version": "0.1.0",
"private": true,
"homepage": "https://www.venushacks.com/",
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
"dependencies": {
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-navigation-menu": "^1.1.4",
"eslint": "^8.57.0",
"lint-staged": "^15.2.2",
"next": "^14.1.1",
"react": "^18.2.0",
"react-bootstrap": "^2.10.1",
"react-bootstrap": "^2.10.2",
"react-confetti": "^6.1.0",
"react-dom": "^18.2.0",
"react-flip-numbers": "^3.0.8",
"react-router-dom": "^6.22.1",
"sass": "^1.71.0"
},
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"prepare": "husky"
},
"lint-staged": {
"*.jsx": [
"eslint '**/*.{js,jsx}' --fix"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
"react-router-dom": "^6.23.0",
"sass": "^1.75.0"
},
"devDependencies": {
"eslint-config-next": "^14.1.2",
"husky": "^9.0.11",
"tailwindcss": "^3.4.1"
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "^8.57.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6",
"vite": "^5.2.0"
}
}
Loading

0 comments on commit 0c0ac7a

Please sign in to comment.