Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/build.checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Ensure build command works

on:
# Runs on pull requests targeting the default branch
# but not when the only changes are docs and README.md files
pull_request:
branches: ["main"]
paths-ignore:
- '**.md'
- 'docs/**'

jobs:
build-webpage:
runs-on: ubuntu-latest
permissions:
contents: read

name: Build static webpage
steps:
- name: Checkout
uses: actions/checkout@v4

# Build the static assets
- name: Build
run: npm ci --legacy-peer-deps && npm run build
working-directory: ./

# Upload ./webpage as artifact
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
path: webpage/** # the only required field
name: built-webpage
if-no-files-found: error
compression-level: 0 # skip compression to save time
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ node_modules

# Bundle
public/bundle.js
public/bundle.js.*

# Compiled CSS file
public/resources/styles/style.css
Expand Down
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 Ollie Bannister
Copyright (c) 2016-2026 Ollie Bannister, Troy Lamerton, Sean, Vai, Miles

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 0 additions & 3 deletions client/.babelrc

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
46 changes: 0 additions & 46 deletions client/webpack.config.js

This file was deleted.

10 changes: 8 additions & 2 deletions docs/RUNBOOK.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@ npm install --legacy-peer-deps
`npm run watch:styles`
1. Rebuild code and serve all static files:

`npm run dev-wp`
1. Open [localhost:8080](http://localhost:8080) in your browser
`npm start`
1. Open [localhost:5173](http://localhost:5173) in your browser

#### Bundler

Webpack v5 - slow and old, but it works
Vite - good, using it now
Parcel - fails to load images from css urls, fails to build JS at all

### Quality checks

Expand Down
2 changes: 1 addition & 1 deletion public/index.html → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
</head>
<body>
<div id="app"></div>
<script src="/bundle.js" type="text/javascript"></script>
<script src="./client/index.jsx" type="module"></script>
</body>
</html>
Loading