https://github.com/team-smp/teamsmp-web-again
A complete revamp of the Team SMP Website
https://github.com/team-smp/teamsmp-web-again
built-with-astro minecraft-server-website website
Last synced: 18 days ago
JSON representation
A complete revamp of the Team SMP Website
- Host: GitHub
- URL: https://github.com/team-smp/teamsmp-web-again
- Owner: Team-SMP
- Created: 2024-04-27T07:51:35.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-14T05:37:41.000Z (about 1 year ago)
- Last Synced: 2024-05-14T06:36:50.069Z (about 1 year ago)
- Topics: built-with-astro, minecraft-server-website, website
- Language: Astro
- Homepage: https://teamsmp-new.vercel.app
- Size: 161 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Team SMP Website _(again)_
[](https://astro.build)
This is the [new version of the Team SMP Website](https://teamsmp-new.vercel.app), completely rebuilt from the ground up using [Astro](https://astro.build).
## Useful for Collaborators
All commands are run from the root of the project, from a terminal, for example, using the VS Code integrated terminal, when opened from the workspace file. Some commonly used commands are listed in [the table below](#commands).
Some commands are also available as VS Code tasks, executable by opening the command pallete (`CTRL+SHIFT+P`) and searching for "`run task`". Find the one named "`Tasks: Run Task`" and press `ENTER`. Then, choose a task from the list, and it will run.
When first opening the workspace, a notification will appear in VS Code asking you to download recommended extensions, adding [Astro language support](https://marketplace.visualstudio.com/items?itemName=astro-build.astro-vscode), [comment categorisation](https://marketplace.visualstudio.com/items?itemName=Tion.evenbettercomments) and [enhanced Git control](https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens) to name a few. We recommend that you download theese extensions when asked, as they will help massively with coding for the website.
We are using [pnpm](https://pnpm.io) for package management, as it is fast and space-efficient. This, of course, requires you to have both [Node.js](https://nodejs.org) and [pnpm](https://pnpm.io) installed - if you don't, none of this will work. [Download Node](https://nodejs.org/en/download) and [pnpm](https://pnpm.io/installation).
When making any changes to the new website, ensure to use the [pre Git branch](https://github.com/Team-SMP/teamsmp-web-again/tree/pre) and [open a Pull Request](https://github.com/Team-SMP/teamsmp-web-again/compare/pre?expand=1) between the two branches. This is done to ensure that the production deployment doesn't become incomplete and/or buggy.
For code consistency, we recommend formatting the files with [Prettier](https://prettier.io/) using the VS Code task or `pnpm prettier . --write`.
### Commands
| Command | Action |
| :------------------------- | :--------------------------------------------------------------- |
| `pnpm i` | Installs dependencies |
| `pnpm run dev` | Starts a dev server at `localhost:4321` (VS Code task available) |
| `pnpm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `pnpm run astro -- --help` | Get help using the Astro CLI |
| `pnpm prettier . --write` | Format with Prettier (VS Code task available) |If you need any help with Astro, check out [their documentation](https://docs.astro.build).