Skip to content

Commit f7a2fa5

Browse files
committed
Upgrade to pnpm and vite
1 parent 8ccca3a commit f7a2fa5

11 files changed

+4982
-15159
lines changed

.github/workflows/build.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,21 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
node-version: [8.x]
12+
node-version: [20.x]
1313

1414
steps:
1515
- uses: actions/checkout@v1
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v4
18+
with:
19+
version: 9
1620
- name: Use Node.js ${{ matrix.node-version }}
1721
uses: actions/setup-node@v1
1822
with:
1923
node-version: ${{ matrix.node-version }}
2024
- name: npm install and build
2125
run: |
22-
npm install
23-
npm run build --if-present
26+
pnpm install
27+
pnpm run build
2428
env:
2529
CI: true

public/index.html index.html

+9-27
Original file line numberDiff line numberDiff line change
@@ -22,30 +22,30 @@
2222
property="og:description"
2323
content="CompSoc runs talks, hackathons and workshops for Durham University students throughout the year."
2424
/>
25-
<meta property="og:image" content="%PUBLIC_URL%/images/stock/a.jpg" />
25+
<meta property="og:image" content="/images/stock/a.jpg" />
2626
<meta name="twitter:card" content="summary_large_image" />
2727

28-
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
28+
<link rel="shortcut icon" href="/favicon.ico" />
2929
<link
3030
rel="apple-touch-icon"
3131
sizes="180x180"
32-
href="%PUBLIC_URL%/apple-touch-icon.png"
32+
href="/apple-touch-icon.png"
3333
/>
3434
<link
3535
rel="icon"
3636
type="image/png"
3737
sizes="32x32"
38-
href="%PUBLIC_URL%/favicon-32x32.png"
38+
href="/favicon-32x32.png"
3939
/>
4040
<link
4141
rel="icon"
4242
type="image/png"
4343
sizes="16x16"
44-
href="%PUBLIC_URL%/favicon-16x16.png"
44+
href="/favicon-16x16.png"
4545
/>
4646
<link
4747
rel="mask-icon"
48-
href="%PUBLIC_URL%/safari-pinned-tab.svg"
48+
href="/safari-pinned-tab.svg"
4949
color="#a0c0c7"
5050
/>
5151

@@ -56,31 +56,13 @@
5656
manifest.json provides metadata used when your web app is installed on a
5757
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
5858
-->
59-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
60-
61-
<!--
62-
Notice the use of %PUBLIC_URL% in the tags above.
63-
It will be replaced with the URL of the `public` folder during the build.
64-
Only files inside the `public` folder can be referenced from the HTML.
65-
66-
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
67-
work correctly both with client-side routing and a non-root public URL.
68-
Learn how to configure a non-root public URL by running `npm run build`.
69-
-->
59+
<link rel="manifest" href="/manifest.json" />
7060
<title>Durham CompSoc</title>
7161
</head>
7262
<body>
7363
<noscript>You need to enable JavaScript to run this app.</noscript>
7464
<div id="root"></div>
75-
<!--
76-
This HTML file is a template.
77-
If you open it directly in the browser, you will see an empty page.
78-
79-
You can add webfonts, meta tags, or analytics to this file.
80-
The build step will place the bundled scripts into the <body> tag.
81-
82-
To begin the development, run `npm start` or `yarn start`.
83-
To create a production bundle, use `npm run build` or `yarn build`.
84-
-->
65+
66+
<script type="module" src="/src/index.tsx"></script>
8567
</body>
8668
</html>

0 commit comments

Comments
 (0)