coloncli
v0.1.0
Published
`npm run :` for interactive script picker with auto-folders for scripts with ":"
Readme
:cli 📁
Interactive script picker for npm scripts with automatic folder grouping.
Usage
Run npx coloncli to browse and execute your scripts.
npx coloncliOR, add to your package.json:
npm i -D coloncliAnd add the script:
{
"scripts": {
":": "coloncli"
}
}Then you can run npm run :.
How it works
Scripts with colons are automatically grouped into folders. For example:
{
"scripts": {
"dev:project-a": "vite --config project-a",
"dev:project-b": "vite --config project-b",
"build:web:prod": "vite build --config web-prod",
"build:web:beta": "vite build --config web-beta",
"build:mobile:prod": "vite build --config mobile-prod",
"build:mobile:beta": "vite build --config mobile-beta",
}
}Navigation:
dev→ showsproject-a/project-bin a listbuild→ showsweb/mobilein a list → they each showprod/betain a list
Scripts without colons appear directly in the menu.
