vue-demo
QuickStart
node -v (nvm ls) npm -v npm install –registry=https://registry.npm.taobao.org
npm install -g vue-cli vue init webpack projectName
Install vue-router? (Y/n);安装的路由?(/ N)。(可安可不安,以后也可以再安,根据需求选择) Use ESLint to lint your code? (Y/n): N Setup unit tests with Karma + Mocha? (Y/n);设置单元测试?(Y / N)。(选N) Setup e2e tests with Nightwatch? (Y/n);Nightwatch建立端到端的测试?(Y / N)。(选N)
cd projectName npm install && npm run dev //打包 npm run build