HackTJ / 2022

The source code for HackTJ 9.0's website.
1 stars 0 forks source link

HackTJ 9.0

lint

The website for HackTJ 9.0.

Setup

Development

We use SvelteKit.

Creating a New Event Website

git clone git@github.com:HackTJ/2022.git 2022 && cd 2022/
pnpm install
git reset "$(git commit-tree HEAD^"{tree}" -m "Push HackTJ 9.0 website" -m "$(pnpm run git-history-coauthors)")"  # squash all commits into 1
git remote set-url origin git@github.com:HackTJ/2023.git
git push

Deployment

In the case that one of the endpoints (/2022 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