Vue CLI - sikaeducation/vue-curriculum GitHub Wiki
Vue CLI is a great way to maintain a decoupled Vue front-end, or learn and experiment with Vue without needing a build system.
Installation
npm i -g @vue/cli
Creating New Projects
vue create project-name
(You can also use vue create .
to start new project in the current directory)
Recommendation for beginners:
- Manually select features
- Use
j
/k
/spacebar
to select:
- Choose Vue version
- Babel
- CSS Pre-processors
- Linter / Formatter
- 3.x (Preview)
- Sass/SCSS (with dart-sass)
- ESLint + Airbnb config
- Lint on save
- In package.json
- No
Using Vue CLI
While in a Vue CLI project, you can use the following scripts:
npm run serve
- Run a development servernpm run build
- Make a production build in the/dist
directorynpm run lint
- Run the linter