nl_tokens: build a file or a directory
pl_tokens: function ( inputPath , outputPath , outputCharset ) { var target = path . resolve ( inputPath ) , result = { 'success' : true , 'files' : [ ] } ; if ( fs . existsSync ( target ) ) { if ( fs . statSync ( target ) . isDirectory ( ) ) { var targets = fs . readdirSync ( target ) ; for ( var i in targets ) { if ( ! ModuleCompiler . isFileIgnored ( targets [ i ] ) ) { var inputFile = path . resolve ( target , targets [ i ] ) , outputFile = path . join ( outputPath , targets [ i ] ) ; if ( path . extname ( inputFile ) === '.js' ) { result . files . push ( ModuleCompiler . build ( inputFile , outputFile , outputCharset ) ) ; } } } } else { result . files . push ( ModuleCompiler . build ( target , outputPath , outputCharset ) ) ; } } else { // MC.build('pkgName/abc'); var modulePath = ModuleCompiler . getModulePath ( inputPath ) ; if ( modulePath ) { result . files . push ( ModuleCompiler . build ( modulePath , outputPath , outputCharset ) ) ; } else { result . success = <mask> ; ! ModuleCompiler . _config . silent && console . info ( '[err]' . bold . red + ' cannot find target: %s' , target ) ; } } return result ; }