gobble-forcecopy
v1.0.0
Published
Force a copy of all files
Downloads
3
Readme
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.