- The data/repositories.json is manually updated to reflect the change
npm run capture-node-data
is ran to generate new node data files- These changes are committed and pushed
- The data/repositories.json is manually updated to reflect the change
npm run capture-node-data
is ran to generate new node data files- These changes are committed and pushed
The data in this file is the foundation of all of the data used and generated by this application.
This script is meant to be the possible API interface into the dependency graph data. These are examples of how can use the code:
#!/usr/bin/env node
const DependencyGraph = require('./dependency-graph')
const graph = new DependencyGraph()
console.log(graph.getAll())
console.log(graph.getDependantsOf('ember-frost-sort'))
console.log(graph.getDependenciesOf('ember-frost-date-picker'))
console.log(graph.getStartingAt('ember-frost-date-picker'))
console.log(graph.hasNode('ember-frost-date-picker'))
The DependencyGraph()
class can be instantiated with a boolean value indicating whether the data/node-all.json or data/node-foundation.json data should be interrogated.
This command uses the data in the data/repositories.json file to identify dependencies the repositories have to themselves. It generates the data/node-all.json and data/node-foundation.json files for use by the npm run cli
command and lib/dependency-graph/index.js script.
Running just npm run cli
will execute the script with default values. If you wish you to pass options to the script you can do so via npm run cli -- --option=value
where the options and values can be found by running npm run cli -- --help
.