To use Vue Migration Tool, your code must follow the standards in this Vue Guide.
⚠️ If your code has a different implementation than the guide, there may be inconsistencies after migration.
Here we go!
Clone the project:
git clone https://github.com/tthheusalmeida/vue-migration-tool.git
Install the dependencies:
npm install
For run the project we have some environment variables:
REPOSITORY
: HTTPS link from project. (required)
BRANCH
: Branch name, if there is no name, main is used. (optional)
Then run one of these commands
cross-env REPOSITORY=<repository-link> npm start
Example: cross-env REPOSITORY=https://github.com/tthheusalmeida/pokedex.git npm start
cross-env REPOSITORY=<repository-link> BRANCH=<branch-name> npm start
Example: cross-env REPOSITORY=https://github.com/tthheusalmeida/pokedex.git BRANCH=migrate npm start
cross-env REPOSITORY=<repository-link> npm run start:log
Example: cross-env REPOSITORY=https://github.com/tthheusalmeida/pokedex.git npm run start:log
also works with BRANCH
:
cross-env REPOSITORY=<repository-link> BRANCH=migrate npm run start:log
Example: cross-env REPOSITORY=https://github.com/tthheusalmeida/pokedex.git BRANCH=migrate npm run start:log
At the end of the execution the code will be available in the migrated
folder.
Enjoy! 😎
Each dependency has its own list with checkboxes. When a checkbox is ✔️, it means the change has been implemented.
Here is a list of breaking changes from each dependency that were implemented in the project:
Over time, the project may receive more migrations of other plugins, libraries, etc., which can cause breaking changes.
git checkout -b my-feature
src/operation/tranformer
.{dependency}_TEMPLATE_TRANSFORM_LIST
or {dependency}_SCRIPT_TRANSFORM_LIST
.src/operation/tranformer/index.js
, import your constant to templateRules
or scriptRules
.README.md
file to list breaking changes, whether they have been migrated or not.src/utils/message.js
.src/operation/tranformer/{dependency}/template/index.js
or src/operation/tranformer/{dependency}/script/index.js
.showLog
with a new breaking change message in the created function.{dependency}_TEMPLATE_TRANSFORM_LIST
or {dependency}_SCRIPT_TRANSFORM_LIST
.git commit -m 'feat: my new feature'
git push origin my-feature
This project is under the MIT license. see the license page for more details.