npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@chameleonmind/vue-migrate

v0.0.1

Published

A CLI tool to help with migrating projects from Vue2 with Vue CLI to Vue2/Vue3 with Vite

Downloads

3

Readme

Vue Migrate

Vue Migrate is a small npm package created to take the boring and time-consuming parts that can be automated of migrating your Vue2 projects to Vue3 with Vite off your hands. It automates some parts of the migration process, including the transition from Webpack to Vite. Some things you will need to do manually, but this package should help you get started.

Features

  • Migrate vue-cli projects with webpack to Vue2 projects with Vite
  • Migrate vue-cli projects with webpack to Vue3 compatibility build with Vite
  • Migrate vue-cli projects with Webpack to Vue3 with Vite (not really recommended, use only if you definitely know what you're doing, try the compat build instead)
  • Automatically change run commands (change vue-cli commands to vite commands)
  • Automatically migrate environment variables (change VUE_APP_ prefixes to VITE_)
  • Automatically add appropriate Vite config
  • Automatically move index.html and replace Webpack-related code in it (may require some manual work after)

Installation

To install vue-migrate, simply run the following command:

npm install -g vue-migrate

Usage

To migrate a project, navigate to the root directory of your Vue2 project and run the following command:

vue-migrate

or if you don't want to install it globally, run in the root of your project (where your package.json is located):

npx vue-migrate

The migration process will begin, and you will be prompted to choose the migration path you want to follow:

  • Vue 2 with Vue CLI -> Vue 2 + Vite
  • Vue 2 with Vue CLI -> Vue 3 Migration build + Vite
  • Vue 2 with Vue CLI -> Vue 3 + Vite

Simply select the desired option, answer few questions and vue-migrate will take care of the rest.

Configuration

The vue-migrate package automatically handles the creation and modification of necessary configuration files. However, if you need to make additional changes, you can find the generated vite.config.js file in your project root directory after migration.

Troubleshooting

If you encounter any issues during the migration process, please refer to the Vue Migration Guide and Vite documentation for further guidance.

Contributing

If you would like to contribute to the development of vue-migrate, please feel free to submit a pull request on the GitHub repository.

It would be great to have some help with the dictionary of old Vue 2 dependencies and their new Vue 3 equivalents.

License

vue-migrate is released under the MIT License.

Changelog

For a detailed list of changes and improvements, please refer to the CHANGELOG file on GitHub.