vue-metamorph package
Functions
Function | Description |
|---|---|
Creates a CLI runner that matches files against a glob pattern and runs codemod plugins and manual migration plugins against them. The runner parses | |
Runs manual migration plugins against source code and returns reports that identify the nodes that need human attention. This function doesn't change the code. | |
Parses source code into ASTs, runs codemod plugins against them, and returns the transformed source code. This is the core function of vue-metamorph. The filename determines how vue-metamorph parses the code:
| |
Traverses a script AST. This is an alias for the It's declared here rather than re-exported directly so that it carries a release tag. api-extractor can't attach a release tag to a destructured binding inside the vendored module. |
Interfaces
Interface | Description |
|---|---|
The options for the vue-metamorph CLI runner. | |
The parsed CLI options that vue-metamorph passes to each plugin. Options registered through ts To give an option a declared type, augment this interface once. Match the declaration to the option's Commander registration. Augmentation doesn't validate or convert values. ts |
Namespaces
Namespace | Description |
|---|---|
Variables
Variable | Description |
|---|---|
The AST node builders for both script nodes and Vue SFC template nodes. Script builders create JavaScript and TypeScript AST nodes, such as |
Type Aliases
Type Alias | Description |
|---|---|
A plugin that changes source code. | |
An error that occurred while parsing a file or running a plugin against it. | |
A plugin that finds nodes that can't be migrated automatically. | |
A manual migration that a | |
The union of the plugin types. | |
The signature of the | |
The return type of the | |
An ESTree Program node with an extra |
