Git Product home page Git Product logo

gulp's People

Contributors

cvan avatar matthewmueller avatar shinnn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gulp's Issues

File extension not supported

Perhaps I'm doing something wrong here -- I'm trying to use a gulp plugin to compile jade, but alas duo is telling me that this file type is not supported.

The folder structure of the project:

.
├── app.coffee
├── index.jade
└── package.json

Code in app.coffee, which is the point from which I'm running duo:

Duo    = require 'duo'
gulp   = require 'duo-gulp'
accord = require 'gulp-accord'

duo = Duo(__dirname)
  .entry('index.jade')
  .use(gulp(accord)('jade'))

duo.run (err, src) ->
  if err then return console.error(err.stack)
  console.log src

The jade file is just a generic hello world, and package.json also generic with just the packages referenced above installed. When I execute app.coffee, I get this error back:

Error: index.jade: ".jade" not supported
  at error (/Users/jeff/Desktop/duo-test/node_modules/duo/lib/duo.js:986:10)
  at Duo.callee$0$2$ (/Users/jeff/Desktop/duo-test/node_modules/duo/lib/duo.js:474:13)
  at Empty.invoke (evalmachine.<anonymous>:148:31)
  at Duo.next (/Users/jeff/Desktop/duo-test/node_modules/duo/node_modules/co/index.js:74:21)
  at Duo.<anonymous> (/Users/jeff/Desktop/duo-test/node_modules/duo/node_modules/co/index.js:93:18)
  at Object._onImmediate (/Users/jeff/Desktop/duo-test/node_modules/duo/node_modules/co/index.js:52:14)
  at processImmediate [as _immediateCallback] (timers.js:336:15)

Halp!

Example in README is confusing

I don't follow the example in the README.

var gulp = require('duo-gulp');

Is there any other way to use this plugin without wrapping gulp?

var duo = Duo(root).entry(entry);

What is root and entry?

duo.run(fn);

What is fn?

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.