Giter Club home page Giter Club logo

gulp-jade-find-affected's People

Contributors

teltploek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gulp-jade-find-affected's Issues

.jade + .pug

Hi! I like this plugin, but I use .pug filetype istead of .jade.
Can you fix this โ€” add search .pug as options.
Because i allways change manualy your plugin when I start a new project :)

Plugin causing Error: stream.push() after EOF

OSX: 10.11.3
Node: 0.12.2
Gulp: 3.9.0

Adding the plugin results in the following error

Error: stream.push() after EOF
  at readableAddChunk (/Users/craigmdennis/Sites/megamac/node_modules/readable-stream/lib/_stream_readable.js:185:15)
  at DestroyableTransform.Readable.push (/Users/craigmdennis/Sites/megamac/node_modules/readable-stream/lib/_stream_readable.js:163:10)
  at DestroyableTransform.Transform.push (/Users/craigmdennis/Sites/megamac/node_modules/readable-stream/lib/_stream_transform.js:133:32)
  at /Users/craigmdennis/Sites/megamac/node_modules/gulp-jade-find-affected/index.js:72:14
  at arrayEach (/Users/craigmdennis/Sites/megamac/node_modules/lodash/index.js:1289:13)
  at Function.<anonymous> (/Users/craigmdennis/Sites/megamac/node_modules/lodash/index.js:3345:13)
  at /Users/craigmdennis/Sites/megamac/node_modules/gulp-jade-find-affected/index.js:71:9
  at findAffectedRecurse (/Users/craigmdennis/Sites/megamac/node_modules/gulp-jade-find-affected/index.js:53:3)
  at /Users/craigmdennis/Sites/megamac/node_modules/gulp-jade-find-affected/index.js:48:9
  at arrayEach (/Users/craigmdennis/Sites/megamac/node_modules/lodash/index.js:1289:13)
  at Function.<anonymous> (/Users/craigmdennis/Sites/megamac/node_modules/lodash/index.js:3345:13)
  at /Users/craigmdennis/Sites/megamac/node_modules/gulp-jade-find-affected/index.js:27:7
  at f (/Users/craigmdennis/Sites/megamac/node_modules/once/once.js:17:25)
  at Glob.<anonymous> (/Users/craigmdennis/Sites/megamac/node_modules/glob/glob.js:133:7)
  at emitOne (events.js:90:13)
  at Glob.emit (events.js:182:7)
  at Glob._finish (/Users/craigmdennis/Sites/megamac/node_modules/glob/glob.js:172:8)
  at done (/Users/craigmdennis/Sites/megamac/node_modules/glob/glob.js:159:12)
  at Glob._processGlobStar2 (/Users/craigmdennis/Sites/megamac/node_modules/glob/glob.js:601:12)
  at /Users/craigmdennis/Sites/megamac/node_modules/glob/glob.js:590:10
  at RES (/Users/craigmdennis/Sites/megamac/node_modules/inflight/inflight.js:23:14)
  at f (/Users/craigmdennis/Sites/megamac/node_modules/once/once.js:17:25)
  at lstatcb_ (/Users/craigmdennis/Sites/megamac/node_modules/glob/glob.js:491:7)
  at RES (/Users/craigmdennis/Sites/megamac/node_modules/inflight/inflight.js:23:14)
  at f (/Users/craigmdennis/Sites/megamac/node_modules/once/once.js:17:25)
  at FSReqWrap.oncomplete (fs.js:82:15)

Your code seems not to work correctly with sub folders

I've got two files in a sub folder:

  • layouts/frontend.jade
  • layouts/frontend-menu.jade

the first jade file includes the other one by:

include frontend-menu.jade

When I modify frontend-menu.jade, it seems not to find the frontend.jade as affected file.

Well, anyways, it's better to use

var getJadeDependencies = function (file) {
    return require(`jade`).compileFile(file).dependencies;
};

to get the dependencies.

I'm also using dependency-graph.

Look at my file how I solved it:

[https://github.com/eschmid72/jade2blade/blob/master/lib/jade2blade.js]

Don't work with gulp 3.8

TypeError: Object # has no method 'indexOf'
at /home/slava/dev/wally/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/node_modules/globule/lib/globule.js:25:17

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.