Update to Nix setup and clean up links

This commit is contained in:
Bad Manners 2026-01-10 20:11:57 -03:00
parent fa626826ad
commit 115bb5c485
9 changed files with 1251 additions and 151 deletions

View file

@ -6,7 +6,7 @@ For attributions, see [`licenses.toml`](src/data/licenses.toml).
## Requirements
- Node.js 20+
- Bun
- (optional) rsync or LFTP, for remote deployment.
## Development
@ -16,15 +16,16 @@ For attributions, see [`licenses.toml`](src/data/licenses.toml).
```bash
git clone https://git.badmanners.xyz/badmanners/badmanners.xyz
cd badmanners.xyz
npm install
direnv allow
bun install
```
### Local development
```bash
npm run dev # Start development server (quit with Ctrl-C)
npm run sync # Rebuild types from Astro config
npm run prettier # Prettier formatting
bun dev # Start development server (quit with Ctrl-C)
bun sync # Rebuild types from Astro config
bun prettier # Prettier formatting
```
### Configuration
@ -38,7 +39,7 @@ The following optional environment variable can be set within a `.env` file:
### Build and deploy to remote
```bash
npm run build
bun run build
```
Then, if you're using rsync, after configuring the `websitebm` host (or the name of your choosing) in `~/.ssh/config`, you can use a command like: