Skip to content

Instantly share code, notes, and snippets.

@ded
Created May 15, 2013 17:24
Show Gist options
  • Save ded/5585682 to your computer and use it in GitHub Desktop.
Save ded/5585682 to your computer and use it in GitHub Desktop.
get dependency tree
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)
})
}
head
- var files = util.getDependencyTreeFiles('client/app')
each file, i in files
script(src=file)
Copy link

ghost commented May 16, 2013

Or you can do browserify main.js --list to print a list of newline-separated filenames.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment