minidev
Version:
支付宝小程序开发 cli(minidev)提供了常用的支付宝系小程序开发指令,能够方便地在各类平台上快速进行小程序的开发、预览、上传等操作。
33 lines (32 loc) • 1.32 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BuilderDebugContext = void 0;
const path_1 = require("path");
class BuilderDebugContext {
constructor(config) {
this.assetsQueryUrl = '';
this.injectCodeTempPath = '';
this.offlineDirectoryPath = '';
this.readonlyDirectoryPath = '';
this.assetsMapFilename = '';
this.assetsQueryUrl = config.assetsQueryUrl;
this.injectCodeTempPath = config.injectCodeTempPath;
this.offlineDirectoryPath = config.offlineDirectoryPath;
this.readonlyDirectoryPath = config.readonlyDirectoryPath;
this.assetsMapFilename = config.assetsMapFilename;
this.boatmanFilename = config.boatmanFilename;
}
getAssetsMapFilePath() {
return (0, path_1.join)(this.offlineDirectoryPath, this.assetsMapFilename);
}
getBoatmanFilePath(target) {
return (0, path_1.join)(this.offlineDirectoryPath, this.boatmanFilename[target]);
}
getReadonlyAssetsMapFilePath() {
return (0, path_1.join)(this.readonlyDirectoryPath, this.assetsMapFilename);
}
getReadonlyBoatmanFilePath(target) {
return (0, path_1.join)(this.readonlyDirectoryPath, this.boatmanFilename[target]);
}
}
exports.BuilderDebugContext = BuilderDebugContext;