Skip to content

omrilotan/run

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9f0b626 Β· Aug 2, 2020

History

9 Commits
Nov 10, 2019
Nov 27, 2019
Nov 10, 2019
Nov 10, 2019
Nov 10, 2019
Nov 10, 2019
Nov 10, 2019
Nov 10, 2019
Nov 10, 2019
Nov 10, 2019
Nov 10, 2019
Nov 27, 2019
Nov 20, 2019
Aug 2, 2020

Repository files navigation

$ run

πŸ‘Ÿ runs npm scripts interactively

$ npm i -g @lets/run

Simply run. You'll get an interactive menu.

$ run

Pass arguments. Arguments will be forwarded to the selected script

run --color

Otherwise you will get a chance to add in arguments after selecting the script to run

You can also run dependencies executables:

Create descriptive entries using package.json property: scripts:descriptions

You can hide scripts by explicitly setting the description to null

{
  "name": "package",
  "version": "1.0.0",
  "scripts": {
    "lint": "eslint '**/*.js'",
    "prestart": "echo \"prepare things\"",
    "start": "./bin.js"
  },
  "scripts:descriptions": {
    "lint": "Check code syntax",
    "prestart": null
  }
}

Replace npm start

{
  "name": "package",
  "version": "1.0.0",
  "scripts": {
    "start": "run --color",
    "build": "...",
    "test": "..."
  },
  "scripts:descriptions": {
    "build": "Prepare application files"
  },
  "devDependencies": {
    "@lets/run": "latest"
  }
}

aliases

run, lets-run