nl_tokens: Makes a bundle out of a directory .
pl_tokens: function ( seed , parent ) { var bundle , ruleset = this . _loadRuleset ( seed ) , msg ; if ( seed . options . location ) { // This is fairly legacy, and we might be able to remove it. seed . baseDirectory = libpath . resolve ( seed . baseDirectory , seed . options . location ) ; } if ( ! ruleset ) { <mask> = 'Bundle "' + seed . name + '" has unknown ruleset ' + JSON . stringify ( seed . options . ruleset ) ; if ( seed . options . rulesets ) { msg += ' in rulesets ' + JSON . stringify ( seed . options . rulesets ) ; } throw new Error ( msg ) ; } bundle = new Bundle ( seed . baseDirectory , seed . options ) ; bundle . name = seed . name ; bundle . version = seed . version ; bundle . type = ruleset . _name ; this . _bundles [ bundle . name ] = bundle ; this . _bundlePaths [ libfs . realpathSync ( bundle . baseDirectory ) ] = bundle . name ; // wire into parent if ( parent ) { if ( ! parent . bundles ) { parent . bundles = { } ; } parent . bundles [ bundle . name ] = bundle ; } return bundle ; }