OutPut.js 776 B

123456789101112131415161718192021
  1. const Fs=require("fire-fs"),FsExtra=require("fs-extra"),Path=require("fire-path");
  2. module.exports={
  3. get rootDir(){
  4. return Path.join(Editor.Project.path,"packages-hot-update")
  5. },
  6. get manifestDir(){
  7. return Path.join(this.rootDir,"manifest")
  8. },
  9. get testServerDir(){
  10. return Path.join(this.rootDir,"test-server")
  11. },
  12. get versionsDir(){
  13. return Path.join(this.rootDir,"versions")
  14. },
  15. get reducedDir(){
  16. return Path.join(this.rootDir,"reduced-res")
  17. },
  18. initialization(){
  19. FsExtra.ensureDirSync(this.rootDir),FsExtra.ensureDirSync(this.manifestDir),FsExtra.ensureDirSync(this.testServerDir),FsExtra.ensureDirSync(this.versionsDir),FsExtra.ensureDirSync(this.reducedDir)
  20. }
  21. };