Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

CLI tool to aid in migration from Vue 1.x to 2.0

NotificationsYou must be signed in to change notification settings

vuejs/vue-migration-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI tool to aid in migration from Vue 1.x to 2.0. It scans files for Vue-specific code and provides detailed warnings when deprecated patterns are found. It cannot reliably catchevery deprecation, but should get you 80% of the way there.

Screenshot

Usage

# installnpm install --global vue-migration-helper# navigate to a Vue 1.x project directorycd path/to/my-vue-project# scan all files in the current directoryvue-migration-helper# scan all files in specific sub-directoriesvue-migration-helper src folder-a folder-b# scan a specific file or filesvue-migration-helper src/app.vue

When you want to update, just run the install again:

npm install --global vue-migration-helper

Contributing

While the binary supports Node v4+, tests are written to take advantage of v6+, so you'll need that installed.

# clone the projectgit clone https://github.com/vuejs/vue-migration-helper.git# navigate to directorycd vue-migration-helper# install the dependenciesnpm install

Then write a failing test for a rule you'd like to improve. Confirm that it fails with:

# run all testsnpm runtest -s

If your regex skills aren't strong enough to fix the problem yourself, just submit a pull request with the failing test and we'll take it from there. Before you do though, make sure to lint the project for typos and style violations:

# lint all filesnpm run lint -s

About

CLI tool to aid in migration from Vue 1.x to 2.0

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors8


[8]ページ先頭

©2009-2025 Movatter.jp