Skip to content
README.md 2.25 KiB
Newer Older
wangqinghua's avatar
wangqinghua committed
#目录结构
├── build                      // 构建相关  
├── config                     // 配置相关  
├── src                        // 源代码  
│   ├── api                    // 所有请求  
│   ├── assets                 // 主题 字体等静态资源  
│   ├── components             // 全局公用组件  
│   ├── directive              // 全局指令  
│   ├── filter                // 全局 filter  
│   ├── http                  // 全局 http请求 配置  
│   ├── icons                  // 项目所有 svg icons  
│   ├── lang                   // 国际化 language  
│   ├── mock                   // 项目mock 模拟数据  
│   ├── router                 // 路由  
│   ├── store                  // 全局 store管理  
│   ├── styles                 // 全局样式  
│   ├── utils                  // 全局公用方法  
│   ├── vendor                 // 公用vendor  
│   ├── views                   // view  
│   ├── App.vue                // 入口页面  
│   ├── main.js                // 入口 加载组件 初始化等  
│   └── permission.js          // 权限管理  
├── static                     // 第三方不打包资源
│   └── Tinymce                // 富文本  
├── .babelrc                   // babel-loader 配置  
├── eslintrc.js                // eslint 配置项  
├── .gitignore                 // git 忽略项  
├── favicon.ico                // favicon图标  
├── index.html                 // html模板  
└── package.json               // package.json  


# vue-init

> A Vue.js project

## Build Setup

``` bash
# install dependencies
wangqinghua's avatar
wangqinghua committed
npm install
wangqinghua's avatar
wangqinghua committed

wangqinghua's avatar
wangqinghua committed
# serve with hot reload at localhost:8080
wangqinghua's avatar
wangqinghua committed
npm run dev

wangqinghua's avatar
wangqinghua committed
# 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 all tests
npm test
```

For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).