Skip to content

Commit

Permalink
Transition CRA to vite (#21)
Browse files Browse the repository at this point in the history
* Transition CRA to vite

* Review

* chore: remove unused / broken eslint config

* fix: run pipeline on PRs from forks
  • Loading branch information
geisterfurz007 authored May 10, 2024
1 parent dd3ffa1 commit acc62cb
Show file tree
Hide file tree
Showing 12 changed files with 2,386 additions and 17,463 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: CI
on:
push:
branches:
- master

pull_request:
branches:
- master

jobs:
build:
Expand All @@ -9,7 +15,6 @@ jobs:
- uses: actions/checkout@v3
- run: |
cd hosting
echo "REACT_APP_ENV=production" >> .env
npm ci
npm run build
- uses: actions/upload-artifact@v4
Expand Down
7 changes: 3 additions & 4 deletions hosting/.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
REACT_APP_ENV=local
REACT_APP_FIREBASE_AUTH_EMULATOR_URL=http://127.0.0.1:9099
REACT_APP_FIREBASE_FIRESTORE_EMULATOR_HOST=127.0.0.1
REACT_APP_FIREBASE_FIRESTORE_EMULATOR_PORT=8080
VITE_FIREBASE_AUTH_EMULATOR_URL=http://127.0.0.1:9099
VITE_FIREBASE_FIRESTORE_EMULATOR_HOST=127.0.0.1
VITE_FIREBASE_FIRESTORE_EMULATOR_PORT=8080
7 changes: 3 additions & 4 deletions hosting/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
REACT_APP_ENV=local
REACT_APP_FIREBASE_AUTH_EMULATOR_URL=http://127.0.0.1:9099
REACT_APP_FIREBASE_FIRESTORE_EMULATOR_HOST=127.0.0.1
REACT_APP_FIREBASE_FIRESTORE_EMULATOR_PORT=8080
VITE_FIREBASE_AUTH_EMULATOR_URL=http://127.0.0.1:9099
VITE_FIREBASE_FIRESTORE_EMULATOR_HOST=127.0.0.1
VITE_FIREBASE_FIRESTORE_EMULATOR_PORT=8080
11 changes: 7 additions & 4 deletions hosting/index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="CodeSupport Code Review Tool" />
<title>CodeSupport Code Review Tool</title>
</head>
<body>
<main>
<h1>CodeSupport Code Review Tool</h1>
<p>Coming soon...</p>
</main>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="app"></div>
<script type="module" src="src/index.tsx"></script>
</body>
</html>
Loading

0 comments on commit acc62cb

Please sign in to comment.