mirror of
https://github.com/SikongJueluo/kubejs-utils.git
synced 2026-01-11 00:37:50 +08:00
chore(project): update justfile and envrc
This commit is contained in:
18
.envrc
18
.envrc
@@ -1,9 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
if [ -f ".env" ]; then
|
if [ -f ".env" ]; then
|
||||||
export $(dotenvx get --format=shell -f .env)
|
export $(dotenvx get --format=shell -f .env)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f ".env.local" ]; then
|
if [ -f ".env.local" ]; then
|
||||||
export $(dotenvx get --format=shell -f .env.local)
|
export $(dotenvx get --format=shell -f .env.local)
|
||||||
fi
|
fi
|
||||||
|
|||||||
10
.justfile
10
.justfile
@@ -1,8 +1,12 @@
|
|||||||
|
log_dir := if os() == "linux" { "$LOG_DIR" } else { "$(cygpath -u $LOG_DIR)/" }
|
||||||
|
kjs_dir := if os() == "linux" { "$KJS_DIR" } else { "$(cygpath -u $KJS_DIR)/" }
|
||||||
|
pjs_dir := if os() == "linux" { "$PJS_DIR" } else { "$(cygpath -u $PJS_DIR)/" }
|
||||||
|
|
||||||
sync-js:
|
sync-js:
|
||||||
rsync -av --delete -r --exclude=config --exclude=probe --exclude=*.txt ./src/ "$(cygpath -u $DST_KJS_DIR)/"
|
rsync -av --delete -r --exclude=config --exclude=probe --exclude=*.txt ./src/ {{ kjs_dir }}
|
||||||
|
|
||||||
sync-logs:
|
sync-logs:
|
||||||
rsync -av --delete -r "$(cygpath -u $DST_LOG_DIR)/" ./logs/
|
ln -s {{ log_dir }} ./logs
|
||||||
|
|
||||||
sync-types:
|
sync-types:
|
||||||
rsync -av --delete -r "$(cygpath -u $DST_KJS_DIR)/probe" ./types/probe
|
ln -s {{ pjs_dir }} ./types/probe
|
||||||
|
|||||||
1
types/probe
Symbolic link
1
types/probe
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
/home/sikongjueluo/.minecraft/versions/1.20.1-Forge/.probe
|
||||||
Reference in New Issue
Block a user