Skip to main content

Deno

Running the pre-built Deno pipeline directly

Run the following command to run the pre-built Deno pipeline without having to initialize a project:

fluentci run deno_pipeline

Add Deno Pipeline to your project

Run the following command to add Deno pipeline to your project:

fluentci init -t deno

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 .

Environment variables (Deno Deploy)

VariableDescriptionDefault
DENO_PROJECTYour project name
NO_STATICDisable static assetsfalse
EXCLUDEExclude files from deploy
DENO_DEPLOY_TOKENYour Deno Deploy token
DENO_MAIN_SCRIPTYour main scriptmain.tsx

Jobs

JobDescription
fmtFormat your code
lintLint your code
testRun your tests
deployDeploy to Deno Deploy

Programmatic usage

You can also use this pipeline programmatically:

import { fmt, lint, test } from "https://deno.land/x/deno_pipeline/mod.ts";

await fmt();
await lint();
await test();