To create a Vue-CLI project, follow these steps:
- We need to open Terminal (macOS or Linux) or Command Prompt/PowerShell (Windows) and execute the following command:
> vue create initial-routes
- The CLI will ask some questions that will help with the creation of the project. You can use the arrow keys to navigate, the Enter key to continue, and the Spacebar to select an option.
- There are two methods for starting a new project. The default method is a basic Babel and ESLint project without any plugins or configuration, and the Manually mode, where you can select more modes, plugins, linters, and options. We will go for Manually:
? Please pick a preset: (Use arrow keys)
default (babel, eslint)
❯ Manually select features
- Now we are asked about the features that we will want on the project. Those features are some Vue plugins such as Vuex or Vue Router (Vue-Router), testers, linters, and more. Select Babel, Router, and Linter / Formatter:
? Check the...