UNPKG

@codibre/confs

Version:

A simple package to centralize IDE configuration of all codibre's projects

31 lines (30 loc) 1.17 kB
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const commander_1 = require("commander"); const lib_1 = require("./lib"); commander_1.program .command('setup-project') .description('It will create basic config files and update your package scripts') .option('-f, --force', 'force overwriting') .action(lib_1.setupProject); commander_1.program .command('add-scripts') .description('It will update your package scripts') .option('-f, --force', 'force overwriting') .action(lib_1.addScripts); commander_1.program .command('create-config-files') .description('It will create config files') .option('-f, --force', 'force overwriting') .action(lib_1.createConfigFiles); commander_1.program .command('update-changelog') .description('Create a new entry in the changelog with the current package version') .action(lib_1.updateChangelog); commander_1.program .command('help', { isDefault: true }) .description('show help information') .action(lib_1.getHelp); commander_1.program.version(process.env.NPM_PACKAGE_VERSION); commander_1.program.parse(process.argv);