File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,6 +105,9 @@ Configure dev server to run at `http://npmx.test:3000` instead of `http://127.0.
105105# 1. Install Localias
106106brew install peterldowns/tap/localias
107107
108+ # Linux/WSL2
109+ go install github.com/peterldowns/localias/cmd/localias@latest
110+
108111# 2. Run setup (requires sudo)
109112pnpm setup:local
110113
Original file line number Diff line number Diff line change 3535 "generate:fixtures" : " node scripts/generate-fixtures.ts" ,
3636 "generate:lexicons" : " lex build --lexicons lexicons --out shared/types/lexicons --clear" ,
3737 "setup:local" : " bash scripts/setup-local-domain.sh" ,
38- "setup:local:uninstall" : " localias rm npmx.test && sudo localias stop || echo ' No local domain configured'" ,
38+ "setup:local:uninstall" : " bash -c 'if localias rm npmx.test; then sudo localias stop || echo \" Failed to stop Localias daemon \" ; else echo \" No local domain configured\" ; fi '" ,
3939 "test" : " vite test" ,
4040 "test:a11y" : " pnpm build:test && LIGHTHOUSE_COLOR_MODE=dark pnpm test:a11y:prebuilt && LIGHTHOUSE_COLOR_MODE=light pnpm test:a11y:prebuilt" ,
4141 "test:a11y:prebuilt" : " ./scripts/lighthouse.sh" ,
Original file line number Diff line number Diff line change 8888# Start daemon
8989echo " Starting localias daemon (requires sudo)..."
9090sudo localias stop 2> /dev/null || true
91- if ! sudo localias start 2>&1 | grep -q " server running " ; then
91+ if ! sudo localias start; then
9292 error_exit " Failed to start daemon" " Check ports 80/443 or run: sudo localias start"
9393fi
9494
You can’t perform that action at this time.
0 commit comments