npm.io
1.2.4 • Published 5 years agoCLI

jmb

Licence
MIT
Version
1.2.4
Deps
3
Size
6 kB
Vulns
0
Weekly
0
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

JMB

JMB is a scripts manager.

Installation

npm i -g jmb

Commands

First, you must init/setup :

jmb init

And you can edit .jmbrc :

{
    "scripts": [
        {
            "name": "run", // Required. Used for "jmb exec <name>"
            "clear": false, // Optional (default = false). If set to "true", clear console on start 
            "steps": [
                {
                    "displayName": "Starting", // Required. Used for show execution status
                    "run": "node ." // Required. The command to execute on step start
                }
            ]
        }
    ]
}

Save and close file.

For start a script, do :

jmb exec <name> [--suppress]

--suppress: If set, hide output overflow (2 lines)