3.0.0 • Published 2 years ago

nurture v3.0.0

Weekly downloads
87
License
MIT
Repository
github
Last release
2 years ago

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

3.0.0

2 years ago

2.2.8

7 years ago

2.2.7

7 years ago

2.2.6

7 years ago

2.2.5

7 years ago

2.2.4

7 years ago

2.2.3

7 years ago

2.2.2

7 years ago

2.2.1

7 years ago

2.2.0

7 years ago

2.1.0

7 years ago

2.0.5

7 years ago

2.0.4

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.0

8 years ago