Add static checking to i18n and improve types

This commit is contained in:
Bad Manners 2024-07-24 21:48:46 -03:00
parent f8ac450ab5
commit 579e5879e1
16 changed files with 126 additions and 82 deletions

View file

@ -5,8 +5,8 @@ Static website built in Astro + Typescript + TailwindCSS.
## Requirements
- Node.js 20+
- LFTP, for remote deployment script
- LibreOffice, for story export script
- (optional) LFTP, for the remote deployment script.
- (optional) LibreOffice, for the story export script.
## Development
@ -42,7 +42,7 @@ npm run build
Then, if you're using LFTP:
1. Create a new `.env` file at the root of the project:
1. Create a new `.env` file at the root of the project with your credentials (SSH, SFTP, WebDav, etc.) if you haven't already:
```env
DEPLOY_LFTP_HOST=https://example-webdav-server.com
@ -51,6 +51,8 @@ DEPLOY_LFTP_PASSWORD=sup3r_s3cr3t_password
DEPLOY_LFTP_TARGETFOLDER=sites/gallery.badmanners.xyz/
```
2. Run the following command: `npm run deploy-lftp`
2. Run the deploy command:
Otherwise, to deploy over SSH: `scp -r ./dist/* my-ssh-server:./gallery.badmanners.xyz/`
```bash
npm run deploy-lftp
```