teltploek / gulp-jade-find-affected Goto Github PK
View Code? Open in Web Editor NEWFind affected files when changing jade files that are dependencies in other files and pass them through the stream for compilation
Find affected files when changing jade files that are dependencies in other files and pass them through the stream for compilation
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 :)
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)
Works great with includes, but extends (used as basic page templates) don't do nothing for me. Any chance to add that functionality? Thanks!
Hello,
You can forget this issue, I found the solution, it was a mistake in my task !
Sorry & Kindly
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]
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.