Skip to content

PURISTA API


PURISTA API / @purista/cli / scanPuristaProject

Function: scanPuristaProject()

scanPuristaProject(puristaConfig, projectRootPath?): Promise<PuristaProjectInfo>

Defined in: scanPuristaProject.ts:40

Walk through the file and folder structure and extract the existing services with their commands and subscriptions.

Parameters

puristaConfig

$schema

string = ...

eventBridge

"default" | "amqp" | "nats" | "mqtt" | "dapr" = ...

eventConvention

"camel" | "snake" | "kebab" | "pascal" | "pascalSnake" | "constantCase" | "dotCase" | "pathCase" | "trainCase" = ...

fileConvention

"camel" | "snake" | "kebab" | "pascal" | "pascalSnake" = ...

formatter

"biome" | "none" | "prettier" = ...

linter

"biome" | "eslint" | "none" = ...

runtime

"node" | "bun" = ...

servicePath

string = ...

projectRootPath?

string

Returns

Promise<PuristaProjectInfo>