MathSoc / mathsoc-website

A 2022-24 redevelopment of the University of Waterloo Math Society's website.
11 stars 3 forks source link

Create a /data-base folder #211

Closed some-molasses closed 5 months ago

some-molasses commented 5 months ago

This PR is to solve two issues stemming from the fact that we track the /server/data folder:

  1. It's hard to pull new versions of the website without deleting all local information, and
  2. It's really easy for developers to accidentally commit personal information to the repo ;_;

To address these, this PR adds a /server/data-base folder. This is the starter version of any page. On startup, preload.ts is called in both the startup npm scripts. preload.ts checks over the /server/data-base folder. For any file or directory it sees in /server/data-base that it doesn't see in /data, it creates a copy in /data that can be freely edited without causing the issues outlined above.

I've removed functionality from DirectoryPrebuilder that duplicated this behaviour for simplicity.

There's a lot of files in the changeset here. I don't know why github is displaying it like it is ;-;. Almost all of them are unchanged, save for removing elections data and exec names.