Skip to main content

Module: @ima/plugin-cli

Interfaces

Type Aliases

Command

Ƭ Command: "dev" | "link" | "build"

Defined in

types.ts:16


Plugin

Ƭ Plugin: (context: Context) => void | Promise<void>

Type declaration

▸ (context): void | Promise<void>

Parameters
NameType
contextContext
Returns

void | Promise<void>

Defined in

types.ts:69


Transformer

Ƭ Transformer: ({ source, context, }: { context: PipeContext ; source: Source }) => Source | Promise<Source>

Type declaration

▸ ({ source, context, }): Source | Promise<Source>

Parameters
NameType

| { source, context, } | Object | | { source, context, }.context | PipeContext | | { source, context, }.source | Source |

Returns

Source | Promise<Source>

Defined in

types.ts:4


TransformerOptions

Ƭ TransformerOptions: Object

Type declaration

NameType
testRegExp

Defined in

types.ts:11

Variables

clientServerConfig

Const clientServerConfig: ImaPluginConfig

Defined in

utils/configurations.ts:42


defaultConfig

Const defaultConfig: ImaPluginConfig

Defined in

utils/configurations.ts:6


nodeConfig

Const nodeConfig: ImaPluginConfig

Defined in

utils/configurations.ts:70

Functions

preprocessTransformer

preprocessTransformer(options): Transformer

Parameters

NameType
optionsPreprocessTransformerOptions

Returns

Transformer

Defined in

transformers/preprocessTransformer.ts:11


swcTransformer

swcTransformer(options): Transformer

Parameters

NameType
optionsOptions

Returns

Transformer

Defined in

transformers/swcTransformer.ts:59


typescriptDeclarationsPlugin

typescriptDeclarationsPlugin(options): Plugin

Parameters

NameType
optionsTypescriptDeclarationsPluginOptions

Returns

Plugin

Defined in

plugins/typescriptDeclarationsPlugin.ts:28