12345678910111213141516171819202122232425262728 |
- const Fs = require('fire-fs');
- const FsExtra = require('fs-extra');
- const 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 reduceDir () {
- return Path.join(this.rootDir, 'reduced-res');
- },
- get versionsDir () {
- return Path.join(this.rootDir, 'versions');
- },
- initialization () {
- FsExtra.ensureDirSync(this.rootDir);
- FsExtra.ensureDirSync(this.manifestDir);
- FsExtra.ensureDirSync(this.testServerDir);
- FsExtra.ensureDirSync(this.reduceDir);
- FsExtra.ensureDirSync(this.versionsDir);
- },
- };
|