MCPcopy Create free account
hub / github.com/glslify/glslify / createDeps

Function createDeps

transform.js:208–223  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

206 return d
207
208 function createDeps (opts) {
209 var depper = gdeps(opts)
210 depper.on('error', function (err) { d.emit('error', err) })
211 depper.on('file', function (file) { d.emit('file', file) })
212 var transforms = sharedTransforms
213 transforms = Array.isArray(transforms) ? transforms : [transforms]
214 transforms.forEach(function(transform) {
215 transform = Array.isArray(transform) ? transform : [transform]
216 var name = transform[0]
217 var opts = transform[1] || {}
218 if (!opts.post) {
219 depper.transform(name, extend({}, opts))
220 }
221 })
222 return depper
223 }
224
225 function applyPostTransforms (rootFile, deps, mopts, done) {
226 var source = glslBundle(deps)

Callers 4

tagexprFunction · 0.85
callexprFunction · 0.85
callcompileFunction · 0.85
callfileFunction · 0.85

Calls 1

gdepsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…