Node.js
Running the pre-built Node.js pipeline directly
Run the following command to run the pre-built Node.js Pipeline without having to initialize a project:
fluentci run nodejs_pipeline
Add Bun Pipeline to your project
Run the following command to add Bun pipeline to your project:
fluentci init -t nodejs
This will create a .fluentci
directory in your project, feel free to customize the pipeline for your needs.
You can then run the following command to start the pipeline:
fluentci run .
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 { test, build } from "https://pkg.fluentci.io/[email protected]/mod.ts";
await test();
await build();