UNPKG

mxdocgen

Version:

A small tool that mimics the documentation generation capabilities offered in Mendix Studio Pro, but with greater flexibility. It uses the Mendix Model SDK to extract information from a Mendix model, which is then fed into a set of templates to generate

25 lines 1.03 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; exports.__esModule = true; var os_1 = __importDefault(require("os")); var fs_extra_1 = __importDefault(require("fs-extra")); var path_1 = __importDefault(require("path")); var templates_1 = require("../../documentation/templates"); exports.command = "copy-templates <target>"; exports.describe = "Copy the default templates to another location for modification"; exports.builder = { target: { describe: "Target directory for the templates", type: "string" } }; exports.handler = function (args) { var targetDirectory = args.target.startsWith("~/") ? path_1["default"].join(os_1["default"].homedir(), args.target.slice(2)) : args.target; fs_extra_1["default"].ensureDirSync(targetDirectory); fs_extra_1["default"].copySync(templates_1.defaultTemplateConfig.directory, targetDirectory); }; //# sourceMappingURL=copytemplates.js.map