nl_tokens: HELPER FUNCTIONS Prepare shell comand for jspm bundle @param { Object } - An options object with this properties : { Source path src : app / main . js
pl_tokens: function _shellBundle ( { src = 'app/main.js' , dest = 'dist' , baseName = 'build' , ignoreVendors = false , onlyVendors = false } = { } , jspmConfig , useSourcemaps = false ) { // Get dependencies from jspm configurations const vendors = Object . keys ( jspmConfig . dependencies ) // Commands to prepare the shell to bundle with jspm let arithmetic = '' let opt = '--minify --skip-source-maps' let source = src // Only minify and keep sourcemaps if ( useSourcemaps ) { opt = '--minify' } // Make string to ignore vendors in bundle app. if ( ignoreVendors ) { arithmetic = _vendorsList ( vendors , <mask> ) } // Make string to include only vendors in bundle dep and change source // command. if ( onlyVendors ) { source = vendors [ 0 ] arithmetic = _vendorsList ( vendors , false ) } // Return shell command to bundle return [ ` ${ source } ${ arithmetic } ${ dest } ${ baseName } ${ opt } ` ] }