Comments (8)
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.
from gulp.
I had the same thought: It would be nice if the README example used working code.
from gulp.
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.
from gulp.
Ah, I found a fantastic example in the duo repo: https://github.com/duojs/duo/blob/master/examples/gulpfile/gulpfile.js
from gulp.
@cvan I need to make this more clear in the readme, but there are 2 different places gulp can be used:
- Duo can be integrated into your Gulp workflow, compiling JS and CSS files. The example you linked to shows that.
- Gulp plugins can also be used within Duo to support Stylus, SASS, coffeescript, etc. That is what this plugin is for.
Note that these can be used in unison.
from gulp.
@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!
from 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.
+1!
from gulp.
@matthewmueller, @cvan I just wrapped duo-gulp into gulp-duo with loading coffee, less, sass plugins . It could reduce mentioned duo
boilerplate.
from gulp.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp.