Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize ofborg-viewer #28

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

Modernize ofborg-viewer #28

wants to merge 15 commits into from

Conversation

zebreus
Copy link

@zebreus zebreus commented Feb 10, 2024

This PR modernizes the stack used by ofborg-viewer and automates deployments. It also adds darkmode. You can view a deployed version with this PR at ofborg.wirs.ing (deployed via GH actions to GH pages from my fork).

Changes:

  • Use flakes with a recent version of nixpkgs
  • Use nodejs 20 instead of nodejs 6
  • Use buildNpmPackage instead of yarn2nix
  • Switch from webpack to vite (because updating from webpack 2 was too much work)
  • Update eslint & add prettier
  • Simplify deployment with github actions and github pages
  • Uses normal css instead of less
  • Use darkmode if the user prefers-color-scheme: dark

Deployment should be as easy as merging this PR, setting GH pages to deploy from actions, and pointing logs.ofborg.org to GH pages.

@zebreus zebreus mentioned this pull request Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant