2.0.0 • Published 4 years ago

@start/plugin-watch v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

👀 plugin-watch

Watch for new or changed files matched by glob patterns.

Install

$ yarn add --dev @start/plugin-watch

Usage

Signature

watch(glob: string | string[], options?: {}): (target: StartPlugin)

options

chokidar options.

Example

import sequence from '@start/plugin-sequence'
import read from '@start/plugin-read'
import babel from '@start/plugin-lib-babel'
import write from '@start/plugin-write'
import watch from '@start/plugin-watch'

const babelConfig = {
  // …
  babelrc: false,
  sourceMap: true,
}

export const task = () =>
  watch('src/**/*.js')(
    sequence(
      read,
      babel(babelConfig),
      write('build/')
    )
  )
2.0.0

4 years ago

1.0.0

4 years ago

0.4.0

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.1.0-6

6 years ago

0.1.0-5

6 years ago

0.1.0-4

6 years ago

0.1.0-3

6 years ago

0.1.0-2

6 years ago

0.1.0-1

6 years ago

0.1.0-0

6 years ago