UNPKG

@fesjs/create-fes-app

Version:
35 lines (34 loc) 636 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _utils = require("@fesjs/utils"); class AppGenerator extends _utils.Generator { constructor({ cwd, args, path, targetDir, name }) { super({ cwd, args }); this.path = path; this.targetDir = targetDir; this.name = name; } async writing() { this.copyDirectory({ context: { version: require('../../package.json').version, name: this.name }, path: this.path, target: this.targetDir }); } } exports.default = AppGenerator;