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
1. Get the real path of the current script: #!/bi...
This article example shares the specific code of ...
Differences between Docker and Docker Machine Doc...
This article shares the specific code of the vue-...
Install MySQL database a) Download the MySQL sour...
Table of contents Hbase installation and configur...
How to write DROP TABLE in different databases 1....
The definition and inheritance of classes in JS a...
A web server can build multiple web sites with in...
Table of contents 1. Cancel duplicate requests 2....
This article will explain the composition of the ...
The significance of writing order Reduce browser ...
Stop MySQL Service Windows can right-click My Com...
Install Install ts command globally npm install -...
When joining a Windows 2008 server subdomain to a...