0.0.1 • Published 12 years ago

dev_mode v0.0.1

Weekly downloads
6
License
-
Repository
github
Last release
12 years ago

DEV_MODE

A handy development utility.

Features

  • watch files and directories
  • restart a set of processes on file change
  • pipe all outputs to a single console

Installation

npm install -g dev_mode

Commands

generate a configuration file:

dev_mode install 

start dev_mode:

dev_mode start

Dev_Mode Configuration

configuration file exports an object with the following properties:

cwd: optional root path for file watching, defaults to the current directory

watch_list: array of files and folders to watch

recursive_watch_list: array of files and folders to watch

processes: array of process configurations

Process Configuration

The following options are available for each item in the processes list:

Console Options

name: name to display in console

prompt: prompt to display in console

color: prompt color

bg_color: optional prompt background color if you're into that sort of thing

Command options

command: command to invoke (including command-line arguments)

env: optional environment variables to pass to process

cwd: optional directory to invoke the process from, if different from current directory

on_startup: optional set to false if you would only like this process invoked after a file change