0.1.2 • Published 6 years ago

dev-service-runner v0.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Dev Service Runner

npm version Build Staus Coverage Status

This is a script runner for running other service once on one's development environment, such as Redis, MongoDB and Elasticsearch

Usage

Install

npm i -D dev-service-runner

Configs

You may need place a dev-service.conf.yml under your project directory, as same level as package.json.

# example of dev-service.conf.yml

# This element is setting for running redis service
- 
  nameTag: Redis # needed, as the name tag show in console
  color: yellow # optional, the color of name tag
  command: redis-server /usr/local/etc/redis.conf # needed, command to start this service 

# This element is setting for running mongod service
- 
  nameTag: MongoDB # needed, as the name tag show in console
  color: blue # optional, the color of name tag
  command: mongod --dbpath /usr/local/var/mongodb # needed, command to start this service 

About Color settings

We used Marak/colors.js as our color setting plugin, so for more settings, please check this site.

Run

# If installed at global
run-ds

# Or as installed at local
$(npm bin)/run-ds

# If want run at customized config file
run-ds YOUR-CONFIG.yml

Looks like

Sample Usage

License (MIT)

Copyright 2017~2018 Jerry Lee

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago