Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

galvatron.watch doesn't accept an array of strings as second argument #27

Open
zephor opened this issue Sep 6, 2015 · 0 comments
Open

Comments

@zephor
Copy link

zephor commented Sep 6, 2015

example in the documentation has this line:

galv.watch('src/**', ['dist']);

which has an array of strings as the second argument.

It looks like galvatron.watch only accepts a function as the second arguments:

module.exports = function (pattern, task) {
  var stream = task();

When I try to use the example in the docs I get this error:

TypeError: object is not a function
    at Object.module.exports [as watch] (<project>/node_modules/galvatron/src/watch.js:6:16)
...

either the docs are wrong or this is a bug in galvatron watch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant