2026-09-30 11:14:31 -04:00
|
|
|
[metadata]
|
|
|
|
|
name = "npm-scripts"
|
|
|
|
|
description = "List and run npm scripts from package.json"
|
|
|
|
|
requirements = ["jq"]
|
|
|
|
|
|
|
|
|
|
[source]
|
|
|
|
|
command = "jq -r '.scripts | to_entries[] | \"\\(.key)\\t\\(.value)\"' package.json 2>/dev/null"
|
|
|
|
|
display = "{split:\\t:0}"
|
|
|
|
|
|
|
|
|
|
[preview]
|
|
|
|
|
command = "jq -r '.scripts[\"{split:\\t:0}\"]' package.json"
|
|
|
|
|
|
|
|
|
|
[ui.preview_panel]
|
2026-09-30 11:54:59 -04:00
|
|
|
border_type = "none"
|
|
|
|
|
scrollbar = false
|
|
|
|
|
padding = { left = 2, right = 1, top = 0, bottom = 0 }
|
2026-09-30 11:14:31 -04:00
|
|
|
size = 30
|
|
|
|
|
|
|
|
|
|
[keybindings]
|
|
|
|
|
enter = "actions:run"
|
|
|
|
|
|
|
|
|
|
[actions.run]
|
|
|
|
|
description = "Run the selected npm script"
|
|
|
|
|
command = "npm run '{split:\\t:0}'"
|
|
|
|
|
mode = "execute"
|