1.0.0 • Published 8 years ago

gobble-forcecopy v1.0.0

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

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.