astro
Version:
Astro is a modern site builder with web best practices, performance, and DX front-of-mind.
41 lines (40 loc) • 942 B
JavaScript
import { BaseApp } from "../app/entrypoints/index.js";
import { BuildPipeline } from "./pipeline.js";
import { BuildErrorHandler } from "../errors/build-handler.js";
class BuildApp extends BaseApp {
createPipeline(_streaming, manifest, ..._args) {
return BuildPipeline.create({
manifest
});
}
isDev() {
return true;
}
setInternals(internals) {
this.pipeline.setInternals(internals);
}
setOptions(options) {
this.pipeline.setOptions(options);
this.logger.setDestination(options.logger.options.destination);
this.resetAdapterLogger();
}
getOptions() {
return this.pipeline.getOptions();
}
getSettings() {
return this.pipeline.getSettings();
}
createErrorHandler() {
return new BuildErrorHandler(this);
}
getQueueStats() {
if (this.pipeline.nodePool) {
return this.pipeline.nodePool.getStats();
}
}
logRequest(_options) {
}
}
export {
BuildApp
};