仿韩寒「ONE · 一个」,基于vue2.0+混合式开发的一款跨终端、高性能、用户体验高的移动端App! 学习Vue的同学可以看下,感谢 Star 和 Fork!!
仿韩寒「ONE · 一个」,基于vue2.0+混合式开发的一款跨终端、高性能、用户体验高的移动端App,使用服务端数据接口 one-api 进行开发。
[email protected]
还不知道 yarn
? 查看中文文档
.
├── assets
├── media
├── node_modules
├── src
│ ├── api # 数据接口
│ ├── mixins # Mixins
│ ├── models
│ ├── pages # 页面
│ ├── store
│ │ ├── modules # 模块
│ │ ├── actions.js # 全局 actions
│ │ ├── getters.js # 全局 getters
│ │ ├── index.js # 入口文件
│ │ └── mutation-types.js # 类型
│ │
│ ├── utils # 工具文件夹
│ ├── app.css # 组件样式
│ ├── app.js # 入口文件
│ ├── api.vue # 根组件
│ └── routes.js # 路由配置文件
│
├── build.js # 编译后的文件
├── index.html
├── mainifest.json # app配置文件,需要配合 HBuilder 开发工具使用
├── package.json
├── webpack.config.js
└── yarn.lock
yarn
。这是因为项目模块依赖是用它来管理的,有关 npm
vs yarn
请自行百度。
# step1: 安装 yarn
npm i yarn -g
# step2: 安装成功后查看 yarn 版本
yarn -V
git clone [email protected]:gongph/one-vue.git
yarn install
npm run dev
注意: 建议谷歌浏览器调试,调试时请使用手机调试模式查看,快捷键(Ctrl+Shift+M)。
MIT License
Copyright (c) 2017 gongph