# start-watch

> Watch task for Start

Latest version **3.0.0** (published 2017-02-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install start-watch
pnpm add start-watch
yarn add start-watch
bun add start-watch
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2017-02-27 |
| First published | 2016-01-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Kir Belevich |
| Maintainers | deepsweet |
| Keywords | start, start-task, watch |

## Links

- npm: https://www.npmjs.com/package/start-watch
- Repository: https://github.com/start-runner/watch
- Issues: https://github.com/start-runner/watch/issues
- npm.io page: https://npm.io/package/start-watch

## Dependencies (1)

- [chokidar](https://npm.io/package/chokidar.md) ^1.6.0

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 3.0.0 (latest) — 2017-02-27
- 2.0.0 — 2016-12-30
- 1.0.5 — 2016-02-20
- 1.0.4 — 2016-02-10
- 1.0.3 — 2016-02-07
- 1.0.2 — 2016-02-03
- 1.0.1 — 2016-02-01
- 1.0.0 — 2016-02-01
- 0.2.0 — 2016-01-28
- 0.1.0 — 2016-01-28

## README

# start-watch

[![npm](https://img.shields.io/npm/v/start-watch.svg?style=flat-square)](https://www.npmjs.com/package/start-watch)
[![linux build](https://img.shields.io/travis/start-runner/watch/master.svg?label=linux&style=flat-square)](https://travis-ci.org/start-runner/watch)
[![windows build](https://img.shields.io/appveyor/ci/start-runner/watch/master.svg?label=windows&style=flat-square)](https://ci.appveyor.com/project/start-runner/watch)
[![coverage](https://img.shields.io/codecov/c/github/start-runner/watch/master.svg?style=flat-square)](https://codecov.io/github/start-runner/watch)
[![deps](https://img.shields.io/gemnasium/start-runner/watch.svg?style=flat-square)](https://gemnasium.com/start-runner/watch)

Watch task for [Start](https://github.com/start-runner/start).

## Install

```sh
npm install --save-dev start-watch
# or
yarn add --dev start-watch
```

## Usage

```js
import Start from 'start';
import reporter from 'start-pretty-reporter';
import files from 'start-files';
import clean from 'start-clean';
import watch from 'start-watch';
import read from 'start-read';
import babel from 'start-babel';
import write from 'start-write';
import mocha from 'start-mocha';
import inputConnector from 'start-input-connector';

cosnt start = Start(reporter());

export const dev = () => start(
  files('build/'),
  clean(),
  watch('lib/**/*.js')((changedFiles) => start(
    inputConnector(changedFiles),
    read(),
    babel(),
    write('build/')
  ))
);
```

See [documentation](https://github.com/start-runner/start#readme) for details.

:point_right: Note that this task may not work properly with tasks like [start-webpack](https://github.com/start-runner/webpack) and [start-karma](https://github.com/start-runner/karma) which have their own file watching functionality.

## Arguments

`watch(files, events, options)(callback)`

* `files` – [Chokidar "file, dir, glob, or array"](https://github.com/paulmillr/chokidar)
* `events` – [Chokidar events array](https://github.com/paulmillr/chokidar#getting-started), `[ 'change', 'add' ]` by default
* `options` – [Chokidar options](https://github.com/paulmillr/chokidar#api), `{ persistent: true }` by default
* `callback(changedFiles)` – callback function which will be called with an array of matched and changed files

---
_Source: https://npm.io/package/start-watch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
