Skip to content

Commit

Permalink
Revamp site for December 2024 (#161)
Browse files Browse the repository at this point in the history
* Revamp site for December 2024

This fixes a bunch of dependencies, upgrades the Node version, and fixes CI.

## Dependency updates

- Upgrade React to v18
- Upgrade from material-ui v4 to mui 6 (lots of breaking API changes / incompatibility)
- Upgraded to react-router v7 (again, many breaking changes)
- Update Stripe client v1 -> v5
- Update chart.js v3 -> v4
- Update clsx v1 -> v2
- Update firebase v9 -> v11
- Update react-chartjs-2 v4 -> v5
- Update Prettier v2 -> v3
- Update firebase-admin v9 -> v13
- Update firebase-functions v3 -> v6
- Update Stripe server v8 -> v17

* Fix functions and scripts, new APIs

* Comment out `npm test`
  • Loading branch information
ekzhang authored Dec 21, 2024
1 parent 781e031 commit bb1ac3a
Show file tree
Hide file tree
Showing 61 changed files with 21,557 additions and 9,452 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: "16"
node-version: "20"

- run: npm ci

Expand All @@ -27,27 +27,29 @@ jobs:
name: Lint and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: "16"
node-version: "20"

- run: npm ci

- run: npx eslint src

- run: npm test
# TODO: This is not working due to ESM packaging issues. We can fix this
# again later probably after we migrate from CRA -> Vite.
# - run: npm test

functions:
name: Cloud Functions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: "16"
node-version: "20"

- run: npm ci
working-directory: functions
Expand All @@ -66,11 +68,11 @@ jobs:
success() && github.event_name == 'push' && github.repository_owner ==
'ekzhang'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: "16"
node-version: "20"

- run: npm ci

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: "16"
node-version: "20"

- run: npm ci

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
build/
.vscode/
.DS_Store


Expand Down
Loading

0 comments on commit bb1ac3a

Please sign in to comment.