nurture

3.0.0 • Public • Published

nurture travis npm

Define watches with with your source files

demo gif

Create .watch definition files with your source files, and watch for changes. A perfect fit for monorepo solutions.

Motivation

With a folder structure like this:

my-tool
├── lerna.json
├── package.json
└── packages
    ├── my-tool
    └── my-tool-cli

One can setup watch-definitions for both packages my-tool and my-tool-cli by adding .watch definitions inside each package. Then in the root run nurture <target> to watch the target in both projects.

Install

$ npm install --save nurture

Nurture uses sane behind the scenes so for the most reliable usage on linux and OS X install watchman

CLI Usage

Usage:
  nurture <target>

target is defined in .watch files

Example

{
  "build": [{
    "patterns": ["src/*.js"],
    "command": "npm run build:js -- --only",
    "appendFiles": true,
    "appendSeparator": ","
  }, {
    "patterns": ["src/*.js"],
    "command": "npm run build:flow"
  }]
  "test": [{
    "patterns": ["src/*.js"],
    "settle": 500,
    "command": "npm test",
  }]
}

To watch test run nurture test

To watch build run nurture build

License

MIT © Sigurd Fosseng

Dependencies (10)

Dev Dependencies (16)

Package Sidebar

Install

npm i nurture

Weekly Downloads

65

Version

3.0.0

License

MIT

Unpacked Size

27.1 kB

Total Files

21

Last publish

Collaborators

  • laat