Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tsirysndr/fluent-azure-pipelines

Generate `azure-pipelines.yml` from a simple declarative syntax in TypeScript 🛠️ 💻 ✨
https://github.com/tsirysndr/fluent-azure-pipelines

azure-devops cicd deno deno-module pipeline typescript

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# Fluent Azure Pipelines

[![deno module](https://shield.deno.dev/x/fluent_azure_pipelines)](https://deno.land/x/fluent_azure_pipelines)
![deno compatibility](https://shield.deno.dev/deno/^1.34)
[![](https://jsr.io/badges/@tsirysndr/fluent-az-pipelines)](https://jsr.io/@tsirysndr/fluent-az-pipelines)
[![](https://img.shields.io/codecov/c/gh/tsirysndr/fluent-azure-pipelines)](https://codecov.io/gh/tsirysndr/fluent-azure-pipelines)

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

## 🚀 Usage

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