Skip to main content

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

Works with
This package works with Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
JSR Score
41%
Published
3 months ago (0.3.0)

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");

Add Package

deno add @tsirysndr/fluent-az-pipelines

Import symbol

import * as mod from "@tsirysndr/fluent-az-pipelines";

Add Package

npx jsr add @tsirysndr/fluent-az-pipelines

Import symbol

import * as mod from "@tsirysndr/fluent-az-pipelines";

Add Package

yarn dlx jsr add @tsirysndr/fluent-az-pipelines

Import symbol

import * as mod from "@tsirysndr/fluent-az-pipelines";

Add Package

pnpm dlx jsr add @tsirysndr/fluent-az-pipelines

Import symbol

import * as mod from "@tsirysndr/fluent-az-pipelines";

Add Package

bunx jsr add @tsirysndr/fluent-az-pipelines

Import symbol

import * as mod from "@tsirysndr/fluent-az-pipelines";