guipas / liloo

When you're tired of having 27 terminal open just to run your application locally.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

liloo

oclif Version Downloads/week License

Usage

$ npx liloo job-file.json

Job file

Here is an example of a job file to launch several process when developping an express app locally:

{
  "defaultSpawnOptions" : { "cwd" : "/home/user/projects/api" },
  "commands": {
    "UI" : [ "npm", ["start"],  { "cwd" : "/home/user/projects/react-app" } ],
    "watch-ts" : [ "npm", ["run", "watch-ts"] ],
    "watch-express" : [ "npm", ["run", "watch-express"] ],
    "ssh-tunnel" : {
      "command" : [ 
        "ssh", 
        [ 
          "-R", "5432:localhost:5432", 
          "root@distant.db.server" 
        ] 
      ],
      "pre" : [
        ["echo", ["Connecting to distant server..."]]
      ]
    }
  }
}

About

When you're tired of having 27 terminal open just to run your application locally.


Languages

Language:TypeScript 94.8%Language:JavaScript 4.7%Language:Batchfile 0.5%