0.4.27 • Published 3 days ago

@chyzwar/runner v0.4.27

Weekly downloads
-
License
MIT
Repository
github
Last release
3 days ago

Runnner

Simple task runner inspired by:

Instalation

yarn add @chyzwar/runner

Examples

Example of config file runner.config.js

import {spawnTask, dockerTask, parallelTask, seriesTask} from "@chyzwar/runner";

spawnTask("build:watch", 
  "yarn", ["build:watch"], 
);

spawnTask("start:ui", 
  "yarn", ["start"], 
  {
    cwd: "./packages/ui"
  }
);
spawnTask("build:ui", 
  "yarn", ["build"], 
  {
    cwd: "./packages/ui"
  }
);

spawnTask("start:api", 
  "yarn", ["start"], 
  {
    cwd: "./packages/api"
  }
);
spawnTask("build:api", 
  "yarn", ["build"], 
  {
    cwd: "./packages/api"
  }
);

dockerTask("postgres", "postgres", {
  interactive: true,
  rm: true,
  name: "PostgresDB",
  ports: [
    "5434:5432"
  ],
  env: {
    POSTGRES_PASSWORD: "postgres",
  },
});


seriesTask("start:prod", ["build:api", "build:ui", "start:api:prod"])
parallelTask("start", [
  "build:watch", 
  "postgres", 
  "start:api", 
  "start:ui"
])
0.4.27

3 days ago

0.4.26

2 months ago

0.4.24

3 months ago

0.4.25

3 months ago

0.4.23

3 months ago

0.4.21

3 months ago

0.4.22

3 months ago

0.4.20

3 months ago

0.4.19

3 months ago

0.4.17

4 months ago

0.4.18

4 months ago

0.4.16

4 months ago

0.4.15

7 months ago

0.4.14

7 months ago