v0.7.0
A ready-to-use CI/CD Pipeline and jobs for NodeJS projects.
Attributes
Includes Deno configuration
Repository
Current version released
7 months ago
Dependencies
other
jsr:@std/flags@0.218.2jsr:@std/fmt@0.218.2/colorsjsr:@std/path@0.218.2jsr:@std/testing@0.218.2/assertsjsr:@tsirysndr/env-js@0.1.2jsr:@tsirysndr/fluent-az-pipelines@0.3jsr:@tsirysndr/fluent-circleci@0.3jsr:@tsirysndr/fluent-codepipeline@0.3jsr:@tsirysndr/fluent-gh-actions@0.3jsr:@tsirysndr/fluent-gitlab-ci@0.5npm:graphql-request@6.1.0npm:graphql@16.8.1npm:lodash@4.17.21npm:node-color-log@11.0.2npm:stringify-tree@1.1.1
Node.js Pipeline
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
🧩 Dagger Module
Use as a Dagger module:
dagger install github.com/fluent-ci-templates/nodejs-pipeline@main
Call a function from the module:
dagger -m github.com/fluent-ci-templates/nodejs-pipeline@main call \
test --src .
dagger -m github.com/fluent-ci-templates/nodejs-pipeline@main call \
build --src .
🛠️ 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 |
---|---|
build | Build the project |
install | Install dependencies |
test | Run the tests |
run | Run a custom task |
test(
src: Directory | string | undefined = ".",
packageManager?: string,
nodeVersion?: string
): Promise<string>
build(
src: Directory | string | undefined = ".",
packageManager?: string,
nodeVersion?: string
): Promise<Directory | string>
run(
src: Directory | string | undefined = ".",
task: string,
packageManager?: string,
nodeVersion?: string
): Promise<string>
install(
src: Directory | string | undefined = ".",
packageManager?: string,
nodeVersion?: string
): Promise<Container | string>
dev(
src: Directory | string | undefined = ".",
packageManager?: string,
nodeVersion?: string
): Promise<Container | string>
👨💻 Programmatic usage
You can also use this pipeline programmatically:
import { test, build } from "jsr:@fluentci/nodejs";
await test();
await build();