Complete TASK-016 dark theme and persistent testtask candidate
This commit is contained in:
@@ -2,10 +2,12 @@
|
||||
set -Eeuo pipefail
|
||||
case "${1:-}" in
|
||||
validate)
|
||||
command -v node >/dev/null
|
||||
node -e 'const [a,b]=process.versions.node.split(".").map(Number); if(a<20 || (a===20 && b<19)) process.exit(1)'
|
||||
source "$ROBORTO_PROJECT_ROOT/scripts/testtask-node.sh"
|
||||
command -v python3 >/dev/null
|
||||
[[ -f "$ROBORTO_PROJECT_ROOT/node_modules/vite/bin/vite.js" ]]
|
||||
[[ -f "$ROBORTO_PROJECT_ROOT/node_modules/vite/bin/vite.js" ]] || {
|
||||
echo "testtask: missing local dependencies; run npm ci in $ROBORTO_PROJECT_ROOT" >&2
|
||||
exit 1
|
||||
}
|
||||
;;
|
||||
prepare)
|
||||
python3 "$ROBORTO_PROJECT_ROOT/scripts/testtask_snapshot.py"
|
||||
@@ -15,6 +17,7 @@ case "${1:-}" in
|
||||
exec tail -f /dev/null
|
||||
;;
|
||||
start-frontend)
|
||||
source "$ROBORTO_PROJECT_ROOT/scripts/testtask-node.sh"
|
||||
cd "$ROBORTO_WORKTREE"
|
||||
exec node node_modules/vite/bin/vite.js --host 127.0.0.1 --port 5187 --strictPort
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user