graph
steal-tools.streams.graph
Create a stream that will result in a dependency graph.
stealTools.streams.graph(config, options)
var s = require("steal-tools").streams;
var stream = s.graph({
config: __dirname + "/package.json!npm"
}, {
minify: false
});
stream.on("data", function(data){
var dependencyGraph = data.graph;
});
Parameters
-
config
{StealConfig}
-
options
{BuildOptions}
Optional
Returns
{Stream<Object>}
A stream of objects that contains the dependency graph.