- Add RESOLVE_PASEO_BIN_SNIPPET to locate paseo via npm prefix -g and symlink into ~/.local/bin for subsequent calls - Switch Sprite exec from bash -lc to bash -c so PATH_PREAMBLE exports and node version shims apply to already-sourced shells - Surface npm prefix and install log tail when binary still missing - Add justfile with plugin install/reload/logs recipes
32 lines
735 B
Makefile
32 lines
735 B
Makefile
plugin_id := "fly-sprites-workers"
|
|
plugin_dir := justfile_directory()
|
|
|
|
default:
|
|
@just --list
|
|
|
|
# Install dependencies, typecheck, and install or reload the plugin in Paseo
|
|
install:
|
|
npm install
|
|
npm run typecheck
|
|
@if paseo plugin ls {{plugin_id}} >/dev/null 2>&1; then \
|
|
paseo plugin reload {{plugin_id}} || paseo plugin enable {{plugin_id}}; \
|
|
else \
|
|
paseo plugin install "{{plugin_dir}}"; \
|
|
fi
|
|
|
|
# Typecheck TypeScript sources
|
|
typecheck:
|
|
npm run typecheck
|
|
|
|
# Reload the plugin in Paseo
|
|
reload:
|
|
paseo plugin reload {{plugin_id}}
|
|
|
|
# Show recent plugin logs from Paseo
|
|
logs:
|
|
paseo plugin logs {{plugin_id}}
|
|
|
|
# Remove the plugin from Paseo
|
|
uninstall:
|
|
paseo plugin remove {{plugin_id}}
|