"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TemplateItem=exports.TemplateDefault=void 0;const fs_extra_1=__importDefault(require("fs-extra")),path_1=__importDefault(require("path"));exports.TemplateDefault={gadget:[{uri:"templates/helloWorld_1.0.2.zip",name:"helloWorld",version:"1.0.2",resourceType:"gadget"},{uri:"templates/gadgetDemo_1.0.4.zip",name:"gadgetDemo",version:"1.0.4",resourceType:"gadget"}],block:[{uri:"templates/block_1.0.4.zip",name:"block",version:"1.0.4",resourceType:"block"}],h5_in_block:[{uri:"templates/block-h5_1.0.0.zip",name:"block-h5",version:"1.0.0",resourceType:"h5_in_block"}],gadget_plugin:[{uri:"templates/gadget-plugin_1.0.1.zip",name:"gadget-plugin",version:"1.0.1",resourceType:"gadget",subType:"plugin"}]};class TemplateItem{constructor(e,t,a,s,r,i="",l){this.targetRelPath="../templates",this.delPath=".",this.meta={},this.type=e,this.uri=t,this.name=a,this.version=s,this.resourceType=r,this.resourceName=`${a}_${s}`,this.unzipName=l||this.name,this.subType=i}getMeta(e){const{desc:t,name:a,img:s,className:r}=fs_extra_1.default.readJSONSync(path_1.default.join(e,"package.json"));return{desc:t,name:a,img:s,className:r}}finish(e){}}exports.TemplateItem=TemplateItem;