-
Notifications
You must be signed in to change notification settings - Fork 20
API reference
Returns a node object representing the contents of the 'foo' directory.
Returns the result of merging the input nodes. Later files overwrite earlier ones.
Returns a tree that is the result of applying transformer to node1. See Writing plugins for more information.
Sometimes it's useful, for debugging purposes, to dump part of your build to disk in order to inspect it. This method will continuously write the contents of node to 'tmp-some-dir' whenever they change, as long as Gobble is running. It returns this, so it doesn't affect the build in any way - it's just a convenient way to see what's going on.
If you pass { clean: true } as the second argument, the target folder will be emptied, otherwise existing files will be left alone.
There are a handful of built-in transforms:
Filters out any files that don't match patterns. patterns can be a minimatch string, or an array of them.
Opposite of node.include(patterns).