dev-service-runner

0.1.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i dev-service-runner

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

236 kB

Total Files

11

Last publish

Collaborators

  • jerrywdlee