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.
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.