chore(env): add direnv and justfile for environment management

This commit is contained in:
2025-12-10 19:51:57 +08:00
parent f1c0cb298a
commit b5c6d12674
3 changed files with 16 additions and 0 deletions

9
.envrc Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
if [ -f ".env" ]; then
export $(dotenvx get --format=shell -f .env)
fi
if [ -f ".env.local" ]; then
export $(dotenvx get --format=shell -f .env.local)
fi

2
.gitignore vendored
View File

@@ -3,3 +3,5 @@ build
output
.ai
.env.local
logs

5
.justfile Normal file
View File

@@ -0,0 +1,5 @@
sync-js:
rsync --delete -r --exclude=config ./src/ "$(cygpath -u $DST_KJS_DIR)/"
sync-log:
rsync --delete -r "$(cygpath -u $DST_LOG_DIR)/" ./logs/