nl_tokens: This class finds and resolves all the dependencies within a set of source files . In order to do so finders and resolvers strategies are used and the results are collected .
pl_tokens: function Analyzer ( config , state ) { config = config || { } ; this . state = state ; this . config = extend ( <mask> , { finders : { styl : [ { name : 'regex' , config : { pattern : / ^\s*(?:@import|@require)\s+['"](.+?)['"](?:$|;) / gm , exclude : [ 'nib' ] } } ] , coffee : [ { name : 'regex' , config : { pattern : / ^\s*(?:.+?\s*[=\:\(\{\;])?\s*require\s*(?:\()?['"]([^'"]+)['"](?:\))? / gm } } ] , cjsx : [ { name : 'regex' , config : { pattern : / ^\s*(?:.+?\s*[=\:\(\{\;])?\s*require\s*(?:\()?['"]([^'"]+)['"](?:\))? / gm } } ] , js : [ { name : 'regex' , config : { pattern : [ / ^\s*(?:.+?\s*[=\:\(\{\;])?\s*require\s*\(?['"]([^'"]+)['"]\)? / gm , / \bimport\s+(?:.+\s+from\s+)?[\'"]([^"\']+)["\'] / gm ] } } ] , jsx : [ { name : 'regex' , config : { pattern : [ / ^\s*(?:.+?\s*[=\:\(\{\;])?\s*require\s*\(?['"]([^'"]+)['"]\)? / gm , / \bimport\s+(?:.+\s+from\s+)?[\'"]([^"\']+)["\'] / gm ] } } ] } , resolvers : { styl : [ { name : 'basic' , config : { extensions : [ 'styl' , 'css' ] } } ] , coffee : [ { name : 'common-js' , config : { extensions : [ 'coffee' , 'js' , 'cjsx' , 'jsx' ] } } ] , cjsx : [ { name : 'common-js' , config : { extensions : [ 'coffee' , 'js' , 'cjsx' , 'jsx' ] } } ] , js : [ { name : 'common-js' , config : { extensions : [ 'coffee' , 'js' , 'cjsx' , 'jsx' ] } } ] , jsx : [ { name : 'common-js' , config : { extensions : [ 'coffee' , 'js' , 'cjsx' , 'jsx' ] } } ] } } , config ) ; this . finders = { } ; this . resolvers = { } ; this . createFinders ( ) ; this . createResolvers ( ) ; }