UNPKG

athom-cli

Version:

Command-line interface for Homey Apps

19 lines (14 loc) 372 B
'use strict'; const Log = require('../../..').Log; const App = require('../../..').App; const colors = require('colors'); exports.desc = 'Build a Homey App for publishing'; exports.handler = async yargs => { let appPath = yargs.path || process.cwd(); try { let app = new App( appPath ); await app.build(); } catch( err ) { Log(colors.red(err.message)); } }