HackTJ / 2025

Website for HackTJ's 2025 event custom made by the HackTJ web team. Largest high school hackathon in the east coast.
https://hacktj.org
0 stars 1 forks source link

HackTJ 12.0

lint

The website for HackTJ 12.0.

Setup

Development

We use SvelteKit.

Creating a New Event Website (2025)

mv hacktj-website hacktj-website-2025
git clone git@github.com:HackTJ/2025.git hacktj-website
cd hacktj-website
pnpm install
git reset "$(git commit-tree HEAD^"{tree}" -m "Push HackTJ 12.0 website")"  # squash all commits into 1
git remote set-url origin git@github.com:HackTJ/2025.git
git push

Deployment

In the case that one of the endpoints (/2025 or /) doesn't work but the other does, immediately set up a hardcoded redirect in the nonfunctional repository to redirect to the correct site.

To test a production build locally:

  1. pnpm run switch homepage
  2. pnpm run build
  3. pnpm run preview

To deploy a change:

  1. pnpm run dev
  2. make your changes; when you're done, close the development server
  3. pnpm run format; pnpm run lint
  4. git add . && git commit
  5. pnpm run deploy all
  6. git push

Notes for next year