vue scaffolding -> vue.cliQuickly create a large, fully functional vue project template (initializer project) Earthy explanation: quickly create an empty vue project Installation (global installation)
> npm i @vue/cli -g
> vue create project name Configuration options Vue CLI v4.5.11 ? Please pick a preset: (Use arrow keys) > Default ([Vue 2] babel, eslint) Default (Vue 3 Preview) ([Vue 3] babel, eslint) Manually select features
Select Features Vue CLI v4.5.11 ? Please pick a preset: Manually select features ? Check the features needed for your project: (Press <space> to select, <a> to toggle all, <i> to invert selection) >(*) Choose Vue version (*) Babel ( ) TypeScript ( ) Progressive Web App (PWA) Support ( ) Router ( ) Vuex ( ) CSS Pre-processors (*) Linter / Formatter ( ) Unit Testing ( ) E2E Testing
Select version ? Check the features needed for your project: Choose Vue version, Babel, Router, Vuex Choose a version of Vue.js that you want to start the project with (Use arrow keys) > 2.x 3.x (Preview)
Whether to use history mode ? Use history mode for router? (Requires proper server setup for index fallback in production) (Y/n)
Configuration location of Babel, ESLint, etc. Where do you prefer placing config for Babel, ESLint, etc.? (Use arrow keys) > In dedicated config files In package.json
Save as preset ? Save this as a preset for future projects? (y/N)
Create Success Vue CLI v4.5.11 Creating project in D:\MyStudy\myvue2. ⚙️ Installing CLI plugins. This might take a while... > [email protected] postinstall D:\MyStudy\myvue2\node_modules\core-js > node -e "try{require('./postinstall')}catch(e){}" > [email protected] postinstall D:\MyStudy\myvue2\node_modules\ejs > node ./postinstall.js added 1208 packages from 928 contributors in 21.836s 61 packages are looking for funding run `npm fund` for details 🚀 Invoking generators... 📦 Installing additional dependencies... added 5 packages from 1 contributor in 4.671s 61 packages are looking for funding run `npm fund` for details ⚓ Running completion hooks... 📄 Generating README.md... 🎉 Successfully created project myvue2. 👉 Get started with the following commands: $ cd myvue2 $ npm run serve Enter the project directory > cd myvue2 Start the service > npm run serve DONE Compiled successfully in 2492ms App running at: - Local: http://localhost:8080/ - Network: http://192.168.17.154:8080/ Note that the development build is not optimized. To create a production build, run npm run build. This concludes this article about the detailed steps of creating a vue scaffolding project. For more relevant vue scaffolding project creation content, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Detailed tutorial on how to install mysql8.0 using Linux yum command
>>: Summary of using the exclamation mark command (!) in Linux
Preface This article will share some docker-compo...
Table of contents 1. Open the file Parameter Intr...
introduce This chapter mainly introduces the proc...
Table of contents 01 Introduction to GTID 02 How ...
Table of contents 1. Props Parent >>> Ch...
I installed MySQL on Windows by unzipping the com...
<br />The author used to be a novice in web ...
1. Command Introduction The stat command is used ...
Table of contents One-way data flow explanation V...
Preface As Linux operation and maintenance engine...
Table of contents 1. useState hook 2. useRef hook...
Preface Sorting is a basic function in databases,...
Preface During my internship at the company, I us...
error message: ERROR 2002 (HY000): Can't conn...
CocosCreator version: 2.3.4 Most games have layer...