tsirysndr / fluent-aws-codepipeline

Generate AWS CodePipeline YAML config from a simple declarative syntax in TypeScript πŸ› οΈ πŸ’» ✨

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fluent AWS CodePipeline

deno module deno compatibility

Fluent AWS CodePipeline is a deno module for generating AWS CodePipeline configuration (buildspec.yml) files easily and fluently.

πŸš€ Usage

import { BuildSpec } from "https://deno.land/x/fluent_aws_codepipeline/mod.ts";

const buildspec = new BuildSpec();

buildspec
  .phase("install", {
    "runtime-versions": {
      golang: "1.13",
    },
  })
  .phase("build", {
    commands: [
      "echo Build started on `date`",
      "echo Compiling the Go code",
      "go build hello.go",
    ],
  })
  .phase("post_build", {
    commands: ["echo Build completed on `date`"],
  })
  .artifacts({
    files: ["hello"],
  });

console.log(buildspec.toString());

buildspec.save("buildspec.yml");

About

Generate AWS CodePipeline YAML config from a simple declarative syntax in TypeScript πŸ› οΈ πŸ’» ✨

License:MIT License


Languages

Language:TypeScript 93.6%Language:Nix 6.4%