123456789101112131415161718192021 |
- const Fs=require("fire-fs"),FsExtra=require("fs-extra"),Path=require("fire-path");
- module.exports={
- get rootDir(){
- return Path.join(Editor.Project.path,"packages-hot-update")
- },
- get manifestDir(){
- return Path.join(this.rootDir,"manifest")
- },
- get testServerDir(){
- return Path.join(this.rootDir,"test-server")
- },
- get versionsDir(){
- return Path.join(this.rootDir,"versions")
- },
- get reducedDir(){
- return Path.join(this.rootDir,"reduced-res")
- },
- initialization(){
- FsExtra.ensureDirSync(this.rootDir),FsExtra.ensureDirSync(this.manifestDir),FsExtra.ensureDirSync(this.testServerDir),FsExtra.ensureDirSync(this.versionsDir),FsExtra.ensureDirSync(this.reducedDir)
- }
- };
|