Open cvan opened 10 years ago
Oh, it's using the Duo JS API: https://github.com/duojs/duo/blob/master/docs/api.md
Let me know if you're still confused. Feel free to open a PR making it more clear.
I had the same thought: It would be nice if the README example used working code.
I spent quite some time looking through the code, the tests, and the Gulp API, and I'm still unclear what's the canonical way of calling duo
with gulp whenever my .js
file changes.
Ah, I found a fantastic example in the duo repo: https://github.com/duojs/duo/blob/master/examples/gulpfile/gulpfile.js
@cvan I need to make this more clear in the readme, but there are 2 different places gulp can be used:
Note that these can be used in unison.
@MatthewMueller Understood, thanks.
I didn't understand that duo-gulp
was meant to be used with transforms only. Since there are tests for everything non-JS, that makes sense to me now.
I ended up just requiring Duo directly. Instead of wrapping gulp
, it'd be nice if there was a gulp-duo
plugin that did the duo
boilerplate code that I added to my gulpfile
, including the file watching. Maybe I'll eventually make one.
Anyway, thanks for your help!
it'd be nice if there was a gulp-duo plugin that did the duo boilerplate code that I added to my gulpfile, including the file watching. Maybe I'll eventually make one.
+1!
I don't follow the example in the README.
Is there any other way to use this plugin without wrapping
gulp
?What is
root
andentry
?What is
fn
?