(entry, callback)
| 495 | async.mapSeries(bundler.entries(assetType,system.assets), iterator, andThen); |
| 496 | |
| 497 | function iterator(entry, callback) { |
| 498 | var options = { |
| 499 | constants: bundler.constants(), |
| 500 | locals: bundler.locals(), |
| 501 | //pathPrefix: entry.importedBy, |
| 502 | compress: true |
| 503 | }; |
| 504 | if (typeof entry.content === "string") { |
| 505 | callback(null, {content:entry.content,options:{}}); |
| 506 | } |
| 507 | else { |
| 508 | bundler.asset(entry, options, function(output) { |
| 509 | //TODO if err, flag has errors |
| 510 | callback(null, {content:output,options:{}}); |
| 511 | }); |
| 512 | } |
| 513 | } |
| 514 | |
| 515 | function andThen(err, results) { |
| 516 | var fileName = bundler.dests.paths[assetType]; |
nothing calls this directly
no outgoing calls
no test coverage detected