gobblejs / gobble

The last build tool you'll ever need
333 stars 20 forks source link

add pipe() #95

Closed icambron closed 7 years ago

icambron commented 8 years ago

Proposed fix for #94

Rich-Harris commented 8 years ago

I like this! How about adding an options argument so that you can do this sort of thing?

module.exports = gobble([
  gobble( 'src/a' ).pipe( x, { id: 'a' }),
  gobble( 'src/b' ).pipe( x, { id: 'b' })
]);

That way you could more neatly encapsulate things like moving the resulting node to a specific directory.

icambron commented 8 years ago

Done!

icambron commented 8 years ago

(Also, I do see that the build is failing on Appveyor, but if I understand the output correctly, it's an environment/Node-building issue, and not a problem with this PR)