gobble-forcecopy

1.0.0 • Public • Published

gobble-forcecopy

This is a simple Gobble plugin to copy all files in the output dir. Indeed Gobble is using symbolic links a lot to make builds faster but some tools that want to resolve require (mocha for example) do not like them.

Usage

const js_sources = gobble([
  gobble('src/js'),
]).transform('babel');

const test = gobble([
  js_sources,
  gobble('test').transform('babel')
]).transform('forcecopy')
  .observe('mocha')
  .transform('devnull');

We use the forcecopy plugin just before invoking the mocha plugin.

Package Sidebar

Install

npm i gobble-forcecopy

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • julienw