1. npm i -g vue-cli
2. npm init webpack my-project
vue + vue-router + es6 + css
1. canvas + vue
2. 主要功能实现,选择颜色,绘画直线,矩形,三角形。
3. 实现思路: 监听移动端事件; ontouchstart ontouchmove ontouchend
4. 获取速表的开始和结束的位子很重要
A Vue.js project
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
For a detailed explanation on how things work, check out the guide and docs for vue-loader.