张恒

--no commit message

1 # Electron-Vue-template 1 # Electron-Vue-template
2 2
3 -> An electron-vue project 3 +> 这是一个基于electron的vue最基本的模板,其中前端技术栈则用到vue全家桶,axios作为http请求,而本地数据库则是nedb。现在合并了花裤衩的vue-admin中的东西,由于我司需求方面,所以侧栏的渲染比较新奇,侧栏样式是在` src/renderer/layout/components/sidebar `文件夹中,大家可以根据需求进行个性化更改,鄙人后续会将这个和花裤衩大大的同步.
4 4
5 -#### Build Setup 5 +- 因为花裤衩大大的ELECTRON版本已经一年没有更新了,而且ELECTRON,vue,elementui,都已经迭代太多,刚好我司有这方面的需求,我就在vue-electron脚手架生成的项目基础上,将花裤衩大大的项目核心组件提取出来合并到这个项目中,在我简单的封装了axios和db.以及electron常用的信息弹窗,错误弹窗,稍后的日子中我会慢慢完善这个文档,暂时如果有人需要使用这个项目,还请多多包含,因为文档不够完善,只能用过直接看代码,在路由页面我有注释.
6 +
7 +#### 如何安装
6 8
7 ``` bash 9 ``` bash
8 -# For Chinese Developers 10 +# 首先全局安装nrm
9 -# install nrm
10 npm i -g nrm 11 npm i -g nrm
11 -# Switch to Taobao Source with NRM 12 +# 然后使用nrm切换为淘宝源,或者你已经切换了npm的源也是可以的,强烈不建议使用cnpm如果你不想看到什么奇奇怪怪的爆红问题
12 nrm ls 13 nrm ls
13 nrm use taobao 14 nrm use taobao
14 -# install dependencies 15 +# 安装依赖
15 npm install 16 npm install
16 17
17 -# serve with hot reload at localhost:9080 18 +# 启动之后,会在9080端口监听
19 +# 需要重新运行一次此命令
18 npm run dev 20 npm run dev
19 21
20 -# build electron application for production 22 +# build命令在不同系统环境中,需要的的不一样,需要自己根据自身环境进行配置
21 npm run build 23 npm run build
22 24
23 -# run unit & end-to-end tests 25 +# 启动单元测试模块,但是需要注意的是,我没有更新依赖,所以很可能会导致失败
24 npm test 26 npm test
25 27
26 28
...@@ -28,4 +30,5 @@ npm test ...@@ -28,4 +30,5 @@ npm test
28 30
29 --- 31 ---
30 32
31 -This project was generated with [electron-vue](https://github.com/SimulatedGREG/electron-vue)@[8fae476](https://github.com/SimulatedGREG/electron-vue/tree/8fae4763e9d225d3691b627e83b9e09b56f6c935) using [vue-cli](https://github.com/vuejs/vue-cli). Documentation about the original structure can be found [here](https://simulatedgreg.gitbooks.io/electron-vue/content/index.html). 33 +这个项目使用了 [electron-vue](https://github.com/SimulatedGREG/electron-vue)@[8fae476](https://github.com/SimulatedGREG/electron-vue/tree/8fae4763e9d225d3691b627e83b9e09b56f6c935) using [vue-cli](https://github.com/vuejs/vue-cli). 文档你们可以在这里看到: [here](https://simulatedgreg.gitbooks.io/electron-vue/content/index.html).
34 +这是花裤衩大大原本的[地址](https://github.com/PanJiaChen/electron-vue-admin)
...\ No newline at end of file ...\ No newline at end of file
......
1 +# Electron-Vue-template
2 +
3 +> An electron-vue project
4 +
5 +#### Build Setup
6 +
7 +``` bash
8 +# For Chinese Developers
9 +# install nrm
10 +npm i -g nrm
11 +# Switch to Taobao Source with NRM
12 +nrm ls
13 +nrm use taobao
14 +# install dependencies
15 +npm install
16 +
17 +# serve with hot reload at localhost:9080
18 +npm run dev
19 +
20 +# build electron application for production
21 +npm run build
22 +
23 +# run unit & end-to-end tests
24 +npm test
25 +
26 +
27 +```
28 +
29 +---
30 +
31 +This project was generated with [electron-vue](https://github.com/SimulatedGREG/electron-vue)@[8fae476](https://github.com/SimulatedGREG/electron-vue/tree/8fae4763e9d225d3691b627e83b9e09b56f6c935) using [vue-cli](https://github.com/vuejs/vue-cli). Documentation about the original structure can be found [here](https://simulatedgreg.gitbooks.io/electron-vue/content/index.html).
1 -# Electron-Vue-template
2 -
3 -> 这是一个基于electron的vue最基本的模板,其中前端技术栈则用到vue全家桶,axios作为http请求,而本地数据库则是nedb。现在合并了花裤衩的vue-admin中的东西,由于我司需求方面,所以侧栏的渲染比较新奇,侧栏样式是在` src/renderer/layout/components/sidebar `文件夹中,大家可以根据需求进行个性化更改,鄙人后续会将这个和花裤衩大大的同步.
4 -
5 -- 因为花裤衩大大的ELECTRON版本已经一年没有更新了,而且ELECTRON,vue,elementui,都已经迭代太多,刚好我司有这方面的需求,我就在vue-electron脚手架生成的项目基础上,将花裤衩大大的项目核心组件提取出来合并到这个项目中,在我简单的封装了axios和db.以及electron常用的信息弹窗,错误弹窗,稍后的日子中我会慢慢完善这个文档,暂时如果有人需要使用这个项目,还请多多包含,因为文档不够完善,只能用过直接看代码,在路由页面我有注释.
6 -
7 -#### 如何安装
8 -
9 -``` bash
10 -# 首先全局安装nrm
11 -npm i -g nrm
12 -# 然后使用nrm切换为淘宝源,或者你已经切换了npm的源也是可以的,强烈不建议使用cnpm如果你不想看到什么奇奇怪怪的爆红问题
13 -nrm ls
14 -nrm use taobao
15 -# 安装依赖
16 -npm install
17 -
18 -# 启动之后,会在9080端口监听
19 -# 需要重新运行一次此命令
20 -npm run dev
21 -
22 -# build命令在不同系统环境中,需要的的不一样,需要自己根据自身环境进行配置
23 -npm run build
24 -
25 -# 启动单元测试模块,但是需要注意的是,我没有更新依赖,所以很可能会导致失败
26 -npm test
27 -
28 -
29 -```
30 -
31 ----
32 -
33 -这个项目使用了 [electron-vue](https://github.com/SimulatedGREG/electron-vue)@[8fae476](https://github.com/SimulatedGREG/electron-vue/tree/8fae4763e9d225d3691b627e83b9e09b56f6c935) using [vue-cli](https://github.com/vuejs/vue-cli). 文档你们可以在这里看到: [here](https://simulatedgreg.gitbooks.io/electron-vue/content/index.html).
34 -这是花裤衩大大原本的[地址](https://github.com/PanJiaChen/electron-vue-admin)
...\ No newline at end of file ...\ No newline at end of file