UNPKG

johnny-cli

Version:

CLI for Johnny Deps

18 lines (16 loc) 511 B
// @flow import Dll from '../Dll'; import JohnnyFile from '../JohnnyFile'; import {getDllHostPackages, logError} from 'helpers'; import R from 'ramda'; require('babel-polyfill'); export default async (options: Object) => { try { process.stdout.write('\n\x1b[1mRebuilding dll-bundle...\x1b[0m'); await Dll({path: JohnnyFile().get('path')}).build({packages: R.keys(getDllHostPackages())}); process.stdout.write('\x1b[1m\x1b[32mDone\x1b[0m\n'); } catch(error) { logError('\n\n' + error); return; } }