graph

  • function
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

  1. config {StealConfig}

  2. options {BuildOptions}Optional

Returns

{Stream<Object>}

A stream of objects that contains the dependency graph.

Help us improve StealJS by taking our community survey