Show Menu
Cheatography

Vue.js 2 Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Instal­lation

Latest version
npm install vue
CLI
npm install -g vue-cli

CLI

vue init <te­mpl­ate> <pr­oje­ct-­nam­e>
webpack - Webpack + vue-loader + hot reload + linting + testing + css extrac­tion.
webpac­k-s­imple - Webpack + vue-lo­ader.
browserify - Browserify + vueify + hot-reload + linting + testing.
browse­rif­y-s­imple - Browserify + vueify.
pwa - PWA template for vue-cli based on the webpack template.
simple - the simplest Vue setup in a single HTML file.
Custom template:
vue init userna­me/repo my-project
Local template:
vue init ~/fs/p­ath­/to­-te­mplate my-project
 

Animation - transition classes