2 |
3 | {{#isEnabled plugins 'vue-router'}}
4 |
5 | {{else}}
6 |
7 | {{/isEnabled}}
8 |
9 |
10 |
11 |
27 |
28 |
31 |
--------------------------------------------------------------------------------
/docs/ja/building_your_app.md:
--------------------------------------------------------------------------------
1 | # アプリケーション構築
2 |
3 | electron-vue はビルドと本番アプリケーションの配布のために [electron-packager](https://github.com/electron-userland/electron-packager) と [electron-builder](https://github.com/electron-userland/electron-builder) の両方をサポートしています。両方のビルドツールは素晴らしい [@electron-userland](https://github.com/electron-userland) コミュニティによって支援されていて、それぞれに詳細なドキュメントがあります。`vue-cli` のスキャフォールディング中にどちらのビルダーを使いたいか尋ねられます。
4 |
5 | ## [`electron-packager`](using-electron-packager.md)
6 |
7 | electron アプリケーションを作成するのが初めて使う人や単純な実行可能ファイルを作成する必要がある場合、`electron-packager` がニーズに最適です。
8 |
9 | ## [`electron-builder`](using-electron-builder.md)
10 |
11 | 完全なインストーラー、自動更新サポート、Travis CI と AppVeyor を使用した CI ビルド、またはネイティブコードモジュールの再構築の自動化を探し求めている場合、`electron-builder` が最適です。
12 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | #### Found an issue or bug with electron-vue? Tell me all about it!
2 | Questions regarding how to use `electron` or `vue` are likely to be closed as they are not direct issues with this boilerplate. Please seek solutions from official documentation or their respective communities.
3 |
4 | ##### Describe the issue / bug.
5 | \#
6 |
7 | ##### How can I reproduce this problem?
8 | \#
9 |
10 | ##### If visual, provide a screenshot.
11 | \#
12 |
13 | ##### Tell me about your development environment.
14 | * Node version:
15 | * NPM version:
16 | * vue-cli version: (if necessary)
17 | * Operating System:
18 |
19 | #### *If you are looking to suggest an enhancement or feature, then feel free to remove everything above.*
20 |
--------------------------------------------------------------------------------
/docs/cn/testing.md:
--------------------------------------------------------------------------------
1 | # 测试
2 |
3 | 因受到了官方样板代码 `vuejs-templates/webpack` 提供的测试功能的极大启发,electron-vue 同时支持单元测试和 `renderer` 进程的端到端测试。在 `vue-cli` 脚手架中,你可以选择是否包含测试。
4 |
5 | ## [单元测试](unittesting.md)
6 |
7 | 使用 Karma + Mocha 运行单元测试
8 |
9 | ```bash
10 | npm run unit
11 | ```
12 |
13 | ## [端对端测试](end-to-end_testing.md)
14 |
15 | 使用 Spectron + Mocha 运行端对端测试
16 |
17 | ```bash
18 | npm run e2e
19 | ```
20 |
21 | ## 运行所有测试
22 |
23 | ```bash
24 | npm test
25 | ```
26 |
27 | ### 关于 CI 测试
28 |
29 | 如果在脚手架时你决定使用 `electron-builder` 作为构建工具,那么你可以在针对 `darwin`、`linux` 和 `win32` 的 Travis CI 以及 AppVeyor 上轻松测试你的程序。在 `.travis.yml` 和 `appveyor.yml` 两者之间,你会发现一些被注释掉的部分,你可以快速取消注释以启用测试。确保阅读 [**使用 CI 的自动化部署**](/using-electron-builder.md#automated-deployments-using-ci) 上的更多信息。
30 |
--------------------------------------------------------------------------------
/docs/cn/using_css_frameworks.md:
--------------------------------------------------------------------------------
1 | # CSS 框架的使用
2 |
3 | 虽然这可能看起来并不明智,但我建议你使用 [`style-loader`](https://github.com/webpack/style-loader) 将第三方 CSS 库导入 webpack,其实这一点我们已经为你做了。
4 |
5 | ## 使用案例
6 |
7 | 假设你要为你的程序使用 [bootstrap](http://getbootstrap.com/)、[bulma](http://bulma.io/) 或者 [materialize](http://materializecss.com/)。你可以仍旧像通常情况下一样,从 `npm` 安装你的库,而不是将资源附加到 `index.ejs` 上,我们将在我们的 JavaScript 中导入 CSS,具体在 `src/renderer/main.js` 中。
8 |
9 | #### 例子
10 |
11 | 让我们安装 `bulma` 如下
12 |
13 | ```bash
14 | npm install bulma --save
15 | ```
16 |
17 | 然后,在 `src/renderer/main.js` 里面加入这一行:
18 |
19 | ```bash
20 | import 'bulma/css/bulma.css'
21 | ```
22 |
23 | 替代方案是, 你也可以在你的组件文件中引用 `bulma`。
24 |
25 | **App.vue**
26 |
27 | ```html
28 |
31 | ```
32 |
33 | 现在,`webpack` 会为我们的应用程序加载 `bulma`,并使其在产品构建中可用.
34 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "electron-vue",
3 | "version": "0.0.0",
4 | "description": "An Electron & Vue.js quick start boilerplate with vue-cli support",
5 | "main": "meta.js",
6 | "repository": {
7 | "type": "git",
8 | "url": "git+https://github.com/SimulatedGREG/electron-vue.git"
9 | },
10 | "keywords": [
11 | "electron",
12 | "vue",
13 | "boilerplate",
14 | "hot",
15 | "reload",
16 | "router",
17 | "vuex",
18 | "resource"
19 | ],
20 | "author": "Greg Holguin