Skip to content

Installation

There are two ways to use vue-metamorph. You can use the scaffolding tool to create a vue-metamorph CLI project, or you can import vue-metamorph into an app or library that you already have.

Scaffold a new codemod project

To create a new codemod project, run the scaffolding tool:

bash
npx vue-metamorph my-codemod-name

The scaffolding tool creates a directory named my-codemod-name that contains a sample codemod project.

Install vue-metamorph in an existing package

To add vue-metamorph to a package that you already have, install it as a development dependency:

bash
# npm
npm install -D vue-metamorph

# yarn
yarn add -D vue-metamorph

# pnpm
pnpm add -D vue-metamorph