3.0.0 • Published 7 years ago

start-watch v3.0.0

Weekly downloads
10
License
MIT
Repository
github
Last release
7 years ago

start-watch

npm linux build windows build coverage deps

Watch task for Start.

Install

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

Usage

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 for details.

:point_right: Note that this task may not work properly with tasks like start-webpack and start-karma which have their own file watching functionality.

Arguments

watch(files, events, options)(callback)

3.0.0

7 years ago

2.0.0

7 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago