If you scaffolded a NativeScript-Vue app using the 1.3.1 version of the Vue-CLI template, it's time to upgrade to the newest 2.0 version. This guide will help you do that.

Upgrade overview

The new template has a different folder structure:

The simplified upgrade process involves:

Creating a new project from the updated template.

Copying files from your old app into the new one.

Rearranging and adding some files.

Step 1: Create new app

Use the Vue-CLI template to create a new app. Make sure to run the same preinstallation commands that you used for the old version. For example, if you installed Vuex in the CLI the first time, do it again now.

Run the following command to create a new project from the Vue-CLI template.