Skip to content

PURISTA API


PURISTA API / @purista/cli / addPuristaService

Function: addPuristaService()

addPuristaService(input): Promise<void>

Defined in: addPuristaService.ts:19

Add all folders and files for a new service to the project.

Parameters

input

codeWriterOptions?

Partial<Options>

projectRootPath?

string

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; }

puristaConfig.$schema

string = ...

puristaConfig.eventBridge

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

puristaConfig.eventConvention

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

puristaConfig.fileConvention

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

puristaConfig.formatter

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

puristaConfig.linter

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

puristaConfig.runtime

"node" | "bun" = ...

puristaConfig.servicePath

string = ...

puristaProject

PuristaProjectInfo

serviceDescription

string

serviceName

string

serviceVersion?

string

Returns

Promise<void>