Skip to content

wcxaa/Vue-cnodejs-wcx

Repository files navigation

Vue-cnodejs-wcx

基于vue.js重写Cnodejs.org社区的webapp

此项目参考自Vue-cnodejs, 用于学习vue。 相比原项目,本项目去掉了zepto,在组件内直接利用ref操作DOM,调整了目录结构,使代码更模块化。

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8021
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

开发

目录结构

.
├── README.md           
├── build              // 构建服务和webpack配置
├── config             // 项目不同环境的配置
├── dist               // 项目build目录
├── index.html         // 项目入口文件
├── package.json       // 项目配置文件
├── src                // 生产目录
│   ├── assets         // css js 和字体资源
│   ├── components     // 各种组件
│   ├── router         // 路由定义
│   ├── views          // 各种页面
│   ├── vuex           // vuex状态管理器
│   └── main.js        // Webpack 预编译入口