Created
May 15, 2013 17:24
-
-
Save ded/5585682 to your computer and use it in GitHub Desktop.
get dependency tree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function init(config) { | |
var util = require('app/util') | |
, render = require('client/lib/render') | |
, router = require('client/lib/router') | |
, controllers = config.controllers | |
controllers.forEach(function (c) { | |
require(c) | |
}) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
head | |
- var files = util.getDependencyTreeFiles('client/app') | |
each file, i in files | |
script(src=file) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or you can do
browserify main.js --list
to print a list of newline-separated filenames.