Skip to content

Generate `azure-pipelines.yml` from a simple declarative syntax in TypeScript 🛠️ 💻 ✨

License

Notifications You must be signed in to change notification settings

tsirysndr/fluent-azure-pipelines

Repository files navigation

Fluent Azure Pipelines

deno module deno compatibility

Fluent Azure Pipelines is a deno module for generating Azure Pipelines configuration (azure-pipelines.yml) files easily and fluently.

🚀 Usage

import { AzurePipeline } from "https://deno.land/x/fluent_azure_pipelines/mod.ts";

const azurePipeline = new AzurePipeline();

azurePipeline
  .trigger(["master"])
  .pool({
    name: "Default",
    vmImage: "ubuntu-latest",
  })
  .step({
    task: "NodeTool@0",
    inputs: {
      versionSpec: "18.x",
    },
  })
  .step({
    script: "npm ci",
    displayName: "Install dependencies",
  })
  .step({
    script: "node index.mjs",
    displayName: "Run Dagger",
  });

azurePipeline.save("azure-pipelines.yml");

About

Generate `azure-pipelines.yml` from a simple declarative syntax in TypeScript 🛠️ 💻 ✨

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published