@dr-yaml/adapter-bitrise
v0.0.2
Published
Bitrise adapter — parse + emit between Bitrise YAML and @dr-yaml/ir.
Maintainers
Readme
@dr-yaml/adapter-bitrise
Bitrise adapter for the
dr-yaml toolchain. Parses
Bitrise YAML into @dr-yaml/ir and emits IR back to Bitrise
YAML deterministically.
Install
npm install @dr-yaml/adapter-bitrise @dr-yaml/irUsage
import { parse, emit } from "@dr-yaml/adapter-bitrise";
const { ok, pipeline, errors } = parse(yamlString);
const { yaml, lossReport } = emit(pipeline);before_run / after_run chains lift into the IR's Job.needs graph;
the emitter reconstructs them (with LossEntrys recorded when a needs
graph can't be expressed as a linear chain).
License
MIT.
