Giter Club home page Giter Club logo

Comments (8)

matthewmueller avatar matthewmueller commented on July 20, 2024

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.

zeke avatar zeke commented on July 20, 2024

I had the same thought: It would be nice if the README example used working code.

from gulp.

cvan avatar cvan commented on July 20, 2024

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.

cvan avatar cvan commented on July 20, 2024

Ah, I found a fantastic example in the duo repo: https://github.com/duojs/duo/blob/master/examples/gulpfile/gulpfile.js

from gulp.

matthewmueller avatar matthewmueller commented on July 20, 2024

@cvan I need to make this more clear in the readme, but there are 2 different places gulp can be used:

  1. Duo can be integrated into your Gulp workflow, compiling JS and CSS files. The example you linked to shows that.
  2. 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.

cvan avatar cvan commented on July 20, 2024

@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.

matthewmueller avatar matthewmueller commented on July 20, 2024

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.

sergeyt avatar sergeyt commented on July 20, 2024

@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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.