appack
Version:
appack is a modern webapp generator
26 lines (19 loc) • 932 B
JavaScript
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
typeof define === 'function' && define.amd ? define(factory) :
(factory());
}(this, (function () { 'use strict';
var program = require("commander");
var chalk = require("chalk");
var log = console.log;
program.version("0.1.0").option("-p, --peppers", "Add peppers").option("-P, --pineapple", "Add pineapple").option("-b, --bbq-sauce", "Add bbq sauce").option("-c, --cheese [type]", "Add the specified type of cheese [marble]", "marble").parse(process.argv);
console.log("you ordered a pizza with:");
if (program.peppers) console.log(" - peppers");
if (program.pineapple) console.log(" - pineapple");
if (program.bbqSauce) console.log(" - bbq");
console.log(" - %s cheese", program.cheese);
log(chalk.red("Appack", chalk.underline.bgBlue("0.0.1")));
// export default () => {
// return `hello world`;
// };
})));