node-homey-config-composer
Version:
Config utility for Homey apps
18 lines (12 loc) • 483 B
JavaScript
;
const path = require('path');
const commander = require('commander');
const Composer = require('./lib/composer');
const pjson = require(path.join(__dirname, 'package.json'));
commander
.version(pjson.version);
commander
.command('compose [configPath] [projectPath]')
.description('composes files in the config folder into the app.json file')
.action((configPath, projectPath) => new Composer(projectPath, configPath).compose());
commander.parse(process.argv);