Skip to main content
Deno 2 is finally here πŸŽ‰οΈ
Learn more

Fluent CircleCI

deno module deno compatibility

Fluent CircleCI is a deno module for generating CircleCI configuration files easily and fluently.

πŸš€ Usage

import { CircleCI, Job } from "https://deno.land/x/fluent_circleci/mod.ts";

const circleci = new CircleCI();

const build = new Job()
  .docker([{ image: "cimg/node:lts" }])
  .step("checkout")
  .step({
    setup_remote_docker: {
      docker_layer_caching: true,
    },
  })
  .step({
    run: {
      name: "Install deps",
      command: "npm ci",
    },
  })
  .step({
    run: {
      name: "Dagger Pipeline",
      command: "node index.mjs",
    },
  });

circleci.jobs({ build }).workflow("dagger", ["build"]);

circleci.save(".circleci/config.yml");