Skip to content

Home > vue-metamorph

vue-metamorph package

Functions

Function

Description

createVueMetamorphCli(options)

Creates a CLI instance

findManualMigrations(code, filename, plugins, opts)

Finds manual migration locations in a file

transform(code, filename, plugins, opts)

Runs codemods against source code

Interfaces

Interface

Description

CreateVueMetamorphCliOptions

vue-metamorph CLI Options

Namespaces

Namespace

Description

AST

astHelpers

Variables

Variable

Description

builders

AST Node builders

Type Aliases

Type Alias

Description

CodemodPlugin

A plugin that updates source code

CodemodPluginContext

ErrorReport

An error that was encountered during parsing or plugin execution

ManualMigrationPlugin

A plugin for finding nodes that cannot be migrated automatically

ManualMigrationPluginContext

ManualMigrationReport

An object containing a manual migration that a ManualMigrationPlugin reported

Plugin

Union of plugin types

ProgressCallback

Function signature for the onProgress function passed to createVueMetamorphCli

TransformResult

Return type of the transform function, containing new source code and codemod stats

VueProgram

ESTree Program type, with an additional property isScriptSetup that denotes whether the program represents the contents of a <script setup> block in a Vue SFC