@omnia/tooling-composers
Version:
Provide tooling to work with manifest things.
30 lines (29 loc) • 1.18 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DevelopmentEnvironment = void 0;
const DevelopmentBuildConfiguration_1 = require("./DevelopmentBuildConfiguration");
const DevelopmentHostingEnvironment_1 = require("./DevelopmentHostingEnvironment");
class DevelopmentEnvironment {
/** Do not instantiate, use static members instead of constructor / new DevelopmentEnvironment().
E.g. DevelopmentEnvironment.hosting.
*/
constructor(localOverride) {
this.localOverride = localOverride;
}
/** Add information about your hosting environment.
E.g. Local port serving your manifests
*/
static get hosting() {
return new DevelopmentHostingEnvironment_1.DevelopmentHostingEnvironment(false);
}
get hosting() {
return new DevelopmentHostingEnvironment_1.DevelopmentHostingEnvironment(this.localOverride);
}
get build() {
return new DevelopmentBuildConfiguration_1.DevelopmentBuildConfiguration();
}
}
exports.DevelopmentEnvironment = DevelopmentEnvironment;
DevelopmentEnvironment.localOverride = () => {
return new DevelopmentEnvironment(true);
};