Skip to main content
The Deno 2 Release Candidate is here
Learn more

Node.js Pipeline

fluentci pipeline deno module deno compatibility codecov

A ready-to-use CI/CD Pipeline for your Node.js projects.

🚀 Usage

Run the following command:

dagger run fluentci nodejs_pipeline

Or, if you want to use it as a template:

fluentci init -t nodejs

This will create a .fluentci folder in your project.

Now you can run the pipeline with:

dagger run fluentci .

Or simply:

fluentci

Environment variables

Variable Description Default
NODE_VERSION Node version to use 18.16.1
PACKAGE_MANAGER Package manager to use (npm, yarn, pnpm) npm

Jobs

Job Description
test Run the tests
build Build the project

Programmatic usage

You can also use this pipeline programmatically:

import Client, { connect } from "https://sdk.fluentci.io/v0.1.4/mod.ts";
import { Dagger } from "https://pkg.fluentci.io/nodejs_pipeline/mod.ts";

const { test, build } = Dagger;

function pipeline(src = ".") {
  connect(async (client: Client) => {
    await test(client, src);
    await build(client, src);
  });
}

pipeline();