基于vue、vuex、vue-router实现的移动端SPA框架模版
$ git clone git@https://github.com/redgang/redx-vue.git $ cd redx-vue $ npm install $ npm start # open http://localhost:3200
# open http://localhost:3200/#!/docs
# open http://localhost:3200/#!/demo
Command | Description |
---|---|
npm install | Install dependencies |
npm run dev | Run webpack and restart server with hot-reload enabled |
npm start | Run webpack and server with hot-reload enabled |
npm run deploy | Build assets for development use, dumped in ./dist |
npm run deploy:prod | Build assets for production use, dumped in ./dist |
npm run deploy:start | Run static server to check dist files |
redx-vue ├── bin ├── build ├── config ├── server │ ├── lib │ └── middleware └── src #核心代码 ├── components #ui组件库(目前自建) ├── plugins #插件库 │ ├── i18n │ └── validator ├── routes #路由 ├── static #静态文件 │ ├── docs │ ├── i18n │ └── images ├── themes #主题 │ └── default │ ├── components │ ├── fonts │ ├── images │ ├── mixins │ ├── variables │ └── views ├── utils #公共库(request) ├── views #业务组件 │ ├── common │ ├── demo │ └── docs └── vx #vuex数据管理 ├── actions ├── constants ├── getters ├── middlewares └── modules
MIT ©Redx