"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var utils_1=require("../../../../lib/utils");function default_1(e){var t=e.params||{},r=e.options||{},e=utils_1.getEnvironment().workspaceRoot;if(!e)throw Error("请在 NgCortex 工程目录中操作！");r={getSeparatorCase:utils_1.getSeparatorCase,name:t.name,frontendName:t.name+(/(-f|F)rontend$/.test(t.name)?"":"-frontend"),prefix:r.prefix||"app"};process.chdir(__dirname),utils_1.src("./**/*",{base:"./files"}).pipe(utils_1.transform(function(e){e.path="frontends/"+e.path})).pipe(utils_1.ejs(r)).pipe(utils_1.dest(e,{workspaceRoot:e,log:!0})).subscribe()}exports.default=default_1;
