0.1.0 • Published 7 years ago

start-watch-debounce v0.1.0

Weekly downloads
34
License
-
Repository
github
Last release
7 years ago

start-watch-debounce

npm

Debounce wrapper for start-watch task using debounce-queue.

Install

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

Usage

import Start from 'start';
import watch from 'start-watch-debounce';
import files from 'start-files';
import read from 'start-read';
import babel from 'start-babel';
import write from 'start-write';

const start = Start(reporter());

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

changedFiles is an array of all changed files since last invocation.

Arguments

Same as start-watch and debounce-queue.