A Vue.js project
如果您不打算开发大型单页应用,使用 Vuex 可能是繁琐冗余的 global event bus
├── build # 配置文件
├── index.html
├── src
│ ├── assets 页面相关图片
│ ├── main.js 加载组件 入口
│ ├── components # 公共组件、第三方放在这里
│ ├── App.vue 根组件
# git clone
git clone https://github.com/OSMeteor/vue-boilerplate
cd vue-boilerplate
# install dependencies
npm install
# mock api data
npm run mock
# serve with hot reload at localhost:8080
npm run dev or npm start
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
# run unit tests
npm run unit
# run e2e tests
npm run e2e
# run all tests
npm test
For a detailed explanation on how things work, check out the guide and docs for vue-loader.