@iot-studio/material-toolkit-utils
Version:
material 工具链相关工具
24 lines (23 loc) • 1.2 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.show = exports.showHelp = void 0;
var chalk = require('chalk');
function showHelp() {
console.log("\n Usages:\n material start: " + chalk.cyan('Starts the development server.') + "\n material build: " + chalk.cyan('Code compilation') + "\n material pack: " + chalk.cyan('Generate bundle.zip') + "\n material create <component-name>: " + chalk.cyan('Create Component') + "\n\n Options:\n -v, --version \u663E\u793A\u7248\u672C\u53F7\n -h, --help \u663E\u793A\u5E2E\u52A9\n ");
}
exports.showHelp = showHelp;
function show(componentName) {
console.log();
console.log("Inside that directory, you can run serveral commands");
console.log();
console.log(chalk.cyan(" material start: Starts the development server."));
console.log(chalk.cyan(" material build: Code compilation"));
console.log();
console.log("We suggest that you begin by typing:");
console.log();
console.log(chalk.cyan(" cd"), componentName);
console.log("" + chalk.cyan(" npm install"));
console.log("" + chalk.cyan(" npm start"));
console.log();
}
exports.show = show;