UNPKG

@viewdo/dxp-story-cli

Version:
16 lines (10 loc) 549 B
const App = require('./app') const builder = require('./app/builder') module.exports = async (options) => { const app = new App(options); let story_keys = (options.keys.length ? options.keys : false) || await app.prompt_service.selectFromKeys('Story', app.configuration_manager.story_keys, 'Build', options.all) app.console_service.log(`Building story assets from source in folder ${app.root}`.blue) await builder.build(story_keys, app.configuration_manager.config) app.console_service.log(`Build successful`.green) }