[
  {
    "path": ".github/ISSUE_TEMPLATE.md",
    "content": "#### Found an issue or bug with electron-vue? Tell me all about it!\nQuestions 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. \n\n##### Describe the issue / bug.\n\\#\n\n##### How can I reproduce this problem?\n\\#\n\n##### If visual, provide a screenshot.\n\\#\n\n##### Tell me about your development environment.\n  * Node version:\n  * NPM version:\n  * vue-cli version: (if necessary)\n  * Operating System:\n\n#### *If you are looking to suggest an enhancement or feature, then feel free to remove everything above.*\n"
  },
  {
    "path": ".gitignore",
    "content": ".idea\n_book\nthumbs.db\n.DS_Store\nnode_modules\ntests/builds/*\nnpm-debug.log\nnpm-debug.*.log\n!.gitkeep\n"
  },
  {
    "path": "LICENSE.md",
    "content": "The MIT License (MIT)\n\nCopyright (c) 2016 Greg Holguin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "<div align=\"center\">\n<br>\n<img width=\"500\" src=\"/docs/images/logo.png\" alt=\"electron-vue\">\n<br>\n<br>\n</div>\n\n<p align=\"center\" color=\"#6a737d\">\nThe boilerplate for making electron applications built with vue (pretty much what it sounds like).\n</p>\n\n<div align=\"center\">\n\n[![forthebadge](http://forthebadge.com/images/badges/built-with-love.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/uses-js.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/makes-people-smile.svg)](http://forthebadge.com)\n</div>\n\n<div align=\"center\">\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\n[![Build Status](https://semaphoreci.com/api/v1/simulatedgreg/electron-vue/branches/master/badge.svg)](https://semaphoreci.com/simulatedgreg/electron-vue)\n</div>\n\n## Overview\n\nThe aim of this project is to remove the need of manually setting up electron apps using vue. electron-vue takes advantage of `vue-cli` for scaffolding, `webpack` with `vue-loader`, `electron-packager` or `electron-builder`, and some of the most used plugins like `vue-router`, `vuex`, and so much more.\n\n#### Check out the detailed documentation [here](https://simulatedgreg.gitbooks.io/electron-vue/content/index.html).\n\nThings you'll find in this boilerplate...\n\n* Basic project structure with a **single** `package.json` setup\n* Detailed [documentation](https://simulatedgreg.gitbooks.io/electron-vue/content/)\n* Project scaffolding using [vue-cli](https://github.com/vuejs/vue-cli)\n* Ready to use Vue plugins \\([axios](https://github.com/mzabriskie/axios), [vue-electron](https://github.com/SimulatedGREG/vue-electron), [vue-router](https://github.com/vuejs/vue-router), [vuex](https://github.com/vuejs/vuex)\\)\\*\n* Installed [vue-devtools](https://github.com/vuejs/vue-devtools) and [devtron](https://github.com/electron/devtron) tools for development\n* Ability to easily package your electron app using [electron-packager](https://github.com/electron-userland/electron-packager) or [electron-builder](https://github.com/electron-userland/electron-builder)\\*\n* `appveyor.yml` and `.travis.yml` configurations for automated deployments with [electron-builder](https://github.com/electron-userland/electron-builder)\\*\n* Ability to produce web output for browsers\n* Handy [NPM scripts](https://simulatedgreg.gitbooks.io/electron-vue/content/en/npm_scripts.html)\n* Use of [webpack](https://github.com/webpack/webpack) and [vue-loader](https://github.com/vuejs/vue-loader) with Hot Module Replacement\n* Process restarting when working in main process\n* HTML/CSS/JS pre-processor support with [vue-loader](https://github.com/vuejs/vue-loader/)\n* ES6 with [`stage-0`](https://babeljs.io/docs/plugins/preset-stage-0/) by default\n* Use of [`babili`](https://github.com/babel/babili) to remove the need of transpiling completely down to ES5\n* ESLint \\(with support for [`standard`](https://github.com/feross/standard) and [`airbnb-base`](https://github.com/airbnb/javascript)\\)\\*\n* Unit Testing \\(with Karma + Mocha\\)\\*\n* End-to-end Testing \\(with Spectron + Mocha\\)\\*\n\n\\*Customizable during vue-cli scaffolding\n\n### Getting Started\n\nThis boilerplate was built as a template for [vue-cli](https://github.com/vuejs/vue-cli) and includes options to customize your final scaffolded app. The use of `node@^7` or higher required. electron-vue also officially recommends the [`yarn`](https://yarnpkg.org) package manager as it handles dependencies much better and can help reduce final build size with `yarn clean`.\n\n```bash\n# Install vue-cli and scaffold boilerplate\nnpm install -g vue-cli\nvue init simulatedgreg/electron-vue my-project\n\n# Install dependencies and run your app\ncd my-project\nyarn # or npm install\nyarn run dev # or npm run dev\n```\n\n##### Are you a Windows User?\n\nMake sure to check out [**A Note for Windows Users**](https://simulatedgreg.gitbooks.io/electron-vue/content/en/getting_started.html#a-note-for-windows-users) to make sure you have all the necessary build tools needed for electron and other dependencies.\n\n##### Wanting to use Vue 1?\n\nJust point to the `1.0` branch. Please note that electron-vue has officially deprecated the usage of `vue@^1`, so project structure, features, and documentation will reflect those changes ([**legacy documentation**](https://github.com/SimulatedGREG/electron-vue/tree/1.0/docs)).\n\n```bash\nvue init simulatedgreg/electron-vue#1.0 my-project\n```\n\n### Next Steps\n\nMake sure to take a look at the [documentation](https://simulatedgreg.gitbooks.io/electron-vue/content/). Here you will find useful information about configuration, project structure, and building your app. There's also a handy [FAQs](https://simulatedgreg.gitbooks.io/electron-vue/content/en/faqs.html) section.\n\n\n## Made with electron-vue\nTake a look at some of the amazing projects built with electron-vue. Want to have your own project listed? Feel free add your project to the bottom of the list below then submit a pull request.\n\n* [**Surfbird**](https://github.com/surfbirdapp/surfbird): A Twitter client built on Electron and Vue\n* [**Lulumi-browser**](https://github.com/qazbnm456/lulumi-browser): Lulumi-browser is a light weight browser coded with Vue.js 2 and Electron\n* [**Space-Snake**](https://github.com/ilyagru/Space-Snake): A Desktop game built with Electron and Vue.js.\n* [**Forrest**](https://github.com/stefanjudis/forrest): An npm scripts desktop client\n* [**miikun**](https://github.com/hiro0218/miikun): A Simple Markdown Editor\n* [**Dakika**](https://github.com/raj347/Dakika): A minute taking application that makes writing minutes a breeze\n* [**Dynamoc**](https://github.com/ieiayaobb/dynamoc): Dynamoc is a GUI client for dynamodb-local, dynalite and AWS dynamodb\n* [**Dockeron**](https://github.com/dockeron/dockeron): A dockeron project, built on Electron + Vue.js for Docker\n* [**Easysubs**](https://github.com/matiastucci/easysubs): Download subtitles in a very fast and simple way\n* [**adminScheduler**](https://github.com/danieltoorani/adminScheduler): An application leveraging electron for cross platform compatibility, Vue.js for lightning fast UI and full-calendar.io to deliver a premium calendar interface.\n* [**Backlog**](https://github.com/czytelny/backlog): Simple app for storing TODOs, ideas or backlog items. You can organize them with boards. Sleek flow. Built with Electron + Vue.js + iView\n* [**Opshell**](https://github.com/ricktbaker/opshell): Ops tool to make life easier working with AWS instances.\n* [**GitHoard**](https://github.com/jojobyte/githoard): Hoard git repositories with ease.\n* [**Data-curator**](https://github.com/ODIQueensland/data-curator): Share usable open data.\n* [**Bookmark**](https://github.com/mrgodhani/bookmark): Desktop app to manage bookmarked links using Atom Electron and Vue.js\n* [**Uber Run**](https://github.com/break-enter/uberrun): Simple automation desktop app to download and organize your tax invoices from Uber.\n* [**Apollo**](https://github.com/helados/Apollo): Convert YouTube videos (and more) to .mp3 files\n* [**Netsix**](https://github.com/pulsardev/netsix): Share videos with your friends in a real peer-to-peer manner using WebRTC.\n* [**code-notes**](https://github.com/lauthieb/code-notes): A simple code snippet manager for developers built with Electron & Vue.js.\n* [**Pomotroid**](https://github.com/Splode/pomotroid): A simple and visually-pleasing Pomodoro timer\n* [**MarkText**](https://github.com/marktext/marktext): Mark Text is a realtime Markdown Editor.\n* [**vue-design**](https://github.com/L-Chris/vue-design): the best website visualization builder with Vue and Electron\n* [**ImapSync Client**](https://github.com/ridaamirini/ImapSyncClient): It's only an Internet Message Access Protocol Synchronization Client\n* [**Hve**](https://github.com/hellohve/hve): A static blog client tool you may like.\n* [**MarkdownFox**](https://github.com/lx4r/markdownfox): A simple Markdown viewer with auto update and PDF export.\n* [**Smart DOCSE**](https://github.com/shirshak55/smart-docse): A generic app which ability to display news, contact etc.\n* [**Cleaver**](https://getcleaver.com/): Cleaver helps you provision servers ready for deploying your web apps with zero downtime - for free!\n* [**XPanel**](https://github.com/krustnic/xpanel): XAMPP control panel alternative built with Electron & Vue.js\n* [**Hexo-Client**](https://github.com/gaoyoubo/hexo-client): A hexo client powered by electron-vue.\n* [**YT.Downloader**](https://github.com/myazarc/ytdownloader): Youtube Video Downloader&Converter and Play Music, built with Electron & Vue.js.\n* [**BMFont-JS**](https://github.com/elisaday/bmfont-js): BMFont-js is a bitmap font generator, built with Electron & Vue.js.\n* [**YouGet**](https://github.com/ahmetzeybek/YouGet): YouGet - YouTube Video/Playlist Downloader/Cutter - MP3 Converter\n* [**Asar UI**](https://github.com/myazarc/AsarUI): UI for Asar Pack, built with Electron & Vue.js.\n* [**Leeze**](https://github.com/dayinji/Leeze): A Receipt Record App, built with Electron & Vue.js.\n* [**IntelTracker**](https://github.com/hectate/inteltracker): An intel item tracker for players/speedrunners of NOLF.\n* [**Metube**](https://github.com/kimyearho/MeTube): A program to manage your simple YouTube music player and enjoy your music\n* [**it-tools**](https://github.com/TsaiKoga/it-tools): A programing helper for developers built with Electron & Vue.js. \n* [**GifsWorld**](https://github.com/dj0nny/GifsWorld): Gifs finder built with Vue and Electron\n"
  },
  {
    "path": "book.json",
    "content": "{\n  \"root\": \"./docs\",\n  \"plugins\": [\n    \"edit-link\",\n    \"theme-vuejs@git+https://github.com/pearofducks/gitbook-plugin-theme-vuejs.git\",\n    \"github\",\n    \"ga\"\n  ],\n  \"pluginsConfig\": {\n    \"edit-link\": {\n      \"base\": \"https://github.com/SimulatedGREG/electron-vue/tree/master/docs\",\n      \"label\": \"Edit This Page\"\n    },\n    \"github\": {\n      \"url\": \"https://github.com/SimulatedGREG/electron-vue\"\n    },\n    \"ga\": {\n      \"token\": \"UA-64200901-3\"\n    }\n  },\n  \"links\": {\n    \"sharing\": {\n      \"facebook\": false,\n      \"twitter\": true\n    }\n  }\n}\n"
  },
  {
    "path": "docs/LANGS.md",
    "content": "* [English](en/)\n* [日本語](ja/)\n* [中文](cn/)\n* [대한민국](ko/)\n* [Português](pt_BR/)\n"
  },
  {
    "path": "docs/cn/README.md",
    "content": "![](../images/logo.png)\n\n> 基于 vue (基本上是它听起来的样子) 来构造 electron 应用程序的样板代码。\n\n[![Build Status](https://semaphoreci.com/api/v1/simulatedgreg/electron-vue/branches/master/badge.svg)](https://semaphoreci.com/simulatedgreg/electron-vue)\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\n[![forthebadge](http://forthebadge.com/images/badges/built-with-love.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/uses-js.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/makes-people-smile.svg)](http://forthebadge.com)\n\n## 概要\n\n该项目的目的，是为了要避免使用 vue 手动建立起 electron 应用程序。electron-vue 充分利用 `vue-cli` 作为脚手架工具，加上拥有 `vue-loader` 的 `webpack`、`electron-packager` 或是 `electron-builder`，以及一些最常用的插件，如`vue-router`、`vuex` 等等。\n\n\n#### 在 [这里](https://simulatedgreg.gitbooks.io/electron-vue/content/index.html) 查看其文档。\n\n你会在本样板代码中找到的东西...\n\n* 基本的项目结构与 **单一的** `package.json` 设置\n* 详细的 [文档](https://simulatedgreg.gitbooks.io/electron-vue/content/)\n* 使用 [vue-cli](https://github.com/vuejs/vue-cli) 作为项目脚手架\n* 立即可用的 Vue 插件 \\([axios](https://github.com/mzabriskie/axios), [vue-electron](https://github.com/SimulatedGREG/vue-electron), [vue-router](https://github.com/vuejs/vue-router), [vuex](https://github.com/vuejs/vuex)\\)\\*\n* 预装开发工具 [vue-devtools](https://github.com/vuejs/vue-devtools) 和 [devtron](https://github.com/electron/devtron)\n* 使用 [electron-packager](https://github.com/electron-userland/electron-packager) 或 [electron-builder](https://github.com/electron-userland/electron-builder) 轻松打包你的应用程序\\*\n* `appveyor.yml` 与 `.travis.yml` 配置用于 [electron-builder](https://github.com/electron-userland/electron-builder) 的自动部署\\*\n* 能够生成用于浏览器的网页输出\n* 便利的 [NPM 脚本](/npm_scripts.md)\n* 使用携带模块热更新 (Hot Module Replacement) 的 [webpack](https://github.com/webpack/webpack) 和 [vue-loader](https://github.com/vuejs/vue-loader)\n* 在工作在 electron 的 `main` 主进程时重启进程\n* 支持使用 [vue-loader](https://github.com/vuejs/vue-loader/) 的 HTML/CSS/JS 预处理器\n* 默认支持 [`stage-0`](https://babeljs.io/docs/plugins/preset-stage-0/) 的 ES6\n* 使用 [`babili`](https://github.com/babel/babili) 避免完全反编译到 ES5\n* ESLint \\(支持 [`standard`](https://github.com/feross/standard) 和 [`airbnb-base`](https://github.com/airbnb/javascript)\\)\\*\n* 单元测试 \\(使用 Karma + Mocha\\)\\*\n* 端到端测试 \\(使用 Spectron + Mocha\\)\\*\n\n\\* 在`vue-cli`脚手架中可定制\n\n### 起步\n\n该样板代码被构建为 [`vue-cli`](https://github.com/vuejs/vue-cli) 的一个模板，并且包含多个选项，可以自定义你最终的脚手架程序。本项目需要使用 `node@^7` 或更高版本。electron-vue 官方推荐 [`yarn`](https://yarnpkg.org) 作为软件包管理器，因为它可以更好地处理依赖关系，并可以使用 `yarn clean` 帮助减少最后构建文件的大小。\n\n```bash\n# 安装 vue-cli 和 脚手架样板代码\nnpm install -g vue-cli\nvue init simulatedgreg/electron-vue my-project\n\n# 安装依赖并运行你的程序\ncd my-project\nyarn # 或者 npm install\nyarn run dev # 或者 npm run dev\n```\n\n##### 你是一个 Windows 用户？\n\n请务必查看 [**Windows 用户注意事项**](https://simulatedgreg.gitbooks.io/electron-vue/content/en/getting_started.html#a-note-for-windows-users) 来确保你拥有 electron 和其他依赖关系所需的所有必要构建工具。\n\n##### 希望使用 Vue 1？\n\n只需指向 `1.0` 分支即可。请注意，electron-vue 已经正式废除了 `vue@^1` 的使用，因此，这些更改也同样会反映到项目结构、功能和文档上 \\([**遗留文档**](https://github.com/SimulatedGREG/electron-vue/tree/1.0/docs)\\)。\n\n```bash\nvue init simulatedgreg/electron-vue#1.0 my-project\n```\n\n### 下一步\n\n请务必查看 [这个文档](https://simulatedgreg.gitbooks.io/electron-vue/content/)。在这里，你将找到有关项目配置、项目结构和构建应用程序的有用信息。这里还有一个方便的 [常见问题](https://simulatedgreg.gitbooks.io/electron-vue/content/en/faqs.html) 的部分。\n\n## 基于 electron-vue 的作品\n\n看看一些基于 electron-vue 建造的了不起的的项目。想要在此列出你自己的项目吗？请随时提交 pull 请求。\n\n* [**Surfbird**](https://github.com/surfbirdapp/surfbird): 一个基于 Electron 和 Vue 的 Twitter 客户端\n* [**Lulumi-browser**](https://github.com/qazbnm456/lulumi-browser): Lulumi-browser 是一个轻量级的浏览器，基于 Vue.js 2 和 Electron\n* [**Space-Snake**](https://github.com/ilyagru/Space-Snake): 使用 Electron 和 Vue.js 构建的桌面游戏。\n* [**Forrest**](https://github.com/stefanjudis/forrest): 一个 npm 脚本的桌面客户端\n* [**miikun**](https://github.com/hiro0218/miikun): 一个简单的 Markdown 编辑器\n* [**Dakika**](https://github.com/Madawar/Dakika): 超省时的应用程序，使写作变得轻而易举\n* [**Dynamoc**](https://github.com/ieiayaobb/dynamoc): Dynamoc 是一个 dynamodb-local、 dynalite 和 AWS dynamodb 的图形化界面客户端\n* [**Dockeron**](https://github.com/dockeron/dockeron): Dockeron 项目, 基于 Electron + Vue.js 的 Docker 桌面客户端\n* [**Easysubs**](https://github.com/matiastucci/easysubs): 快速简单地下载字幕\n* [**Data-curator**](https://github.com/ODIQueensland/data-curator)：分享可用的開放數據。\n"
  },
  {
    "path": "docs/cn/SUMMARY.md",
    "content": "# 概要\n\n* [简介](./README.md)\n* [起步](getting_started.md)\n* [项目结构](project_structure.md)\n  * [文件树](file-tree.md)\n  * [渲染器进程](renderer-process.md)\n  * [主进程](main-process.md)\n  * [Webpack 配置](webpack-configurations.md)\n* [开发](development.md)\n  * [入口 index.html](entry_indexhtml.md)\n  * [Vue 插件](vue_accessories.md)\n  * [NPM 脚本](npm_scripts.md)\n  * [CSS 框架的使用](using_css_frameworks.md)\n  * [预处理器的使用](using_pre-processors.md)\n  * [静态资源的使用](using-static-assets.md)\n  * [读写本地文件](savingreading-local-files.md)\n* [建立你的应用](building_your_app.md)\n  * [electron-packager 的使用](using-electron-packager.md)\n  * [electron-builder 的使用](using-electron-builder.md)\n* [测试](testing.md)\n  * [单元测试](unittesting.md)\n  * [端到端测试](end-to-end_testing.md)\n* [更多](meta.md)\n  * [常见问题](faqs.md)\n  * [新版本](new-releases.md)\n  * [迁移指南](migration-guide.md)\n  * [贡献](contributing.md)\n"
  },
  {
    "path": "docs/cn/book.json",
    "content": "{\n  \"root\": \"\"\n}\n"
  },
  {
    "path": "docs/cn/building_your_app.md",
    "content": "# 构建你的应用程序\n\nelectron-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` 脚手架过程中，你会被问到你想要使用哪个构建器。\n\n## [`electron-packager`](using-electron-packager.md)\n\n如果你刚开始制作 electron 应用程序或只需要创建简单的可执行文件，那么 `electron-packager` 就可以满足你的需求。\n\n## [`electron-builder`](using-electron-builder.md)\n\n如果你正在寻找完整的安装程序、自动更新的支持、使用 Travis CI 和 AppVeyor 的 CI 构建、或本机 node 模块的自动重建，那么你会需要 `electron-builder`。\n"
  },
  {
    "path": "docs/cn/contributing.md",
    "content": "# 贡献\n\n想要贡献你的力量？随时提交 pull 请求。在准备提交任何内容之前，请务必查看以下内容...\n\n### JavaScript 标准规范\n\n为确保所有 JS 代码遵循基本的 ***风格标准***，请务必遵循这些 [规则](http://standardjs.com/#rules)。\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n"
  },
  {
    "path": "docs/cn/development.md",
    "content": "# 开发\n\n### 开始开发环境设置\n\n在你使用 `yarn` 或 `npm install` 安装了依赖之后， 运行...\n\n```bash\nyarn run dev # 或者 npm run dev\n```\n\n...然后 轰! 现在，你就在运行一个 electron-vue 应用程序.\n![](../images/landing-page.jpg)\n\n此样板代码附带了几个易于移除的登录页面组件。\n"
  },
  {
    "path": "docs/cn/end-to-end_testing.md",
    "content": "# 端对端测试\n\n对于端到端测试，electron-vue 使用 [Spectron](http://electron.atom.io/spectron/) 和 测试框架 [Mocha](https://mochajs.org/) \\(以及 [Chai](http://chaijs.com/)\\)。Mocha 和 Chai 的 API (包括 `expect`、`should` 以及 `assert` 在内) 均在全局范围内可用。\n\n### 运行测试\n\n```bash\n# 开始 Mocha\nnpm run e2e\n```\n\n##### 注意\n\n在运行端到端测试之前，为了使 Spectron 在测试的时候可用，请调用 `npm run pack` 来创建一个产品构建。\n\n### 文件结构\n\n```\nmy-project\n├─ test\n|  ├─ e2e\n│  │  ├─ specs/\n│  │  ├─ index.js\n└─ └─ └─ utils.js\n```\n\n**在大多数情况下，你可以忽略** `index.js` **，只专注于编写** `specs/` **。**\n\n#### `specs/`\n\n这个目录里面是编写实际测试代码的地方。由于 `babel-register` 的强大功能，你可以完全依照 ES2015 进行编写。\n\n#### `index.js`\n\n这是 Mocha 入口文件，并收集加载在 `specs/` 内的所有测试代码用于测试。\n\n#### `utils.js`\n\n在这里，你会发现一些通用的函数，你可以在 `specs/` 中使用。其基本功能包括处理 electron 创建/销毁过程的 `beforeEach` 和 `afterEach`。\n\n### 关于 Spectron\n\nSpectron 是使用 [ChromeDriver](https://sites.google.com/a/chromium.org/chromedriver/) 和 [WebDriverIO](http://webdriver.io/) 来操作 DOM 元素的 [electron](http://electron.atom.io) 官方测试框架。\n\n#### WebDriverIO 的使用\n\n如 Spectron 的 [文档](https://github.com/electron/spectron#client) 中所述，你可以通过访问 `this.app.client` 来访问 [WebDriverIO APIs](http://webdriver.io/api.html)。 由于 electron-vue 使用了 Mocha，`this` 在 `afterEach`、`beforeEach` 和 `it` 之间共享。 因此，值得注意的是，ES2015 的 箭头函数 (arrow function) 不能在某些情况下使用，因为 `this` 的语境将被覆盖 \\([更多信息](https://mochajs.org/#arrow-functions)\\)。\n"
  },
  {
    "path": "docs/cn/entry_indexhtml.md",
    "content": "# 入口 `index.html`\n\n在产品阶段，electron-vue 使用 [**`html-webpack-plugin`**](https://github.com/ampedandwired/html-webpack-plugin) 创建 `index.html`。在开发过程中，你将在 `src/` 目录中找到一个 `index.ejs`。在这里，你可以更改 HTML 入口文件。\n\n如果你不熟悉这个插件的工作原理，那么我鼓励你看看它的 [文档](https://www.npmjs.com/package/html-webpack-plugin)。简而言之，这个插件会自动将产品阶段的资源（包括 `renderer.js` 和 `styles.css`）注入到最终压缩版的 `index.html` 中。\n\n### 开发阶段的 `index.ejs`\n\n```html\n<!DOCTYPE html>\n<html>\n  <head>\n    <meta charset=\"utf-8\">\n    <title><%= htmlWebpackPlugin.options.title %></title>\n    <%= ... %>\n  </head>\n  <body>\n    <div id=\"app\"></div>\n    <!-- webpack 的构建会被自动注入 -->\n  </body>\n</html>\n```\n\n### 产品阶段的 `index.html` \\(非压缩版\\)\n\n```html\n<!DOCTYPE html>\n<html>\n  <head>\n    <meta charset=\"utf-8\">\n    <title>app</title>\n    <link href=\"styles.css\" rel=\"stylesheet\">\n  </head>\n  <body>\n    <div id=\"app\"></div>\n    <script type=\"text/javascript\" src=\"renderer.js\"></script>\n  </body>\n</html>\n```\n\n### 关于 CDNs 的使用\n\n虽然使用 CDN 提供的资源有益于你的应用程序的最终版本的大小，但我建议不要使用它们。主要原因是，通过这样做，你其实是在假设你的应用程序始终可以访问互联网，而 Electron 应用程序并不总是如此。这成为使用 CSS 框架（如 bootstrap）的一个相当重要的问题，因为没有互联网，你的应用程序将迅速变得没有任何样式并且乱七八糟。\n\n> “我不在乎，我还是想用CDN。”\n\n如果你坚持使用 CDN，那么你仍可以通过将标签添加到 `src/index.ejs` 文件中达到目的。只是当你的应用程序处于离线模式时，请确保设置适当的 UI/UX 流程。\n"
  },
  {
    "path": "docs/cn/faqs.md",
    "content": "# 常见问题\n\n* [为什么运行 `npm run dev` 之后我的 electron 应用程序是空白的？](#why-is-my-electron-app-blank-after-running-npm-run-dev)\n* [为什么我的 electron 程序显示了文件浏览器？](#why-does-my-electron-app-show-a-file-explorer)\n* [为什么没有 `vue-devtools` 或 `devtron`？](#why-is-vue-devtoolsdevtron-missing)\n* [在哪里放置我的静态资源？](#where-do-i-put-static-assets)\n* [为什么 `npm run lint` 会出现错误？](#why-did-npm-run-lint-end-with-an-error)\n* [为什么我无法在网页浏览器中加载应用程序？](#why-cant-i-load-my-app-in-a-web-browser)\n* [如何导入 `jquery`？](#how-do-import-jquery)\n* [如何调试 `main` 进程？](#how-can-i-debug-the-main-process)\n\n---\n\n## 为什么运行 `npm run dev` 之后我的 electron 程序是空白的？\n\n#### 简要\n\n请确认你没有设置可能篡改 `webpack-dev-server` 的个人 **代理**。\n\n## 为什么我的 electron 程序显示了文件浏览器？\n\n#### 简要\n\n你的 `src/renderer` 包含错误。请检查 控制台 (console)，修复错误，然后用 `CommandOrControl+R` 刷新 electron。\n\n##### 详述\n\n如果你的 `src/renderer` 中出现错误，则会在首次运行时与 ESLint 产生冲突。接着，一个无效的 webpack 的 `renderer.js` 会被生成出来，它会打断 `HtmlWebpackPlugin` 创建 `index.html`。由于 `webpack-dev-server` 没有 `index.html` 可以提供服务，所以服务器失败，程序返回到文件浏览器。\n\n## 为什么没有 `vue-devtools` 或 `devtron`？\n\n如果缺少 `vue-devtools` 或 `devtron`，请确保首次启动时，关闭并重新打开开发者工具面板。另外，请检查你的终端，检查是否在安装过程中有任何可能的错误消息。\n\n## 在哪里放置我的静态资源？\n\n[**静态资源的使用**](using-static-assets.md)\n\n## 为什么 `npm run lint` 会出现错误？\n\neslint 的默认属性是将控制台的错误打印出来，如果发现脚本以非零值退出结束时 \\(它会产生 npm 错误\\)。这是正常的行为。\n\n## 为什么我无法在网页浏览器中加载应用程序？\n\n[\\#195](https://github.com/SimulatedGREG/electron-vue/issues/195)\n\n## 如何导入 `jquery`？\n\n如果你想使用 `bootstrap`，我将不得不在此打住你。在同一环境中使用 `vue` 和 `jquery` 并不是一个好的做法，这导致两个框架的相互冲突。我强烈建议使用一个 `bootstrap` 的替代方法，并使用 `vue` 提供的 JavaScript 的功能。一些建议包括使用 [`bootstrap-vue`](https://github.com/bootstrap-vue/bootstrap-vue) 和 [`vue-strap`](https://github.com/yuche/vue-strap)。若有任何原因使你必须使用 `jquery`，记得从 `webpack` 的文档里寻求有关 `ProvidePlugin` 的指导，或者参见 [\\#192](https://github.com/SimulatedGREG/electron-vue/issues/192)。\n\n## 如何调试 `main` 进程？\n\n当使用 `electron@^1.7.2` 时，你可以打开 Goog​​le Chrome，然后转到 `chrome://inspect`，在应用程序以开发模式运行时，弹出远程的 electron 进程。\n\n[Electron 文档]（https://github.com/electron/electron/blob/master/docs/tutorial/debugging-main-process.md）\n"
  },
  {
    "path": "docs/cn/file-tree.md",
    "content": "# 文件树\n\n### 在开发过程中\n\n**注意**: 某些文件或文件夹可能会根据在 `vue-cli` 脚手架中所选设置的不同而有所不同。\n\n```\nmy-project\n├─ .electron-vue\n│  └─ <build/development>.js files\n├─ build\n│  └─ icons/\n├─ dist\n│  ├─ electron/\n│  └─ web/\n├─ node_modules/\n├─ src\n│  ├─ main\n│  │  ├─ index.dev.js\n│  │  └─ index.js\n│  ├─ renderer\n│  │  ├─ components/\n│  │  ├─ router/\n│  │  ├─ store/\n│  │  ├─ App.vue\n│  │  └─ main.js\n│  └─ index.ejs\n├─ static/\n├─ test\n│  ├─ e2e\n│  │  ├─ specs/\n│  │  ├─ index.js\n│  │  └─ utils.js\n│  ├─ unit\n│  │  ├─ specs/\n│  │  ├─ index.js\n│  │  └─ karma.config.js\n│  └─ .eslintrc\n├─ .babelrc\n├─ .eslintignore\n├─ .eslintrc.js\n├─ .gitignore\n├─ package.json\n└─ README.md\n```\n\n#### 产品构建\n\n```\napp.asar\n├─ dist\n│  └─ electron\n│     ├─ static/\n│     ├─ index.html\n│     ├─ main.js\n│     └─ renderer.js\n├─ node_modules/\n└─ package.json\n```\n\n可以说，几乎所有的东西都在最终的产品构建中被删除。在分发 electron 应用程序时，这几乎是强制性的，因为你不希望用户下载拥有庞大文件的臃肿的软件。\n"
  },
  {
    "path": "docs/cn/getting_started.md",
    "content": "# 起步\n\n## 脚手架\n\n该样板代码被构建为 [`vue-cli`](https://github.com/vuejs/vue-cli) 的一个模板，并且包含多个选项，可以自定义你最终的脚手架程序。本项目需要使用 `node@^7` 或更高版本。electron-vue 官方推荐 [`yarn`](https://yarnpkg.org) 作为软件包管理器，因为它可以更好地处理依赖关系，并可以使用 `yarn clean` 帮助减少最后构建文件的大小。\n\n```bash\n# 安装 vue-cli 和 脚手架样板代码\nnpm install -g vue-cli\nvue init simulatedgreg/electron-vue my-project\n\n# 安装依赖并运行你的程序\ncd my-project\nyarn # 或者 npm install\nyarn run dev # 或者 npm run dev\n```\n\n#### 关于 electron\n\n虽然是可选的，仍旧我们建议在创建项目之后锁定你 electron 的版本。这样可以防止在同一项目上工作的其他开发者使用不同的版本进行开发。electron 经常发布新版本，所以一些功能特性总是会发生相应的变化。[更多信息](http://electron.atom.io/docs/tutorial/electron-versioning/)。\n\n\n#### Windows 用户注意事项\n\n如果在 `npm install` 期间遇到关于 `node-gyp` 的错误，那么你很有可能没有在你的系统上安装正确的构建工具。构建工具包括 Python 和 Visual Studio 等等。感谢 [@felixrieseberg](https://github.com/felixrieseberg)，有几个软件包可以帮助简化此过程。\n\n我们需要检查的第一项是 npm 的版本，并确保它是最新的。这个可以使用 [`npm-windows-upgrade`](https://github.com/felixrieseberg/npm-windows-upgrade) 来完成。如果你使用 `yarn`，则可以跳过此项检查。\n\n若上一项检查完成，我们可以继续设置所需的构建工具。使用 [`windows-build-tools`](https://github.com/felixrieseberg/windows-build-tools) 来为我们完成大部分烦人的工作。全局安装此工具将依次设置 Visual C++ 软件包、Python 等等。\n\n到现在为止，所有工具都应该成功安装了，如果没有，那么你就会需要安装一个干净的 Visual Studio。请注意，这些并不是 electron-vue 自身的问题 \\(Windows 有时候可能会很难用 ¯\\\\\\_\\(ツ\\)\\_/¯\\)。\n"
  },
  {
    "path": "docs/cn/global_configuration.md",
    "content": "# Global Configuration\n\nelectron-vue uses the [webpack](https://github.com/webpack/webpack) module loader system for pre-processing, bundling, and building your app. The default settings are rather common and should meet most of your needs. An additional `config.js` is provided in the root directory for quick adjustments. Further customization can be made by directly adjusting `webpack.main.config.js` and `webpack.renderer.config.js`.\n\n#### `config.js`\n**Note**: Some options may differ based on the settings choosen during `vue-cli` scaffolding.\n\n```js\n{\n  // Name of electron app\n  // Will be used in production builds\n  name: 'app',\n\n  // Use ESLint\n  // Further changes can be made in `.eslintrc.js`\n  eslint: true,\n\n  // webpack-dev-server port\n  port: 9080,\n\n  // electron-packager options\n  // See `Building you app` for more info\n  building: {\n    arch: 'x64',\n    asar: true,\n    dir: path.join(__dirname, 'app'),\n    icon: path.join(__dirname, 'app/icons/icon'),\n    ignore: /\\b(src|index\\.ejs|icons)\\b/,\n    name: pkg.name,\n    out: path.join(__dirname, 'builds'),\n    overwrite: true,\n    platform: process.env.PLATFORM_TARGET || 'all'\n  }\n}\n```\n"
  },
  {
    "path": "docs/cn/main-process.md",
    "content": "# 主进程\n\n> 在 Electron 中，运行 package.json 主脚本的过程称为主进程 (main process)。在主进程中运行的脚本可以通过创建网页来显示其图形化界面。\n\n**摘自** [**Electron 文档**](http://electron.atom.io/docs/tutorial/quick-start/#main-process)\n\n---\n\n由于 `main` 进程本质上是一个完整的 node 环境，所以除了以下两个文件之外，并没有什么初始的项目结构。\n\n#### `src/main/index.js`\n\n这个文件是你应用程序的主文件，`electron` 也从这里启动。它也被用作 `webpack` 产品构建的入口文件。所有的 `main` 进程工作都应该从这里开始。\n\n#### `app/src/main/index.dev.js`\n\n这个文件专门用于开发阶段，因为它会安装 `electron-debug` 和 `vue-devtools`。一般不需要修改此文件，但它可以用于扩展你开发的需求。\n\n## 关于 `__dirname` 与 `__filename` 的使用\n\n由于 `main` 进程是使用 `webpack` 来绑定的，所以使用 `__dirname` 和 `__filename` **将不会** 在产品阶段给你提供一个预期的值。若参考 [**文件树**](/file-tree.md) 你会注意到，在产品阶段，`main.js` 被放在了 `dist/electron` 文件夹里面。应根据此点相应地使用 `__dirname` 和 `__filename`。\n\n**如果你需要 `static/` 资源目录的路径，请务必阅读** [**使用静态资源**](/using-static-assets.md) **学习了解非常方便的 `__static` 变量。**\n\n\n```\napp.asar\n├─ dist\n│  └─ electron\n│     ├─ static/\n│     ├─ index.html\n│     ├─ main.js\n│     └─ renderer.js\n├─ node_modules/\n└─ package.json\n```\n"
  },
  {
    "path": "docs/cn/meta.md",
    "content": "# 更多\n\n### 感谢\n\n哇，非常感谢你们的帮助，使得 electron-vue 在 GitHub 上成为（我可以找到的）前 3 名 `vue-cli` 模板之一。我从来没有想过这个项目会像今天一样脱颖而出。回想过去，我起初（在 **2016年5月**）做了这个样板只是为个人的闭源项目。当我知道我已经完成了大部分的代码之后，我决定开源（样板本身）。转到今天，项目里已经有了这么多新的功能，并且得到了社区的大力支持。我也想给社区的人们一些特别的话，你们帮助我解决了一些我无法解决的问题。你们绝对没有任何义务去做任何事情，但是你们还是这么做的，我很感激。\n\n如果你正在阅读这篇文章，那我几乎可以假设你真的很喜欢 electron-vue。我花了很多时间在创建这个样板上。如果你愿意的话，请自愿留下一些小费。electron-vue 未来的发展肯定不会依赖于这些捐赠，但如果你决定捐赠，它总是一个可以的选择。\n\n#### [**使用 PayPal.me 进行转账**](https://www.paypal.me/simulatedgreg/5)\n"
  },
  {
    "path": "docs/cn/migration-guide.md",
    "content": "# 迁移指南\n\n本文档尝试解释 _应该_ 如何实现你的项目迁移，但是由于整体项目结构始终可能变化，因此，这可能不是一个完整验证过的方法。\n\n1. 使用 `vue init simulatedgreg/electron-vue my-project` 生成一个崭新的 electron-vue 项目\n2. 将当前项目 `src` 内的文件复制到新项目的 `src` 目录中\n3. 将 `package.json` 里的依赖关系从当前项目复制到新项目的 `package.json` 里\n4. 使用 `yarn` 或 `npm install` 安装依赖\n5. 在开发模式下运行项目 \\(`yarn run dev` 或 `npm run dev`\\)\n6. 监视控制台以修复可能出现的错误\n\n正如前面提到的，并没有一个完整验证过的方法来迁移到一个新的项目，但上述这些步骤，通常是可以让你成功完成迁移。任何对项目结构或资源处理的私自修改，将依靠你或你的团队来完成迁移。请确保查看文档的其余部分，因为它将始终反映 electron-vue 当前版本的 `master` 分支。\n"
  },
  {
    "path": "docs/cn/miscellaneous.md",
    "content": ""
  },
  {
    "path": "docs/cn/new-releases.md",
    "content": "# 新版本\n\nelectron-vue 自 2016年5月初 创建以来有了很大的发展，并引入了许多新奇的功能。你能相信有一段时间该项目还不支持 `vue-cli` 脚手架吗？新功能的开发计划不会停止。唯一的缺点是，每天都有华而不实的东西存在，进而把你的项目卡在一个老的脚手架上。尽管 electron-vue 利用了 `vue-cli` 的优势，遗憾的是，并没有一个结构化的方式来 _版本化_ (_version_) 样板 或 使其变得 _可更新_ (_updatable_)。\n\nelectron-vue 的主要更新将通过 GitHub 的 里程碑 (Milestones) 进行，并将包含许多新的功能和错误的修复，这使得这些版本成为了最佳的 [迁移](/migration-guide.md) 契机，用来从任何现有项目转换为较新的架构。这些里程碑通常不是预先计划的，而是随着问题提交里的功能请求，在追踪问题的时候加上去的。\n\n### 之前的里程碑\n\n#### [复用](https://github.com/SimulatedGREG/electron-vue/milestone/1?closed=1)\n\n* 迁移到 `webpack` 2\n* 支持 `electron-builder`\n* 支持 `main` 进程的捆绑\n* 一般的错误修复\n\n#### [简化](https://github.com/SimulatedGREG/electron-vue/issues/171)\n\n* 迁移到单一的 `package.json` 结构\n* 针对 `electron-builder` 用户的 Travis CI / AppVeyor 配置\n* `renderer` 进程的最小化网页输出\n* 迁移到 `axios`\n* 完全支持 `main` 进程捆绑\n* 重写开发和构建的脚本\n* 迁移到 `babili` 以避免完全反编译到 ES5\n* 在使用需要完整路径 \\([`__static`](/using-static-assets.md)\\) 的模块时支持 `static/` 资源\n"
  },
  {
    "path": "docs/cn/npm_scripts.md",
    "content": "# NPM 脚本\n\n为了帮助你消除开发过程中的冗余任务，请注意一些可用的 NPM 脚本。以下命令应该运行在项目的根目录下。当然，你可以使用 `yarn run <command>` 的方式运行下列任何命令。\n\n### `npm run build`\n\n为了产品和打包来构建你的应用程序。更多信息可以在 [**构建你的应用程序**](building_your_app.md) 部分找到。\n\n### `npm run dev`\n\n在开发环境中运行程序\n\n### `npm run lint`\n\n静态分析所有在 `src/` 和 `test/` 下面的 JS 以及 Vue 组件文件。\n\n### `npm run lint:fix`\n\n静态分析所有在 `src/` 和 `test/` 下面的 JS 以及 Vue 组件文件并且尝试修复问题。\n\n### `npm run pack`\n\n同时运行 `npm run pack:main` 和 `npm run pack:renderer`。 虽然这些命令是可用的，但很少情况下，你需要手动执行此操作，因为 `npm run build` 将处理此步骤。\n\n### `npm run pack:main`\n\n运行 webpack 来打包 `main` 进程的源代码。\n\n### `npm run pack:renderer`\n\n运行 webpack 来打包 `renderer` 进程的源代码。\n\n### `npm run unit`\n\n运行使用了 Karma + Jasmine 的单元测试。更多信息请见 [**单元测试**](unittesting.md)。\n\n### `npm run e2e`\n\n运行使用了 Spectron + Mocha 的端对端测试。更多信息请见 [**端对端测试**](unittesting.md)。\n\n### `npm test`\n\n运行 `npm run unit` 和 `npm run e2e`. 更多信息请见 [**测试**](unittesting.md)。\n"
  },
  {
    "path": "docs/cn/project_structure.md",
    "content": "# 项目结构\n\n当涉及制作 electron 应用程序的问题时，项目结构会有些不同。如果你以前使用过官方的 [`vuejs-templates/webpack`](https://github.com/vuejs-templates/webpack) 设置，那么你对这个结构应该很熟悉。本文档在此章节将尝试解释样板代码的工作原理以及应用程序在构建中的一些区别。\n\n### 单一的 `package.json` 设置\n\n就在不久之前，两个 `package.json` 的设置是必需的，但是，感谢 [@electron-userland](https://github.com/electron-userland) 的努力，[`electron-packager`](https://github.com/electron-userland/electron-packager) 和 [`electron-builder`](https://github.com/electron-userland/electron-builder) 现在完全支持单一的 `package.json` 设置。\n\n#### `dependencies`\n\n这些依赖项 **将会被** 包含在你最终产品的应用程序中。所以，如果你的应用程序需要某个模块才能运行，那么请在此安装！\n\n#### `devDependencies`\n\n这些依赖项 **不会被** 包含在你最终产品的应用程序中。在这里，你可以安装专门用于开发的模块，如构建脚本、`webpack` 加载器等等。\n\n#### 安装原生 NPM 模块\n\n我们需要确保我们本地的 npm 模块是针对 electron 来构建的。为了做到这一点，我们可以使用 [`electron-rebuild`](https://github.com/electron/electron-rebuild)，但是为了使事情变得更简单，我们强烈建议使用 [`electron-builder`](https://github.com/electron-userland/electron-builder) 作为你的构建工具，因为它会为你处理很多任务。\n\n### 关于 `main` 进程\n\n在开发过程中，你可能会注意到 `src/main/index.dev.js`。该文件专门用于开发以及安装开发工具。原则上，该文件不应该被修改，但是可以被用来扩展你的开发需求。在构建的过程中，`webpack` 将介入其中并创建一个的捆绑，以 `src/main/index.js` 作为该捆绑的入口文件。\n"
  },
  {
    "path": "docs/cn/renderer-process.md",
    "content": "# 渲染器进程\n\n> 由于 Electron 使用 Chromium 显示网页，那么，Chromium 的多进程架构也被使用。Electron 中的每个网页都在自己的进程中运行，称为渲染器进程 (renderer process)。\n>\n> 在正常的浏览器中，网页通常运行在沙盒封装化的环境中，并且不允许访问本机资源。然而，Electron 用户有权在网页中使用 Node.js 的 API，从而允许较低级别的操作系统交互。\n\n**选自** [**Electron 文档**](http://electron.atom.io/docs/tutorial/quick-start/#renderer-process)\n\n---\n\n## 关于 `vue` 和 `vuex`\n\n### vue 组件\n\n如果你不熟悉 Vue 组件，请阅读 [此处](http://vuejs.org/v2/guide/single-file-components.html)。组件的使用使我们大型、复杂的应用程序更加有组织化。每个组件都有能力封装自己的 CSS、模板 和 JavaScript 的功能。\n\n组件存放在 `src/renderer/components` 里。创建子组件时，一个常用的组织化实践是将它们放置在一个使用其父组件名称的新文件夹中。在协调不同的路由时，这一点特别有用。\n\n```\nsrc/renderer/components\n├─ ParentComponentA\n│  ├─ ChildComponentA.vue\n│  └─ ChildComponentB.vue\n└─ ParentComponentA.vue\n```\n\n### vue 路由\n\n有关 `vue-router` 的更多信息请点击 [这里](https://github.com/vuejs/vue-router)。 简而言之，我们鼓励使用 `vue-router`，因为创建 单页应用程序 (Single Page Application) 在制作 electron 程序的时候更加实用。你真的想管理一堆 BrowserWindows，然后在其之间传达信息吗？恐怕不会。\n\n路由被保存在 `src/renderer/router/index.js` 里并定义如下...\n\n```js\n{\n  path: '<routePath>',\n  name: '<routeName>',\n  component: require('@/components/<routeName>View')\n}\n```\n\n... 其中 `<routePath>` 和 `<routeName>` 都是变量。然后，这些路由使用 `src/renderer/App.vue` 的 `<router-view>` 指令附加到组件树上。\n\n##### 注意\n\n在使用 `vue-router` 时，不要使用 [**HTML5 历史模式**](http://router.vuejs.org/en/essentials/history-mode.html)。 此模式严格用于通过 `http` 协议提供文件，并且不能正常使用 `file` 协议，但是 electron 在产品构建中使用此协议提供文件。默认的 `hash` 模式正是我们所需要的。\n\n### vuex 模块\n\n描述 `vuex` 并不是简单的事情，所以请阅读 [这里](https://vuex.vuejs.org/zh/)，以便更好地了解它试图解决的问题及其工作原理。\n\nelectron-vue 利用 `vuex` 的模块结构创建多个数据存储，并保存在 `src/renderer/store/modules` 中。\n\n拥有多个数据存储对于组织化来说可能很好，但你必须导入每一个数据，这也可能令人厌烦。但是不要担心，因为 `src/renderer/store/modules/index.js` 帮我们处理了这些麻烦事！这个简单的脚本让 `src/renderer/store/index.js` 一次性导入我们所有的模块。如果所有这些都没有，只要知道你可以轻松地复制给定的 `Counter.js` 模块，它将以 \"神奇\" 的方式被加载进来。\n"
  },
  {
    "path": "docs/cn/savingreading-local-files.md",
    "content": "# 读写本地文件\n\n使用 `electron` 的一大好处是可以访问用户的文件系统。这使你可以读取和写入本地系统上的文件。为了避免 Chromium 的限制以及对应用程序内部文件的改写，请确保使用 `electron` 的 API，特别是 [`app.getPath(name)`](https://electron.atom.io/docs/api/app/#appgetpathname) 函数。这个帮助函数可以使你获得指向系统目录的文件路径，如用户的桌面、系统临时文件 等等。\n\n### 使用案例\n\n假设我们想为我们的应用程序提供本地的数据库存储。在这个例子中，我们将用 [`nedb`](https://github.com/louischatriot/nedb) 作为演示。\n\n```bash\nyarn add nedb # 或 npm install nedb --save\n```\n\n**src/renderer/datastore.js**\n\n这里，我们设置 NeDB 并将其指向我们的 `userData` 目录。这个空间专门为我们的应用程序所保留，所以，我们可以确信，其他程序 或 与其他用户的交互不应该篡改这个文件空间。至此，我们可以在 `renderer` 进程中导入 `datastore.js` 并使用它。\n\n```js\nimport Datastore from 'nedb'\nimport path from 'path'\nimport { remote } from 'electron'\n\nexport default new Datastore({\n  autoload: true,\n  filename: path.join(remote.app.getPath('userData'), '/data.db')\n})\n```\n\n**src/renderer/main.js**\n\n为了更进一步，我们可以将数据存储导入到 `src/renderer/main.js` 里，并将其附加到 Vue 的 原型 (prototype) 上。通过在所有组件文件中使用 `this.$db`，我们现在可以访问数据存储的 API。\n\n```js\nimport db from './datastore'\n\n/* 其它代码 */\n\nVue.prototype.$db = db\n```\n"
  },
  {
    "path": "docs/cn/testing.md",
    "content": "# 测试\n\n因受到了官方样板代码 `vuejs-templates/webpack` 提供的测试功能的极大启发，electron-vue 同时支持单元测试和 `renderer` 进程的端到端测试。在 `vue-cli` 脚手架中，你可以选择是否包含测试。\n\n## [单元测试](unittesting.md)\n\n使用 Karma + Mocha 运行单元测试\n\n```bash\nnpm run unit\n```\n\n## [端对端测试](end-to-end_testing.md)\n\n使用 Spectron + Mocha 运行端对端测试\n\n```bash\nnpm run e2e\n```\n\n## 运行所有测试\n\n```bash\nnpm test\n```\n\n### 关于 CI 测试\n\n如果在脚手架时你决定使用 `electron-builder` 作为构建工具，那么你可以在针对 `darwin`、`linux` 和 `win32` 的 Travis CI 以及 AppVeyor 上轻松测试你的程序。在 `.travis.yml` 和 `appveyor.yml` 两者之间，你会发现一些被注释掉的部分，你可以快速取消注释以启用测试。确保阅读 [**使用 CI 的自动化部署**](using-electron-builder.md#automated-deployments-using-ci) 上的更多信息。\n"
  },
  {
    "path": "docs/cn/unittesting.md",
    "content": "# 单元测试\n\n对于进行单元测试，electron-vue 使用 [Karma](https://karma-runner.github.io/1.0/index.html) 作为测试的运行器，使用 [Mocha](https://mochajs.org/) \\(与 [Chai](http://chaijs.com/)\\ 作为测试框架。\n\nMocha 和 Chai 分别使用 `karma-mocha` 和 `karma-chai` 进行集成，所以所有的 API（例如 `expect`）都可以在测试文件中全局使用。\n\n### 运行测试\n\n```bash\n# 开始 Karma\nnpm run unit\n```\n\n### 文件结构\n\n```\nmy-project\n├─ test\n|  ├─ unit\n│  │  ├─ specs/\n│  │  ├─ index.js\n└─ └─ └─ karma.conf.js\n```\n\n**在大多数情况下，你可以忽略** `index.js` **和** `karma.conf.js` **，只专注于编写** `specs/` **。**\n\n#### `specs/`\n\n这个目录里面是编写实际测试代码的地方。由于 Webpack 的强大功能，你可以完全依照 ES2015 和 其支持的加载程序编写。\n\n#### `index.js`\n\n这是 `karma-webpack` 使用的入口文件。该文件的目的是一次性收集加载所有的测试和源代码。\n\n#### `karma.conf.js`\n\n在这里，你可以找到实际的 `karma` 配置，并使用 spec/coverage 记录器进行设置。你可以根据 [karma 官方文档](http://karma-runner.github.io/1.0/config/configuration-file.html) 进一步定制。\n\n### Mocking Dependencies\n\nelectron-vue 默认安装 [`inject-loader`](https://github.com/plasticine/inject-loader)。有关使用 Vue 组件文件的信息，请参阅 [`vue-loader' 的测试与仿真文档](http://vue-loader.vuejs.org/en/workflow/testing-with-mocks.html)。\n"
  },
  {
    "path": "docs/cn/using-electron-builder.md",
    "content": "# [`electron-builder`](https://github.com/electron-userland/electron-builder) 的使用\n\n所有 `electron-builder` 生成的文件都可以在 `build` 文件夹中找到。\n\n#### 构建\n\n```bash\nnpm run build\n```\n\n#### 构建未打包的目录\n\n生成简单的可执行文件，没有完整的安装程序。用于快速测试。\n\n```bash\nnpm run build:dir\n```\n\n### 默认的构建配置\n\n可以在 `package.json` 中使用基于 `electron-builder` 的 [各种选项](https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options) 进行进一步定制。\n\n```js\n\"build\": {\n  \"productName\": \"ElectronVue\",\n  \"appId\": \"org.simulatedgreg.electron-vue\",\n  \"dmg\": {\n    \"contents\": [\n      {\n        \"x\": 410,\n        \"y\": 150,\n        \"type\": \"link\",\n        \"path\": \"/Applications\"\n      },\n      {\n        \"x\": 130,\n        \"y\": 150,\n        \"type\": \"file\"\n      }\n    ]\n  },\n  \"directories\": {\n    \"output\": \"build\"\n  },\n  \"files\": [\n    \"dist/electron\",\n    \"node_modules/\",\n    \"package.json\"\n  ],\n  \"mac\": {\n    \"icon\": \"build/icons/icon.icns\"\n  },\n  \"win\": {\n    \"icon\": \"build/icons/icon.ico\"\n  },\n  \"linux\": {\n    \"icon\": \"build/icons\"\n  }\n}\n```\n\n## 使用 CI 的自动化部署\n\n当使用 electron-vue 的 `electron-builder` 配置时，本项目还提供了用于自动部署的 `appveyor.yml` 和 `.travis.yml`。两个配置文件都被设置好了用于构建你的 electron 应用，并将生成的程序推送到 GitHub 的发布页面、Bintray 等。Travis CI 用于构建 `linux` 和 `darwin` \\(macOS\\)，而 AppVeyor 用于构建 `win32`。这两项服务都是免费的 OSS 项目。\n\n#### 设置 Travis CI 和 AppVeyor\n\n1. 在 [Travis CI](https://travis-ci.org/getting_started) 或 [AppVeyor](https://www.appveyor.com/) 上创建一个帐户\n2. 链接到你 electron-vue 项目的 GitHub 仓库\n3. 访问 [https://github.com/settings/tokens](https://github.com/settings/tokens) 并点击 **生成新令牌 (Generate new token)** \\(同样的令牌可用于 Travis CI 和 AppVeyor 二者\\)\n    1. 设置一个 **令牌描述 (Token description)**\n    2. 检查 **public\\_repo** 的范围\n    3. 点击 **生成令牌 (Generate token)**\n4. 复制你的新令牌并保存以备以后使用\n5. 打开 Travis CI 或 AppVeyor 上的仓库设置选项，添加一个新的 **环境变量 (Environment Variable)**\n    1. 将变量的名称设置为 `GH_TOKEN`\n    2. 将变量的值设置为刚刚创建的 GitHub 的访问令牌\n    3. **保存 (Save)** 新变量并确保加密措施已启用\n\n现在，所有的事情应该都配置完毕了。Travis CI / AppVeyor 在默认情况下会监测到任何到你的 `master` 分支的推送。推送完毕后，Travis CI / AppVeyor 将克隆你的仓库到其服务器并开始构建过程。在最后阶段，`electron-builder` 可以看到环境变量 `GH_TOKEN`，并创建一个发布草稿，并将生成的程序上传到你公共的 GitHub 仓库上。现在，你可以编辑发布草稿，然后发布出去。发布了发行版后，通过更新你的 `package.json`，你可以确保将来的版本标上新版本号。\n\n#### 自动更新\n\n启用你应用程序自动更新的接收选项是一个超级好用的功能，但要知道你必须要有 [**代码签名 (Code Signing)**](https://github.com/electron-userland/electron-builder/wiki/Code-Signing)。你可以根据 [这里](https://github.com/electron-userland/electron-builder/wiki/Code-Signing) 描述的 `electron-builder` 需求来添加更多的环境变量用于设置代码签名。安装证书后，你可以安装 `electron-updater` 并注释掉 `src/main/index.js` 底部的代码以启用自动更新。\n\n如果你像大多数人一样，并且没有花哨的代码签名证书，那么你可以随时使用 GitHub API 来检查新的软件发布。当检测到新版本时，你的应用程序会提供一条通知，导向用户可以下载并安装新版本的下载页面。由于 `electron-builder` 提供的了不起的安装程序，用户无需卸载当前版本，新的安装将替代旧的版本，同时仍然保留任何 Web 存储或 `userData` 文件。\n"
  },
  {
    "path": "docs/cn/using-electron-packager.md",
    "content": "# [`electron-packager`](https://github.com/electron-userland/electron-packager) 的使用\n\n所有 `electron-packager` 生成的文件都可以在 `build` 文件夹中找到。\n\n#### 针对所有平台的构建\n\n请注意，并非所有操作系统都可以为所有其他平台进行构建。\n\n```bash\nnpm run build\n```\n\n#### 针对特定平台的构建\n\n平台包括 `darwin`、 `mas`、 `linux` 和 `win32`。\n\n```bash\n# build for darwin (macOS)\nnpm run build:darwin\n```\n\n#### 清除\n\n从 `build` 删除所有的构建文件。\n\n```bash\nnpm run build:clean\n```\n\n### 非 Windows 用户注意事项\n\n如果你想在非 Windows 平台上为 Windows 构建时 **使用自定义图标**，你必须安装 [wine](https://www.winehq.org/)。[更多信息](https://github.com/electron-userland/electron-packager#building-windows-apps-from-non-windows-platforms)。\n\n### 默认的构建配置\n\n可以在 `.electron-vue/build.config.js` 中使用基于 `electron-packager` 的 [各种选项](https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options) 进行进一步定制。你可以设置 `package.json` 里的 `productName` 来设置构建后的程序名称。\n\n```js\n{\n    // 针对 'x64' 架构\n    arch: 'x64',\n\n    // 使用 'electron/asar' 压缩应用\n    asar: true,\n\n    // 应用程序的目录\n    dir: path.join(__dirname, '../'),\n\n    // 设置 electron 程序的图标\n    // 基于平台添加文件的扩展\n    //\n    // 如果针对 Linux 进行构建, 请阅读\n    // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#icon\n    icon: path.join(__dirname, '../build/icons/icon'),\n\n    // 忽略可能造成最后程序很大的文件\n    ignore: /(^\\/(src|test|\\.[a-z]+|README|yarn|static|dist\\/web))|\\.gitkeep/,\n\n    // 把构建结果存储到 `builds`\n    out: path.join(__dirname, '../build'),\n\n    // 重写现有构建\n    overwrite: true,\n\n    // 指定平台的环境变量\n    platform: process.env.BUILD_TARGET || 'all'\n}\n```\n"
  },
  {
    "path": "docs/cn/using-static-assets.md",
    "content": "# 静态资源的使用\n\n如果你以前使用过官方的 `vuejs-templates/webpack` 样板，那么你应该对 `static/` 目录很熟悉。这里面，你可以放置可供 `main` 和 `renderer` 进程使用的静态资源。在 Vue 应用程序中使用这些资源很简单，但是使用 `fs` 和其他需要完整路径的模块可能会有点棘手。 幸运的是，electron-vue 提供了一个 `__static` 变量，它可以在开发和产品阶段生成 `static/` 目录的路径。\n\n### Vue 组件里 `src` 标签的使用案例\n\n假设我有一个组件需要下载一个图像，但是直到一些其他任务完成后这个图像的地址才能知道。简单起见，让我们用一个 `data` 变量来绑定图像的来源。\n\n**SomeComponent.vue**\n\n```html\n<template>\n  <img v-bind:src=\"imageUrl\">\n</template>\n\n<script>\n  export default {\n    data () {\n      // 注意 路径的起始是 `static/`\n      return { imageUrl: 'static/imgs/unsplash.png' }\n    }\n  }\n</script>\n```\n\n此处，`webpack` 并不会捆绑图像 `unsplash.png`，并且应用程序可以看到 `static/imgs/unsplash.png` 目录里的资源。感谢 `vue-loader` 为我们完成了所有繁琐的工作。\n\n### JS 搭配 `fs`、`path` 和 `__static` 的使用案例\n\n假设我们有一个静态资源，我们需要使用 `fs` 将它读入到我们的应用程序中，但是我们如何在开发和产品阶段为 `static/` 目录获得可靠的路径呢？electron-vue 提供了一个名为 `__static` 的全局变量，它将产生一个指向 `static/` 目录的正确路径。以下是我们在开发和产品阶段如何使用它读取一个简单的文本文件。\n\n**static/someFile.txt**\n\n```txt\nfoobar\n```\n\n**SomeFile.js \\(** `main` **或** `renderer` **进程\\)**\n\n```js\nimport fs from 'fs'\nimport path from 'path'\n\nlet fileContents = fs.readFileSync(path.join(__static, '/someFile.txt'), 'utf8')\n\nconsole.log(fileContents)\n// => \"foobar\"\n```\n\n请注意，在产品阶段，默认情况下，所有文件都包含 [`asar`](https://github.com/electron/asar)，因为它是被极力推荐的。因此，`static/` 文件夹中的资源只能在 `electron` 内部访问，因为只有 `electron` 了解此行为。由此，如果你打算将文件分发给用户，例如在外部程序中打开文件，那么，首先你需要将这些资源从应用程序复制到用户的文档空间或桌面中。从那里，你可以使用 electron 的 API [`shell.openItem()`](https://electron.atom.io/docs/api/shell/#shellopenitemfullpath) 来打开这些资源。\n\n这种情况的一种替代方法，是配置 `electron-packager` 或 `electron-builder`，设置特定文件，用来 “解压缩” 在产品阶段的 `asar` 存档。electron-vue 并没有计划支持这种方法; 任何与此或与如何设定此事项相关的问题将被关闭。\n"
  },
  {
    "path": "docs/cn/using_css_frameworks.md",
    "content": "# CSS 框架的使用\n\n虽然这可能看起来并不明智，但我建议你使用 [`style-loader`](https://github.com/webpack/style-loader) 将第三方 CSS 库导入 webpack，其实这一点我们已经为你做了。\n\n## 使用案例\n\n假设你要为你的程序使用 [bootstrap](http://getbootstrap.com/)、[bulma](http://bulma.io/) 或者 [materialize](http://materializecss.com/)。你可以仍旧像通常情况下一样，从 `npm` 安装你的库，而不是将资源附加到 `index.ejs` 上，我们将在我们的 JavaScript 中导入 CSS，具体在 `src/renderer/main.js` 中。\n\n#### 例子\n\n让我们安装 `bulma` 如下\n\n```bash\nnpm install bulma --save\n```\n\n然后，在 `src/renderer/main.js` 里面加入这一行：\n\n```bash\nimport 'bulma/css/bulma.css'\n```\n\n替代方案是, 你也可以在你的组件文件中引用 `bulma`。\n\n**App.vue**\n\n```html\n<style>\n  @import \"~bulma/css/bulma.css\";\n</style>\n```\n\n现在，`webpack` 会为我们的应用程序加载 `bulma`，并使其在产品构建中可用.\n"
  },
  {
    "path": "docs/cn/using_pre-processors.md",
    "content": "# 预处理器的使用\n\n将 [`vue-loader`](https://github.com/vuejs/vue-loader) 与 [`webpack`](https://github.com/webpack/webpack) 一起使用的好处之一是能够直接在你的 Vue 组件文件中预处理你的 HTML/CSS/JS，而无需其他工作。请查询 [**这里**](https://vuejs.org/v2/guide/single-file-components.html) 相关的详细信息。\n\n## 使用案例\n\n假设我们需要使用 Sass/SCSS 来预处理我们的 CSS。首先，我们需要安装正确的 `webpack` 加载器来处理这种语法。\n\n#### 安装 `sass-loader`\n\n```bash\nnpm install --save-dev sass-loader node-sass\n```\n\n一旦安装了我们需要的加载器，一切就都差不多完成了。`vue-loader` 将神奇地做好其余的工作。现在我们可以轻松地将 `lang=\"sass\"` 或 `lang=\"scss\"` 添加到我们的 Vue 组件文件中。注意，我们还安装了 `node-sass`，因为它是 `sass-loader` 的依赖包。\n\n#### 应用 `lang` 属性\n\n所以...\n\n```html\n<style>\n  body {\n    /* CSS */\n  }\n</style>\n```\n\n... 现在变成了 ...\n\n```html\n<style lang=\"scss\">\n  body {\n    /* SCSS */\n  }\n</style>\n```\n\n相同的原理适用于任何其他预处理器。那么，也许你的 JS 需要 coffeescript？只需安装 [coffeescript-loader](https://github.com/webpack/coffee-loader)，并将属性 `lang=“coffeescript”` 应用到你的 `<script>` 标签上。\n\n要获得该功能更高级的使用情况，请转到 [vue-loader 的文档](https://vue-loader.vuejs.org/zh/guide/pre-processors.html) 了解更多信息。\n\n## Sass/SCSS 全局变量的使用\n\n当使用 Sass/SCSS 作为你的 CSS 语法时，在整个 Vue 组件文件中使用 全局变量 与 混合嵌套 是非常有益的。以下是此方法的实现。\n\n### 使用案例\n\n此示例演示了如何将 `globals.scss` 应用于所有的 Vue 组件文件中。本文档假设你已经在开发环境中如上所述地设置了 `sass-loader`。\n\n#### 定义你的全局变量\n\n**src/renderer/globals.scss**\n\n```scss\n$brand-primary: blue;\n$brand-accent: turquoise;\n```\n\n#### 直接向 `node-sass` 注入 `globals.scss`\n\n在 **.electron-vue/webpack.renderer.config.js** 里编辑 `vue-loader` 的配置\n\n```js\nloaders: {\n  sass: 'vue-style-loader!css-loader!sass-loader?indentedSyntax=1&data=@import \"./src/renderer/globals\"',\n  scss: 'vue-style-loader!css-loader!sass-loader?data=@import \"./src/renderer/globals\";'\n}\n```\n\n#### 使用你的全局变量\n\n**SomeComponent.vue**\n\n```html\n<style lang=\"scss\">\n  body { color: $brand-primary; }\n</style>\n```\n"
  },
  {
    "path": "docs/cn/using_the_file_structure.md",
    "content": "# Using the File Structure\n\nelectron-vue 尽可能不强制一个特别的项目结构，但是努力去跟随通用 Vue & Electron 的实践。以下文档描述了在元项目结构中使用的通用实践。\n\n**如果你对 Electron 的 **`renderer`** 和 **`main`**进程不熟悉，请认真阅读第一部分 **[**快速起步**](http://electron.atom.io/docs/tutorial/quick-start)**。它详尽的解释了他们的不同。**\n\n### [渲染进程](renderer-process.md)\n\n### [主进程](main-process.md)\n"
  },
  {
    "path": "docs/cn/vue_accessories.md",
    "content": "# Vue 插件\n\nelectron-vue 包含以下 `vue` 插件，可以使用 `vue-cli` 脚手架安装...\n\n* [axios](https://github.com/mzabriskie/axios)\\(网络请求\\)\n* [vue-electron](https://github.com/SimulatedGREG/vue-electron) \\(将 electron API 附加到 Vue 对象\\)\n* [vue-router](https://github.com/vuejs/vue-router) \\(单页应用路由\\)\n* [vuex](https://github.com/vuejs/vuex) \\(flux 启发的应用程序架构\\)\n\n---\n\n### [`axios`](https://github.com/mzabriskie/axios)\n\n> 基于 Promise，用于浏览器和 node.js 的 HTTP 客户端\n\n如果你熟悉 `vue-resource`，那么你也会觉得 `axios` 并不陌生，因为大部分 API 几乎是一样的。你可以在 `main` 进程脚本中轻松导入 `axios`，或者在 `renderer` 进程中使用 `this.$http` 或 `Vue.http`。\n\n### [`vue-electron`](https://github.com/SimulatedGREG/vue-electron)\n\n> 将 electron API 附加到 Vue 对象的 vue 插件，使所有组件可以访问它们。\n\n一个可以轻松通过 `this.$electron` 访问 electron API 的简单的 `vue` 插件，不再需要将 `electron` 导入到每一个组件中。\n\n### [`vue-router`](https://github.com/vuejs/vue-router)\n\n> `vue-router` 是 [Vue.js](http://vuejs.org/) 的官方路由。它与 Vue.js 的核心深度整合，使 Vue.js 单页应用程序的构建变得轻而易举。\n\n本项目所提供的项目结构应该与官方样板 `vuejs-templates/webpack` 中提供的设置很相似。\n\n### [`vuex`](https://github.com/vuejs/vuex)\n\n> Vuex 是 Vue.js 应用程序的 **状态管理模式 + 库**。它作为程序中所有组件的集中存储，其规则确保了状态量只能以可预测的方式被改变。\n\n本项目所提供的项目结构相当简单，但我们鼓励使用 `vuex` 的模块模式来帮助组织你的数据存储。外加的 `@/store/modules/index.js` 让你的 `vuex` 存储能够一次性导入所有的模块。\n"
  },
  {
    "path": "docs/cn/webpack-configurations.md",
    "content": "# Webpack 配置\n\nelectron-vue 包含三个单独的、位于 `.electron-vue/` 目录中的 webpack 配置文件。除了可选的使用 `web` 输出以外，`main` 和 `renderer` 在安装过程中都是相似的。两者都使用 `babel-preset-env` 来针对 `node@7` 的功能特性、使用`babili`、并把所有的模块都视为 `externals`。\n\n### `.electron-vue/webpack.main.config.js`\n\n针对 electron 的 `main` 进程。这种配置是相当简单的，但确实包括一些常见的 `webpack` 做法。\n\n### `.electron-vue/webpack.renderer.config.js`\n\n针对 electron 的 `renderer` 进程。此配置用来处理你的 Vue 应用程序，因此它包含 `vue-loader` 和许多其他可在官方 `vuejs-templates/webpack` 样板中找到的配置。\n\n##### 白名单里的外部组件\n\n一个关于此配置的重要的事情是，你可以将特定的模块列入白名单，而不是把它视为 webpack 的 `externals`。并没有很多情况需要这个功能，但在某些情况下，对于提供原始的 `*.vue` 组件的 Vue UI 库，他们需要被列入白名单，以至于 `vue-loader` 能够编译它们。另一个使用情况是使用 webpack 的 `alias`，例如设置 `vue` 来导入完整的 编译+运行环境 的构建。因此，`vue` 已经在白名单中了。\n\n### `.electron-vue/webpack.web.config.js`\n\n针对为浏览器构建你的 `renderer` 进程的源代码。如果你需要把代码发布到网上，此配置则是其强大的起步基础。 **electron-vue 不支持更多其他的 Web 输出。** 与 Web 输出相关的 Issues 很可能会被推迟或关闭。\n"
  },
  {
    "path": "docs/en/README.md",
    "content": "![](../images/logo.png)\n\n> The boilerplate for making electron applications built with vue \\(pretty much what it sounds like\\).\n\n[![Build Status](https://semaphoreci.com/api/v1/simulatedgreg/electron-vue/branches/master/badge.svg)](https://semaphoreci.com/simulatedgreg/electron-vue)\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\n[![forthebadge](http://forthebadge.com/images/badges/built-with-love.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/uses-js.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/makes-people-smile.svg)](http://forthebadge.com)\n\n## Overview\n\nThe aim of this project is to remove the need of manually setting up electron apps using vue. electron-vue takes advantage of `vue-cli` for scaffolding, `webpack` with `vue-loader`, `electron-packager` or `electron-builder`, some of the most used plugins like `vue-router`, `vuex`, and so much more.\n\n#### Check out the documentation [here](https://simulatedgreg.gitbooks.io/electron-vue/content/index.html).\n\nThings you'll find in this boilerplate...\n\n* Basic project structure with a **single** `package.json` setup\n* Detailed [documentation](https://simulatedgreg.gitbooks.io/electron-vue/content/)\n* Project scaffolding using [vue-cli](https://github.com/vuejs/vue-cli)\n* Ready to use Vue plugins \\([axios](https://github.com/mzabriskie/axios), [vue-electron](https://github.com/SimulatedGREG/vue-electron), [vue-router](https://github.com/vuejs/vue-router), [vuex](https://github.com/vuejs/vuex)\\)\\*\n* Installed [vue-devtools](https://github.com/vuejs/vue-devtools) and [devtron](https://github.com/electron/devtron) tools for development\n* Ability to easily package your application using [electron-packager](https://github.com/electron-userland/electron-packager) or [electron-builder](https://github.com/electron-userland/electron-builder)\\*\n* `appveyor.yml` and `.travis.yml` configurations for automated deployments with [electron-builder](https://github.com/electron-userland/electron-builder)\\*\n* Ability to produce web output for browsers\n* Handy [NPM scripts](/npm_scripts.md)\n* Use of [webpack](https://github.com/webpack/webpack) and [vue-loader](https://github.com/vuejs/vue-loader) with Hot Module Replacement\n* Process restarting when working in electron's `main` process\n* HTML/CSS/JS pre-processor support with [vue-loader](https://github.com/vuejs/vue-loader/)\n* ES6 with [`stage-0`](https://babeljs.io/docs/plugins/preset-stage-0/) by default\n* Use of [`babili`](https://github.com/babel/babili) to remove the need of transpiling completely down to ES5\n* ESLint \\(with support for [`standard`](https://github.com/feross/standard) and [`airbnb-base`](https://github.com/airbnb/javascript)\\)\\*\n* Unit Testing \\(with Karma + Mocha\\)\\*\n* End-to-end Testing \\(with Spectron + Mocha\\)\\*\n\n\\*Customizable during `vue-cli` scaffolding\n\n### Getting Started\n\nThis boilerplate was built as a template for [`vue-cli`](https://github.com/vuejs/vue-cli) and includes options to customize your final scaffolded app. The use of `node@^7` or higher is required. electron-vue also officially recommends the [`yarn`](https://yarnpkg.org) package manager as it handles dependencies much better and can help reduce final build size with `yarn clean`.\n\n```bash\n# Install vue-cli and scaffold boilerplate\nnpm install -g vue-cli\nvue init simulatedgreg/electron-vue my-project\n\n# Install dependencies and run your app\ncd my-project\nyarn # or npm install\nyarn run dev # or npm run dev\n```\n\n##### Are you a Windows User?\n\nMake sure to check out [**A Note for Windows Users**](https://simulatedgreg.gitbooks.io/electron-vue/content/en/getting_started.html#a-note-for-windows-users) to make sure you have all the necessary build tools needed for electron and other dependencies.\n\n##### Wanting to use Vue 1?\n\nJust point to the `1.0` branch. Please note that electron-vue has officially deprecated the usage of `vue@^1`, so project structure, features, and documentation will reflect those changes \\([**legacy documentation**](https://github.com/SimulatedGREG/electron-vue/tree/1.0/docs)\\).\n\n```bash\nvue init simulatedgreg/electron-vue#1.0 my-project\n```\n\n### Next Steps\n\nMake sure to take a look at the [documentation](https://simulatedgreg.gitbooks.io/electron-vue/content/). Here you will find useful information about configuration, project structure, and building your app. There's also a handy [FAQs](https://simulatedgreg.gitbooks.io/electron-vue/content/en/faqs.html) section.\n\n## Made with electron-vue\n\nTake a look at some of the amazing projects built with electron-vue. Want to have your own project listed? Feel free to submit a pull request.\n\n* [**Surfbird**](https://github.com/surfbirdapp/surfbird): A Twitter client built on Electron and Vue\n* [**Lulumi-browser**](https://github.com/qazbnm456/lulumi-browser): Lulumi-browser is a light weight browser coded with Vue.js 2 and Electron\n* [**Space-Snake**](https://github.com/ilyagru/Space-Snake): A Desktop game built with Electron and Vue.js.\n* [**Forrest**](https://github.com/stefanjudis/forrest): An npm scripts desktop client\n* [**miikun**](https://github.com/hiro0218/miikun): A Simple Markdown Editor\n* [**Dakika**](https://github.com/Madawar/Dakika): A minute taking application that makes writing minutes a breeze\n* [**Dynamoc**](https://github.com/ieiayaobb/dynamoc): Dynamoc is a GUI client for dynamodb-local, dynalite and AWS dynamodb\n* [**Dockeron**](https://github.com/dockeron/dockeron): A dockeron project, built on Electron + Vue.js for Docker\n* [**Easysubs**](https://github.com/matiastucci/easysubs): Download subtitles in a very fast and simple way\n* [**adminScheduler**](https://github.com/danieltoorani/adminScheduler): An application leveraging electron for cross platform compatibility, Vue.js for lightning fast UI and full-calendar.io to deliver a premium calendar interface.\n* [**Data-curator**](https://github.com/ODIQueensland/data-curator): Share usable open data.\n"
  },
  {
    "path": "docs/en/SUMMARY.md",
    "content": "# Summary\n\n* [Introduction](./README.md)\n* [Getting Started](getting_started.md)\n* [Project Structure](project_structure.md)\n  * [File Tree](file-tree.md)\n  * [Renderer Process](renderer-process.md)\n  * [Main Process](main-process.md)\n  * [Webpack Configurations](webpack-configurations.md)\n* [Development](development.md)\n  * [Entry index.html](entry_indexhtml.md)\n  * [Vue Plugins](vue_accessories.md)\n  * [NPM Scripts](npm_scripts.md)\n  * [Using CSS Frameworks](using_css_frameworks.md)\n  * [Using Pre-Processors](using_pre-processors.md)\n  * [Using Static Assets](using-static-assets.md)\n  * [Read & Write Local Files](savingreading-local-files.md)\n  * [Debugging](debugging-production.md)\n* [Building Your App](building_your_app.md)\n  * [Using electron-packager](using-electron-packager.md)\n  * [Using electron-builder](using-electron-builder.md)\n* [Testing](testing.md)\n  * [Unit Testing](unittesting.md)\n  * [End-to-End Testing](end-to-end_testing.md)\n* [Meta](meta.md)\n  * [FAQs](faqs.md)\n  * [New Releases](new-releases.md)\n  * [Migration Guide](migration-guide.md)\n  * [Contributing](contributing.md)\n\n"
  },
  {
    "path": "docs/en/book.json",
    "content": "{\n  \"root\": \"\"\n}\n"
  },
  {
    "path": "docs/en/building_your_app.md",
    "content": "# Building Your App\n\nelectron-vue supports both [electron-packager](https://github.com/electron-userland/electron-packager) and [electron-builder](https://github.com/electron-userland/electron-builder) to build and distribute your production ready application. Both build tools are backed by the amazing [@electron-userland](https://github.com/electron-userland) community and each have detailed documentation. During `vue-cli` scaffolding you will be asked which builder you will want to use.\n\n## [`electron-packager`](using-electron-packager.md)\n\nIf you are new to making electron applications or just need to create simple executables, then `electron-packager` is perfect for your needs.\n\n## [`electron-builder`](using-electron-builder.md)\n\nIf you are looking for full installers, auto-update support, CI building with Travis CI & AppVeyor, or automation of rebuilding native node modules, then `electron-builder` is what you will need.\n\n"
  },
  {
    "path": "docs/en/contributing.md",
    "content": "# Contributing\nWanting to help with this boilerplate? Feel free to submit a pull request. Before getting ready to submit anything, make sure to check out the following...\n\n### JavaScript Standard Style\nTo ensure all JS follows basic ***style standards*** make sure it follows these [rules](http://standardjs.com/#rules).\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)"
  },
  {
    "path": "docs/en/debugging-production.md",
    "content": "# Debugging\n\n### Main Process\n\nWhen running your application in development you may have noticed a message from the `main` process mentioning a remote debugger. Ever since the release of `electron@^1.7.2`, remote debugging over the Inspect API was introduced and can be easily accessed by opening the provided link with Google Chrome or through another debugger that can remotely attach to the process using the default port of 5858, such as Visual Studio Code.\n\n```bash\n┏ Electron -------------------\n\n  Debugger listening on port 5858.\n  Warning: This is an experimental feature and could change at any time.\n  To start debugging, open the following URL in Chrome:\n      chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:5858/22271e96-df65-4bab-9207-da8c71117641\n\n┗ ----------------------------\n```\n\n### Production Builds\n\n###### Notice\n\nAlthough it is possible to debug your application in production, please do know that production code is minified and highly unreadable compared to what you find during development.\n\n##### `renderer` Process\n\nThere isn't much of a big difference here than it is in development. You can simply invoke the dev tools using the [`BrowserWindow` APIs](https://electron.atom.io/docs/api/web-contents/#contentsopendevtoolsoptions). Using the initial electron-vue setup, you can add the following snippet of code inside `src/main/index.js` , just after the `new BrowserWindow` construction, to force the dev tools to open on launch.\n\n```js\nmainWindow.webContents.openDevTools()\n```\n\n##### `main` Process\n\nSimilar to what is mentioned above, you can also attach an external debugger to the `main` process to remotely debug your application. In order to activate the debugger in production you can add the follow snippet after the `app` import inside `src/main/index.js`. Then you can navigate Google Chrome to `chrome://inspect` and get connected.\n\n```js\napp.commandLine.appendSwitch('inspect', '5858')\n```\n\n\n\n"
  },
  {
    "path": "docs/en/development.md",
    "content": "# Development\n\n### Starting the development setup\n\nAfter you have installed dependencies with `yarn` or `npm install`, then run...\n\n```bash\nyarn run dev # or npm run dev\n```\n\n...and boom! You now have a running electron-vue app.  \n![](../images/landing-page.jpg)\n\nThis boilerplate comes with a few landing-page components that are easily removable.\n\n"
  },
  {
    "path": "docs/en/end-to-end_testing.md",
    "content": "# End-to-End Testing\n\nelectron-vue makes use of [Spectron](http://electron.atom.io/spectron/) and the [Mocha](https://mochajs.org/) \\(with [Chai](http://chaijs.com/)\\) test framework for end-to-end testing. Mocha & Chai APIs, including `expect`, `should`, and `assert`, are made available in global scope.\n\n### Running tests\n\n```bash\n# Begin Mocha\nnpm run e2e\n```\n\n##### Note\n\nBefore running end-to-end tests, a `npm run pack` is called to create a production build that Spectron can consume during tests.\n\n### File Structure\n\n```\nmy-project\n├─ test\n|  ├─ e2e\n│  │  ├─ specs/\n│  │  ├─ index.js\n└─ └─ └─ utils.js\n```\n\n**For the most part, you can ignore **`index.js`** and focus solely on writing **`specs/`**.**\n\n#### `specs/`\n\nInside this directory is where actual tests are written. Thanks to the power of `babel-register`, you have full access to ES2015.\n\n#### `index.js`\n\nThis file acts as the main entry to Mocha and gathers all tests written in `specs/` for testing.\n\n#### `utils.js`\n\nHere you will find generic functions that could be of use throughout your `specs/`. Base functions include a `beforeEach` and `afterEach` that handle the electron creation/destruction process.\n\n### On the subject of Spectron\n\nSpectron is the official [electron](http://electron.atom.io) testing framework that uses both [ChromeDriver](https://sites.google.com/a/chromium.org/chromedriver/) and [WebDriverIO](http://webdriver.io/) for manipulating DOM elements.\n\n#### Using WebDriverIO\n\nAs stated in the Spectron [documentation](https://github.com/electron/spectron#client), access to [WebDriverIO APIs](http://webdriver.io/api.html) can be accessed through `this.app.client`. Since electron-vue uses Mocha, the context of `this` is shared between `afterEach`, `beforeEach`, and `it`. Because of this, it is important to note that ES2015 arrow functions cannot not be used in certain situations as the context of `this` will be overwritten \\([more info](https://mochajs.org/#arrow-functions)\\).\n\n"
  },
  {
    "path": "docs/en/entry_indexhtml.md",
    "content": "# Entry `index.html`\n\nelectron-vue makes use of [**`html-webpack-plugin`**](https://github.com/ampedandwired/html-webpack-plugin) to create the `index.html` in production builds. During development you will find a `index.ejs` in the `src/` directory. It is here where you can make changes to your entry HTML file.\n\nIf you are unfamiliar with how this plugin works, then I'd encourage you take a look at its [documentation](https://www.npmjs.com/package/html-webpack-plugin). But in short, this plugin will automatically inject production assets including `renderer.js` and `styles.css` into a final minified `index.html`.\n\n### `index.ejs` during development\n\n```html\n<!DOCTYPE html>\n<html>\n  <head>\n    <meta charset=\"utf-8\">\n    <title><%= htmlWebpackPlugin.options.title %></title>\n    <%= ... %>\n  </head>\n  <body>\n    <div id=\"app\"></div>\n    <!-- webpack builds are automatically injected -->\n  </body>\n</html>\n```\n\n### `index.html` in production \\(non-minified\\)\n\n```html\n<!DOCTYPE html>\n<html>\n  <head>\n    <meta charset=\"utf-8\">\n    <title>app</title>\n    <link href=\"styles.css\" rel=\"stylesheet\">\n  </head>\n  <body>\n    <div id=\"app\"></div>\n    <script type=\"text/javascript\" src=\"renderer.js\"></script>\n  </body>\n</html>\n```\n\n### On the subject of using CDNs\n\nAlthough the benefits of using assets served from a CDN can be great for your application's final build size, I would advised against using them. The main reason being is that by doing so you are assuming the application always has access to the internet, which is not always the case for Electron apps. This becomes a rather major issue with CSS frameworks like bootstrap, as your app will quickly become an un-styled mess.\n\n> \"I don't care, I still want to use a CDN\"\n\nIf you are determined to still use a CDN, then you can still do so by adding the tags to your `src/index.ejs` file. Just make sure to set up proper UI/UX flows for when you app is offline.\n\n"
  },
  {
    "path": "docs/en/faqs.md",
    "content": "# FAQs\n\n* [Why is my electron app blank after running `npm run dev`?](#why-is-my-electron-app-blank-after-running-npm-run-dev)\n* [Why does my electron app show a file explorer?](#why-does-my-electron-app-show-a-file-explorer)\n* [Why is `vue-devtools`/`devtron` missing?](#why-is-vue-devtoolsdevtron-missing)\n* [Where do I put Static Assets?](#where-do-i-put-static-assets)\n* [Why did `npm run lint` end with an error?](#why-did-npm-run-lint-end-with-an-error)\n* [Why can't I load my app in a web browser?](#why-cant-i-load-my-app-in-a-web-browser)\n* [How do I import `jquery`?](#how-do-import-jquery)\n* [How can I debug the `main` process?](#how-can-i-debug-the-main-process)\n\n---\n\n## Why is my electron app blank after running `npm run dev`?\n\n#### TL;DR\n\nMake sure you don't have a personal **proxy** setup that could tamper with `webpack-dev-server`.\n\n## Why does my electron app show a file explorer?\n\n#### TL;DR\n\nYour `src/renderer` contains error\\(s\\). Check console, fix errors, then refresh electron with `CommandOrControl+R`.\n\n##### Long answer\n\nIf error\\(s\\) are present in you `src/renderer` this creates conflicts with ESLint on first run. In turn, an INVALID webpack `renderer.js` is produced which interrupts `HtmlWebpackPlugin` from creating `index.html`. Since `webpack-dev-server` doesn't have the `index.html` ready to serve, the server falls back to the file explorer.\n\n## Why is `vue-devtools`/`devtron` missing?\n\nMake sure to close and reopen the developer tools panel on first launch if they are missing. Also check your terminal check for any error messages that may occur during installation.\n\n## Where do I put Static Assets?\n\n[**Using Static Assets**](using-static-assets.md)\n\n## Why did `npm run lint` end with an error?\n\nThe default nature of eslint is to print linting errors to console, and if there is any found the script will end with a non-zero exit \\(which produces npm errors\\). This is normal behavior.\n\n## Why can't I load my app in a web browser?\n\n[\\#195](https://github.com/SimulatedGREG/electron-vue/issues/195)\n\n## How do import `jquery`?\n\nIf you are wanting to use `bootstrap`, I'm going to have to stop you right there. Using both `vue` and `jquery` in the same environment is a bad practice and leads to the two frameworks colliding with each other. I would highly recommend using a `bootstrap` alternative that uses `vue` for its JavaScript functionality. Some recommendations include [`bootstrap-vue`](https://github.com/bootstrap-vue/bootstrap-vue) and [`vue-strap`](https://github.com/yuche/vue-strap). For whatever reason you must use `jquery`, seek guidance from `webpack`'s documentation about the `ProvidePlugin` or see [\\#192](https://github.com/SimulatedGREG/electron-vue/issues/192).\n\n## How can I debug the `main` process?\n\nWhen using `electron@^1.7.2` you can open up Google Chrome, head to `chrome://inspect`, and then pop open the remote electron process while your application is running in development mode.\n\n[Electron Documentation](https://github.com/electron/electron/blob/master/docs/tutorial/debugging-main-process.md)\n\n"
  },
  {
    "path": "docs/en/file-tree.md",
    "content": "# File Tree\n\n### During development\n\n**Note**: Some files/folders may differ based on the settings chosen during `vue-cli` scaffolding.\n\n```\nmy-project\n├─ .electron-vue\n│  └─ <build/development>.js files\n├─ build\n│  └─ icons/\n├─ dist\n│  ├─ electron/\n│  └─ web/\n├─ node_modules/\n├─ src\n│  ├─ main\n│  │  ├─ index.dev.js\n│  │  └─ index.js\n│  ├─ renderer\n│  │  ├─ components/\n│  │  ├─ router/\n│  │  ├─ store/\n│  │  ├─ App.vue\n│  │  └─ main.js\n│  └─ index.ejs\n├─ static/\n├─ test\n│  ├─ e2e\n│  │  ├─ specs/\n│  │  ├─ index.js\n│  │  └─ utils.js\n│  ├─ unit\n│  │  ├─ specs/\n│  │  ├─ index.js\n│  │  └─ karma.config.js\n│  └─ .eslintrc\n├─ .babelrc\n├─ .eslintignore\n├─ .eslintrc.js\n├─ .gitignore\n├─ package.json\n└─ README.md\n```\n\n#### Production builds\n\n```\napp.asar\n├─ dist\n│  └─ electron\n│     ├─ static/\n│     ├─ index.html\n│     ├─ main.js\n│     └─ renderer.js\n├─ node_modules/\n└─ package.json\n```\n\nAs you can probably tell, almost everything is stripped down in final production builds. This is almost mandatory when distributing electron apps, as you do not want your users to download bloated software with a large file size.\n\n\n\n\n\n"
  },
  {
    "path": "docs/en/getting_started.md",
    "content": "# Getting Started\n\n## Scaffolding\n\nThis boilerplate was built as a template for [vue-cli](https://github.com/vuejs/vue-cli) and includes options to customize your final scaffolded application. The use of `node@^7` or higher is required. electron-vue also officially recommends the [`yarn`](https://yarnpkg.org) package manager as it handles dependencies much better and can help reduce final build size with `yarn clean`.\n\n```bash\n# Install vue-cli and scaffold boilerplate\nnpm install -g vue-cli\nvue init simulatedgreg/electron-vue my-project\n\n# Install dependencies and run your app\ncd my-project\nyarn # or npm install\nyarn run dev # or npm run dev\n```\n\n#### On the subject of electron\n\nAlthough optional, it is recommended to lock in your electron version after scaffolding your project. This helps prevent other developers working on the same project from developing on a different version. Electron makes releases quite often so features are always subject to change. [More Info](http://electron.atom.io/docs/tutorial/electron-versioning/).\n\n#### A note for Windows Users\n\nIf you run into errors during `npm install` about `node-gyp`, then you most likely do not have the proper build tools installed on your system. Build tools include items like Python and Visual Studio. Thanks to [@felixrieseberg](https://github.com/felixrieseberg), there are a few packages to help simplify this process.\n\nThe first item we need to check is our npm version and ensure that it is not outdated. This can is accomplished using [`npm-windows-upgrade`](https://github.com/felixrieseberg/npm-windows-upgrade). If you are using `yarn`, then you can skip this check.\n\nOnce that is complete, we can then continue to setup the needed build tools. Using [`windows-build-tools`](https://github.com/felixrieseberg/windows-build-tools), most of the dirty work is done for us. Installing this globally will in turn setup Visual C++ packages, Python, and more.\n\nAt this point things should successfully install, but if not then you will need a clean installation of Visual Studio. Please note that these are not direct problems with electron-vue itself \\(Windows can be difficult sometimes ¯\\\\\\_\\(ツ\\)\\_/¯\\).\n\n"
  },
  {
    "path": "docs/en/global_configuration.md",
    "content": "# Global Configuration\n\nelectron-vue uses the [webpack](https://github.com/webpack/webpack) module loader system for pre-processing, bundling, and building your app. The default settings are rather common and should meet most of your needs. An additional `config.js` is provided in the root directory for quick adjustments. Further customization can be made by directly adjusting `webpack.main.config.js` and `webpack.renderer.config.js`.\n\n#### `config.js`\n**Note**: Some options may differ based on the settings choosen during `vue-cli` scaffolding.\n\n```js\n{\n  // Name of electron app\n  // Will be used in production builds\n  name: 'app',\n\n  // Use ESLint\n  // Further changes can be made in `.eslintrc.js`\n  eslint: true,\n\n  // webpack-dev-server port\n  port: 9080,\n\n  // electron-packager options\n  // See `Building you app` for more info\n  building: {\n    arch: 'x64',\n    asar: true,\n    dir: path.join(__dirname, 'app'),\n    icon: path.join(__dirname, 'app/icons/icon'),\n    ignore: /\\b(src|index\\.ejs|icons)\\b/,\n    name: pkg.name,\n    out: path.join(__dirname, 'builds'),\n    overwrite: true,\n    platform: process.env.PLATFORM_TARGET || 'all'\n  }\n}\n```\n"
  },
  {
    "path": "docs/en/main-process.md",
    "content": "# Main Process\n\n> In Electron, the process that runs package.json’s main script is called the main process. The script that runs in the main process can display a GUI by creating web pages.\n\n**From the **[**Electron Documentation**](http://electron.atom.io/docs/tutorial/quick-start/#main-process)\n\n---\n\nSince the `main` process is essentially a full node environment, there is no initial project structure other than two files.\n\n#### `src/main/index.js`\n\nThis file is your application's main file, the file in which `electron` boots with. It is also used as `webpack`'s entry file for production. All `main` process work should start from here.\n\n#### `app/src/main/index.dev.js`\n\nThis file is used specifically and only for development as it installs `electron-debug` & `vue-devtools`. There shouldn't be any need to modify this file, but it can be used to extend your development needs.\n\n## On the subject of using `__dirname` & `__filename`\n\nSince the `main` process is bundled using `webpack`, the use of `__dirname` & `__filename` **will not** provide an expected value in production. Referring to the [**File Tree**](/file-tree.md), you'll notice that in production the `main.js` is placed inside the `dist/electron` folder. Based on this knowledge, use `__dirname` & `__filename` accordingly.\n\n**If you are in need of a path to your `static/` assets directory, make sure to read up on **[**Using Static Assets**](/using-static-assets.md)** to learn about the super handy `__static` variable.**\n\n```\napp.asar\n├─ dist\n│  └─ electron\n│     ├─ static/\n│     ├─ index.html\n│     ├─ main.js\n│     └─ renderer.js\n├─ node_modules/\n└─ package.json\n```\n\n\n\n"
  },
  {
    "path": "docs/en/meta.md",
    "content": "# Meta\n\n### Thank You\n\nWow, thank you guys so much for helping make electron-vue one of the top 3`vue-cli`templates \\(that I can find\\) on GitHub. I never thought this project would ever take off like it has today. Thinking back, I originally made this boilerplate \\(in **May 2016**\\) for a personal closed sourced project and decided to open source \\(the boilerplate itself\\) when I knew I had a majority of the pieces together. Fast-forward to today and there have been so many new features implemented and amazing support from the community. I also want to give a special shoutout to those in the community helping answer issues when I'm not able to. You guys have absolutely no obligation to do anything but you do anyway, and I am grateful for that.\n\nIf you are reading this, then I can almost assume you really do enjoy electron-vue. A lot of time was spent creating this boilerplate. If you are feeling generous, then feel free to leave a tip if you want. Surely future development of electron-vue is not dependent upon donations, but its always an option if you decide to use it.\n\n#### [**PayPal.me**](https://www.paypal.me/simulatedgreg/5) \n\n\n\n"
  },
  {
    "path": "docs/en/migration-guide.md",
    "content": "# Migration Guide\n\nThe following documentation attempts to explain how migrating your project _should_ be accomplished, but may not be a full proof method as overall project structure is always up for change.\n\n1. Scaffold a fresh version of electron-vue using `vue init simulatedgreg/electron-vue my-project`\n2. Copy over current project `src` files into the new scaffold's `src` directory\n3. Copy over `package.json` dependencies from current project to the new scaffold's `package.json`\n4. Install dependencies with `yarn` or `npm install`\n5. Run project in development mode \\(`yarn run dev` or `npm run dev`\\)\n6. Watch console for errors to fix\n\nJust as previously mentioned above, there isn't a full proof method for migrating to a new scaffold, but these are typically going to be the major steps to get you nearly all the way there. Any personal modifications to project structure or handling of assets will be up to you or your team to migrate. Make sure to check out the rest of the documentation as it will always reflect the current version of electron-vue from the `master` branch.\n\n"
  },
  {
    "path": "docs/en/miscellaneous.md",
    "content": ""
  },
  {
    "path": "docs/en/new-releases.md",
    "content": "# New Releases\n\nelectron-vue has evolved greatly since its initial creation in May of 2016 and has introduced many new fantastic features. Can you believe there was a time `vue-cli` scaffolding wasn't supported? Development of new features is not planned to end anytime soon. The only down side to new bells & whistles every now and then is having your project stuck on an older scaffold. Since electron-vue takes advantage of `vue-cli` there unfortunately isn't a structured way to _version_ the boilerplate or make it _updatable_.\n\nMajor updates of electron-vue will be made through GitHub Milestones and will include many new features/bug fixes at a time, making these releases the optimal time to [migrate](/migration-guide.md) any existing projects to a newer scaffold. These milestones are not usually planned, but arise as feature requests add up in the issue tracker.\n\n### Past Milestones\n\n#### [Multiplex](https://github.com/SimulatedGREG/electron-vue/milestone/1?closed=1)\n\n* Migration to `webpack` 2\n* Support for `electron-builder`\n* Support for `main` process bundling\n* General bugfixing\n\n#### [Minimize](https://github.com/SimulatedGREG/electron-vue/issues/171)\n\n* Migration to single `package.json` structure\n* Travis CI / AppVeyor configs for `electron-builder` users\n* Minimal web output of `renderer` process\n* Migration to `axios`\n* Full support for `main` process bundling\n* Rewrite of development and build scripts\n* Migration to `babili` to remove the need of transpiling down completely to ES5\n* Support for `static/` assets when using modules that require a full path \\([`__static`](/using-static-assets.md)\\)\n\n\n\n"
  },
  {
    "path": "docs/en/npm_scripts.md",
    "content": "# NPM Scripts\n\nTo help eliminate redundant tasks around the development process, please take note of some of the NPM scripts available to you. The following commands should be ran from your project's root directory. And of course, you can run any of the below commands using `yarn run <command>`.\n\n### `npm run build`\n\nBuild your app for production and package. More info can be found in the [**Building Your App**](building_your_app.md) section.\n\n### `npm run dev`\n\nRun app in development.\n\nYou can also pass command line paramaters to the application with: \n\n    npm run dev --arg1=val1 --arg2\n\n### `npm run lint`\n\nLint all your `src/`'s and `test/`'s JS & Vue component files.\n\n### `npm run lint:fix`\n\nLint all your `src/`'s and `test/`'s JS & Vue component files and attempt to fix issues.\n\n### `npm run pack`\n\nRun both `npm run pack:main` & `npm run pack:renderer`. Although these commands are available, there are not many cases where you will need to manually do this as `npm run build` will handle this step.\n\n### `npm run pack:main`\n\nRun webpack to bundle `main` process source code.\n\n### `npm run pack:renderer`\n\nRun webpack to bundle `renderer` process source code.\n\n### `npm run unit`\n\nRun unit tests with Karma + Jasmine. More information on [**Unit Testing**](unittesting.md).\n\n### `npm run e2e`\n\nRun end-to-end tests with Spectron + Mocha. More information on [**End-to-end Testing**](end-to-end_testing.md).\n\n### `npm test`\n\nRuns both `npm run unit` & `npm run e2e`. More information on [**Testing**](testing.md).\n\n"
  },
  {
    "path": "docs/en/project_structure.md",
    "content": "# Project Structure\n\nWhen it comes to making electron apps, project structure is a little different. If you have used the official [`vuejs-templates/webpack`](https://github.com/vuejs-templates/webpack) setup before, then the structure should feel quite familiar. The documentation in this section attempts to explain a general overview of how the boilerplate works and the differences when your application is built.\n\n### Single `package.json` Setup\n\nThere was a time not too long ago where a two `package.json` setup was neccessary, but thanks to efforts from [@electron-userland](https://github.com/electron-userland), both [`electron-packager`](https://github.com/electron-userland/electron-packager) and [`electron-builder`](https://github.com/electron-userland/electron-builder) now fully support a single `package.json` setup.\n\n#### `dependencies`\n\nThese dependencies **will** be included in your final production app. So if your application needs a certain module to function, then install it here!\n\n#### `devDependencies`\n\nThese dependencies **will not** be included in your final production app. Here you can install modules needed specifically for development like build scripts, `webpack` loaders, etc.\n\n#### Installing Native NPM Modules\n\nWe need to make sure our native npm modules are built against electron. To do that, we can use [`electron-rebuild`](https://github.com/electron/electron-rebuild), but to make things simpler, it is highly recommended to use [`electron-builder`](https://github.com/electron-userland/electron-builder) for your build tool as a lot of these tasks are handled for you.\n\n### On the subject of the `main` process\n\nDuring development you may notice `src/main/index.dev.js`. This file is used specifically for development and is used to install dev-tools. This file should not have to be modified, but can be used to extend your development needs. Upon building, `webpack` will step in and create a bundle with `src/main/index.js` as its entry file.\n"
  },
  {
    "path": "docs/en/renderer-process.md",
    "content": "# Renderer Process\n\n> Since Electron uses Chromium for displaying web pages, Chromium’s multi-process architecture is also used. Each web page in Electron runs in its own process, which is called the renderer process.\n>\n> In normal browsers, web pages usually run in a sandboxed environment and are not allowed access to native resources. Electron users, however, have the power to use Node.js APIs in web pages allowing lower level operating system interactions.\n\n**From the **[**Electron Documentation**](http://electron.atom.io/docs/tutorial/quick-start/#renderer-process)\n\n---\n\n## On the subject of `vue` and `vuex`\n\n### vue components\n\nIf you are unfamiliar with Vue components, please give [this](http://vuejs.org/v2/guide/single-file-components.html) a read. Using components gives our large complex applications more organization. Each component has the ability to encapsulate its own CSS, template, and JavaScript functionality.\n\nComponents are stored in `src/renderer/components`. When creating child components, a common organization practice is to place them inside a new folder with the name of its parent component. This is especially useful when coordinating different routes.\n\n```\nsrc/renderer/components\n├─ ParentComponentA\n│  ├─ ChildComponentA.vue\n│  └─ ChildComponentB.vue\n└─ ParentComponentA.vue\n```\n\n### vue routes\n\nFor more information about `vue-router` click [here](https://github.com/vuejs/vue-router). In short, it is encouraged to use `vue-router` as creating a Single Page Application is much more practical when making Electron applications. Do you really want to manage a bunch of BrowserWindows and then communicating information between everything? Probably not.\n\nRoutes are held in `src/renderer/router/index.js` and defined like so...\n\n```js\n{\n  path: '<routePath>',\n  name: '<routeName>',\n  component: require('@/components/<routeName>View')\n}\n```\n\n...where both `<routePath>` and `<routeName>` are variables. These routes are then attached to the component tree using the `<router-view>` directive in `src/renderer/App.vue`.\n\n##### Notice\n\nWhen using `vue-router`, do not use [**HTML5 History Mode**](http://router.vuejs.org/en/essentials/history-mode.html). This mode is strictly meant for serving files over the `http` protocol and does not work properly with the `file` protocol that Electron serves files with in production builds. The default `hash` mode is just what we need.\n\n### vuex modules\n\nDescribing `vuex` is not the easiest thing to do, so please read [this](https://vuex.vuejs.org/guide/) for a better understanding of what problem it tries to solve and how it works.\n\nelectron-vue takes advantage of `vuex`'s module structure to create multiple data stores, which are saved in `src/renderer/store/modules`.\n\nHaving multiple data stores can be great for organization, but it can also be annoying to have to import each and every one. But don't fret, as `src/renderer/store/modules/index.js` does the dirty work for us! This little script lets `src/renderer/store/index.js` import all of our modules in a one-shot manner. If all that didn't make sense, just know you can easily duplicate the given `Counter.js` module and it will be loaded in \"magically\".\n"
  },
  {
    "path": "docs/en/savingreading-local-files.md",
    "content": "# Read & Write Local Files\n\nOne great benefit of using `electron` is the ability to access the user's file system. This enables you to read and write files on the local system. To help avoid Chromium restrictions and writing to your application's internal files, make sure to take use of `electron`'s APIs, specifically the [`app.getPath(name)`](https://electron.atom.io/docs/api/app/#appgetpathname) function. This helper method can get you file paths to system directories such as the user's desktop, system temporary files, etc.\n\n### Use Case\n\nLet's say we want to have a local database store for our application. In this example we'll demonstrate with [`nedb`](https://github.com/louischatriot/nedb).\n\n```bash\nyarn add nedb # or npm install nedb --save\n```\n\n**src/renderer/datastore.js**\n\nHere we setup NeDB and point it to our `userData` directory. This space is reserved specifically for our application, so we can have confidence other programs or other user interactions should not tamper with this file space. From here we can import `datastore.js` in our `renderer` process and consume it.\n\n```js\nimport Datastore from 'nedb'\nimport path from 'path'\nimport { remote } from 'electron'\n\nexport default new Datastore({\n  autoload: true,\n  filename: path.join(remote.app.getPath('userData'), '/data.db')\n})\n```\n\nIf we want to setup multiple databases across different files in to our `userData` directory, we can wrap the Datastore into a function and export many databases.\n\n```js\nimport Datastore from 'nedb'\nimport path from 'path'\nimport { remote } from 'electron'\n\nconst dbFactory = file =>\n  new Datastore({\n    filename: `${path.join(remote.app.getPath('userData'))}/data/${file}`,\n    autoload: true\n  })\n\nconst db = {\n  users: dbFactory('users.db'),\n  config: dbFactory('config.db')\n}\n\nexport default db\n```\n\n**src/renderer/main.js**\n\nTo take this a step further, we can then import our datastore into `src/renderer/main.js` and attach it to the Vue prototype. Doing so, we are now able to access the datastore API through the usage of `this.$db` in all component files. If we had multiple databases, we are able to acces throught the usage of `this.$db.{database-name}`.\n\n```js\nimport db from './datastore'\n\n/* Other Code */\n\nVue.prototype.$db = db\n```\n\n\n\n"
  },
  {
    "path": "docs/en/testing.md",
    "content": "# Testing\n\nelectron-vue supports both unit testing and end-to-end testing for the `renderer` process and is heavily inspired by the testing setup provided with the official `vuejs-templates/webpack` boilerplate. During `vue-cli` scaffolding you will have the option to include testing support.\n\n## [Unit testing](unittesting.md)\n\nRun unit tests with Karma + Mocha\n\n```bash\nnpm run unit\n```\n\n## [End-to-end testing](end-to-end_testing.md)\n\nRun end-to-end tests with Spectron + Mocha\n\n```bash\nnpm run e2e\n```\n\n## Running all tests\n\n```bash\nnpm test\n```\n\n### On the subject of CI testing\n\nIf your decided to use `electron-builder` as your build tool when scaffolding, then you can easily test your application on both Travis CI & AppVeyor for `darwin`, `linux`, and `win32`. Inside both `.travis.yml` and `appveyor.yml` you will find commented sections you can quickly un-comment to enable testing. Make sure to read up on [**Automated Deployments using CI**](using-electron-builder.md#automated-deployments-using-ci)** **for further information.\n\n"
  },
  {
    "path": "docs/en/unittesting.md",
    "content": "# Unit Testing\n\nelectron-vue makes use of the [Karma](https://karma-runner.github.io/1.0/index.html) test runner and the [Mocha](https://mochajs.org/) test framework \\(with [Chai](http://chaijs.com/)\\) for unit testing.\n\nBoth Mocha and Chai are integrated using `karma-mocha` and `karma-chai` respectively, so all APIs such as `expect` are globally available in test files.\n\n### Running Tests\n\n```bash\n# Begin Karma\nnpm run unit\n```\n\n### File Structure\n\n```\nmy-project\n├─ test\n|  ├─ unit\n│  │  ├─ specs/\n│  │  ├─ index.js\n└─ └─ └─ karma.conf.js\n```\n\n**For the most part, you can ignore both **`index.js`** and **`karma.conf.js`** and focus solely on writing **`specs/`**.**\n\n#### `specs/`\n\nInside this directory is where actual tests are written. Thanks to the power of webpack, you have full access to ES2015 and supported loaders.\n\n#### `index.js`\n\nThis is the entry file used by `karma-webpack`. The purpose of this file is to gather all test and source code in a \"one-shot\" manner.\n\n#### `karma.conf.js`\n\nHere you will find the actual `karma` configuration, set up with spec/coverage reporters. Further customization can be made in accordance to the [official karma documentation](http://karma-runner.github.io/1.0/config/configuration-file.html).\n\n### Mocking Dependencies\n\nelectron-vue comes with [`inject-loader`](https://github.com/plasticine/inject-loader) installed by default. For usage with Vue component files see [`vue-loader` docs on testing with mocks](http://vue-loader.vuejs.org/en/workflow/testing-with-mocks.html).\n\n"
  },
  {
    "path": "docs/en/using-electron-builder.md",
    "content": "# Using [`electron-builder`](https://github.com/electron-userland/electron-builder)\n\nAll builds produced by `electron-builder` can be found within the `build` directory.\n\n#### Building\n\n```bash\nnpm run build\n```\n\n#### Building unpacked directory\n\nProduce simple executable without full installer. Useful for quick testing.\n\n```bash\nnpm run build:dir\n```\n\n### Default building configuration\n\nFurther customization can be made at `package.json` in accordance to `electron-builders`'s options found [here](https://github.com/electron-userland/electron-builder/wiki/Options).\n\n```js\n\"build\": {\n  \"productName\": \"ElectronVue\",\n  \"appId\": \"org.simulatedgreg.electron-vue\",\n  \"dmg\": {\n    \"contents\": [\n      {\n        \"x\": 410,\n        \"y\": 150,\n        \"type\": \"link\",\n        \"path\": \"/Applications\"\n      },\n      {\n        \"x\": 130,\n        \"y\": 150,\n        \"type\": \"file\"\n      }\n    ]\n  },\n  \"directories\": {\n    \"output\": \"build\"\n  },\n  \"files\": [\n    \"dist/electron\",\n    \"node_modules/\",\n    \"package.json\"\n  ],\n  \"mac\": {\n    \"icon\": \"build/icons/icon.icns\"\n  },\n  \"win\": {\n    \"icon\": \"build/icons/icon.ico\"\n  },\n  \"linux\": {\n    \"icon\": \"build/icons\"\n  }\n}\n```\n\n## Automated Deployments using CI\n\nWhen using electron-vue's `electron-builder` configuration, you are also provided a `appveyor.yml` and `.travis.yml` for automated deployments. Both config files are setup for building your electron application and pushing artifacts to a GitHub release, Bintray, etc. Travis CI is used to build both `linux` and `darwin` \\(macOS\\) while AppVeyor is used to build `win32`. Both services are free for OSS projects.\n\n#### Setting up Travis CI/AppVeyor\n\n1. Create an account over at [Travis CI](https://travis-ci.org/getting_started) / [AppVeyor](https://www.appveyor.com/)\n2. Link your GitHub repository that has your electron-vue project\n3. Visit [https://github.com/settings/tokens](https://github.com/settings/tokens) and hit **Generate new token **\\(the same token can be used for both Travis CI & AppVeyor\\)\n   1. Set a **Token description**\n   2. Check the **public\\_repo **scope\n   3. Hit **Generate token**\n4. Copy your new token and save for later\n5. Open your repository settings on Travis CI / AppVeyor to add a new **Environment Variable**\n   1. Set the name of the variable to `GH_TOKEN`\n   2. Set the value of the variable to the GitHub access token you just created\n   3. **Save** the new variable and ensure encryption is enabled\n\nAt this point, everything should be setup. Travis CI/AppVeyor by default will watch for any pushes to your `master` branch. When a push is made, Travis CI/AppVeyor will then clone down your repository to its server and begin the build process. During the final stages, `electron-builder` with see the `GH_TOKEN` environment variable and create a draft release and upload the artifacts to your public GitHub repository. From this point, you can edit the draft release and then publish it to the world. After publishing your release, make sure future releases are marked with a new version number by updating your `package.json`.\n\n#### Auto Updating\n\nEnabling your application to receive automatic updates is a super nice feature to have, but know that [**Code Signing**](https://github.com/electron-userland/electron-builder/wiki/Code-Signing) is required. You can setup code signing by adding a few more environment variables based on what `electron-builder` needs described [here](https://www.electron.build/code-signing). Once you have your certificates setup, you can then install `electron-updater` and comment out the chunk of code at the bottom of `src/main/index.js` to enable auto updating.\n\nIf you are like most people and do not have a fancy code signing certificate, then you can always use the GitHub API to check for new releases. When a new release is detected, provide a notification within your application to point users to a download page where they can download and install the new build. Thanks to the amazing installer that `electron-builder` provides, user's do not have to uninstall the current version and the new installation will replace the old while still persisting any web storage or `userData` files.\n\n"
  },
  {
    "path": "docs/en/using-electron-packager.md",
    "content": "# Using [`electron-packager`](https://github.com/electron-userland/electron-packager)\n\nAll builds produced by `electron-packager` can be found within the `build` folder.\n\n#### Building for all platforms\n\nPlease know that not all Operating Systems can build for all other platforms.\n\n```bash\nnpm run build\n```\n\n#### Building for a specific platform\n\nPlatforms include `darwin`, `mas`, `linux` and `win32`.\n\n```bash\n# build for darwin (macOS)\nnpm run build:darwin\n```\n\n#### Cleaning\n\nDelete all builds from `build`.\n\n```bash\nnpm run build:clean\n```\n\n### A note for non-Windows users\n\nIf you are wanting to build for Windows **with a custom icon** using a non-Windows platform, you must have [wine](https://www.winehq.org/) installed. [More Info](https://github.com/electron-userland/electron-packager#building-windows-apps-from-non-windows-platforms).\n\n### Default building configurations\n\nFurther customization can be made at `.electron-vue/build.config.js` in accordance to `electron-packager`'s options found [here](https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options). The name applied to your built application is set with the `productName` value in your `package.json`.\n\n```js\n{\n    // Target 'x64' architecture\n    arch: 'x64',\n\n    // Compress app using 'electron/asar'\n    asar: true,\n\n    // Directory of the app\n    dir: path.join(__dirname, '../'),\n\n    // Set electron app icon\n    // File extensions are added based on platform\n    //\n    // If building for Linux, please read\n    // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#icon\n    icon: path.join(__dirname, '../build/icons/icon'),\n\n    // Ignore files that would bloat final build size\n    ignore: /(^\\/(src|test|\\.[a-z]+|README|yarn|static|dist\\/web))|\\.gitkeep/,\n\n    // Save builds to `builds`\n    out: path.join(__dirname, '../build'),\n\n    // Overwrite existing builds\n    overwrite: true,\n\n    // Environment variable that sets platform\n    platform: process.env.BUILD_TARGET || 'all'\n}\n```\n\n\n\n"
  },
  {
    "path": "docs/en/using-static-assets.md",
    "content": "# Using Static Assets\n\nIf you have used the official `vuejs-templates/webpack` boilerplate before, then you should be familiar with the `static/` directory. It is here where you can place static assets that both the `main` and `renderer` process can consume. Using these assets within your Vue application is simple, but usage with `fs` and other modules that need a full path can be a little tricky. Thankfully, electron-vue provides a `__static` variable that yields the path to the `static/` directory in both development and production.\n\n### Use Case within `src` tags in Vue Components\n\nLet's say I have a component that loads an image, but the image's path isn't known until some other task is completed. To keep things simple, let's just use a `data` variable to bind our `<img>`'s src.\n\n**SomeComponent.vue**\n\n```html\n<template>\n  <img v-bind:src=\"imageUrl\">\n</template>\n\n<script>\n  export default {\n    data () {\n      // notice the url starts with `static/`\n      return { imageUrl: 'static/imgs/unsplash.png' }\n    }\n  }\n</script>\n```\n\nHere `webpack` will not bundle the `unsplash.png` image and the application will look inside the `static/imgs/unsplash.png` directory for the asset. Thanks to `vue-loader`, all of the dirty work is done for us.\n\n### Use Case within JS with `fs`,`path` and `__static`\n\nLet's say we have a static asset that we need to read into our application using `fs`, but how do we get a reliable path, in both development and production, to the `static/` directory? electron-vue provides a global variable named `__static` that will yield a proper path to the `static/` directory. Here's how we can use it to read a simple text file in both development and production.\n\n**static/someFile.txt**\n\n```txt\nfoobar\n```\n\n**SomeFile.js \\(**`main`** or **`renderer`** process\\)**\n\n```js\nimport fs from 'fs'\nimport path from 'path'\n\nlet fileContents = fs.readFileSync(path.join(__static, '/someFile.txt'), 'utf8')\n\nconsole.log(fileContents)\n// => \"foobar\"\n```\n\nPlease note that in production all files are packed with [`asar`](https://github.com/electron/asar) by default as it is highly recommended. Because of this, assets within the `static/` folder can only be accessed within `electron` since it is aware of this behavior. So if you are planning to distribute files to your users, that can for example open in a external program, you would first need to copy those assets from your application into the user's document space or desktop. From there you could use the [`shell.openItem()`](https://electron.atom.io/docs/api/shell/#shellopenitemfullpath) electron API to open those assets.\n\nAn alternative method to this situation would be to configure `electron-packager`/`electron-builder` to set specific files to \"unpack\" from the `asar` archive in production. electron-vue has no plans to support this method; any issues related to this or how to set this up will be closed.\n\n"
  },
  {
    "path": "docs/en/using_css_frameworks.md",
    "content": "# Using CSS Frameworks\n\nAlthough this may seem like a no brainer, I'd suggest you import your third-party CSS libraries into webpack using the [`style-loader`](https://github.com/webpack/style-loader), which is already setup for you.\n\n## Use Case\n\nSay you want to use [bootstrap](http://getbootstrap.com/), [bulma](http://bulma.io/), or [materialize](http://materializecss.com/) for your application. Go ahead and install your library from `npm` like you normally would, but instead of attaching the asset to `index.ejs` we will import the CSS in our JavaScript, specifically in `src/renderer/main.js`.\n\n#### Example\n\nLet's install `bulma`\n\n```bash\nnpm install bulma --save\n```\n\nThen inside `src/renderer/main.js` let's add this line.\n\n```bash\nimport 'bulma/css/bulma.css'\n```\n\nAlternatively, you can also include `bulma` from inside a component file.\n\n**App.vue**\n\n```html\n<style>\n  @import \"~bulma/css/bulma.css\";\n</style>\n```\n\nNow `webpack` will know to load in `bulma` for our application and make it available in our production builds.\n\n"
  },
  {
    "path": "docs/en/using_pre-processors.md",
    "content": "# Using Pre-Processors\n\nOne of the great benefits of using [`vue-loader`](https://github.com/vuejs/vue-loader) with [`webpack`](https://github.com/webpack/webpack) is the ability to pre-process your HTML/CSS/JS directly in your Vue components files without much effort at all. For more information about this check [**here**](https://vuejs.org/v2/guide/single-file-components.html).\n\n## Use Case\n\nLet's say we need to use Sass/SCSS for pre-processing our CSS. First, we need to install the proper `webpack` loader to handle this syntax.\n\n#### Installing `sass-loader`\n\n```bash\nnpm install --save-dev sass-loader node-sass\n```\n\nOnce the loader we need is installed, everything is pretty much finished. `vue-loader` will magically take care of the rest. Now we can easily add `lang=\"sass\"` or `lang=\"scss\"` to our Vue component files. Notice we also installed `node-sass` as it is a dependent package for `sass-loader`.\n\n#### Applying the `lang` attribute\n\nSo...\n\n```html\n<style>\n  body {\n    /* CSS */\n  }\n</style>\n```\n\n...now becomes...\n\n```html\n<style lang=\"scss\">\n  body {\n    /* SCSS */\n  }\n</style>\n```\n\nThe same principles apply for just about any other pre-processor. So maybe you need coffeescript for your JS? Simply install the [coffeescript-loader](https://github.com/webpack/coffee-loader) and apply the `lang=\"coffeescript\"` attribute to your `<script>` tag.\n\nFor more advanced use of this feature please head over to the [vue-loader documentation](http://vue-loader.vuejs.org/en/configurations/pre-processors.html) for more information.\n\n## Using Sass/SCSS globals\n\nWhen using Sass/SCSS for your CSS syntax, it's very beneficial to make use of global variables/mixins throughout all Vue component files. Here's how to make that happen.\n\n### Use Case\n\nThis example demonstrates how to apply a `globals.scss` to all Vue component files. This documentation assumes you have already setup `sass-loader` in your development environment as mentioned above.\n\n#### Define your globals\n\n**src/renderer/globals.scss**\n\n```scss\n$brand-primary: blue;\n$brand-accent: turquoise;\n```\n\n#### Inject `globals.scss` directly into `node-sass`\n\nEdit the `vue-loader` config in **.electron-vue/webpack.renderer.config.js**\n\n```js\nloaders: {\n  sass: 'vue-style-loader!css-loader!sass-loader?indentedSyntax=1&data=@import \"./src/renderer/globals\"',\n  scss: 'vue-style-loader!css-loader!sass-loader?data=@import \"./src/renderer/globals\";'\n}\n```\n\nIn some cases it doesn't work, you may edit `scss` and `sass` directly\n\n```js\n{\n  test: /\\.scss$/,\n  use: ['vue-style-loader', 'css-loader', 'sass-loader?data=@import \"./src/renderer/globals\";']\n},\n{\n  test: /\\.sass$/,\n  use: ['vue-style-loader', 'css-loader', 'sass-loader?data=@import \"./src/renderer/globals\";']\n},\n```\n\n#### Use your globals\n\n**SomeComponent.vue**\n\n```html\n<style lang=\"scss\">\n  body { color: $brand-primary; }\n</style>\n```\n\n\n\n"
  },
  {
    "path": "docs/en/using_the_file_structure.md",
    "content": "# Using the File Structure\n\nelectron-vue does its best to not force a particular project structure, but does try to follow common Vue & Electron practices. The following documentation describes common practices used in the original project structure.\n\n**If you are unfamiliar with Electron's **`renderer`** and **`main`** processes, please give the first section of the **[**Quick Start**](http://electron.atom.io/docs/tutorial/quick-start)** a good read. It explains, in detail, their differences.**\n\n### [Renderer Process](renderer-process.md)\n\n### [Main Process](main-process.md)\n\n\n\n"
  },
  {
    "path": "docs/en/vue_accessories.md",
    "content": "# Vue Plugins\n\nelectron-vue comes packed with the following `vue` plugins that can be installed during `vue-cli` scaffolding...\n\n* [axios ](https://github.com/mzabriskie/axios)\\(web requests\\)\n* [vue-electron](https://github.com/SimulatedGREG/vue-electron) \\(attach electron APIs to Vue object\\)\n* [vue-router](https://github.com/vuejs/vue-router) \\(single page application routes\\)\n* [vuex](https://github.com/vuejs/vuex) \\(flux-inspired application architecture\\)\n* [vuex-electron](https://github.com/vue-electron/vuex-electron) \\(sync vuex store between all processes and instances\\)\n\n---\n\n### [`axios`](https://github.com/mzabriskie/axios)\n\n> Promise based HTTP client for the browser and node.js\n\nIf you are familiar with `vue-resource`, then `axios` will feel very familiar as most of the API is nearly identical. You can easily import `axios` in your `main` process scripts or use with `this.$http` & `Vue.http` in the `renderer` process. Please note that during development you may run into issues with CORS since requests are passed through `webpack-dev-server`. As a small workaround, you can disable [`webSecurity`](https://electronjs.org/docs/api/browser-window#new-browserwindowoptions) within the BrowserWindow configuration, but please do remember to only disable this during development. Disabling this in production is highly not recommended and can create a serious security risk for your final application!\n\n### [`vue-electron`](https://github.com/SimulatedGREG/vue-electron)\n\n> The vue plugin that attaches electron APIs to the Vue object, making them accessible to all components.\n\nA simple `vue` plugin that makes electron APIs easily accessible with`this.$electron`, no longer needing to import `electron` into every component necessary.\n\n### [`vue-router`](https://github.com/vuejs/vue-router)\n\n> `vue-router` is the official router for [Vue.js](http://vuejs.org/). It deeply integrates with Vue.js core to make building Single Page Applications with Vue.js a breeze.\n\nThe provided project structure should feel familiar to the setup provided in the official `vuejs-templates/webpack` boilerplate.\n\n### [`vuex`](https://github.com/vuejs/vuex)\n\n> Vuex is a **state management pattern + library **for Vue.js applications. It serves as a centralized store for all the components in an application, with rules ensuring that the state can only be mutated in a predictable fashion.\n\nThe provided project structure is rather bare but does encourage the use of `vuex`'s module pattern to help organize your data stores. The extra `@/store/modules/index.js` let's your `vuex` store import all modules in a one-shot manner.\n\n### [`vuex-electron`](https://github.com/vue-electron/vuex-electron)\n\n> The easiest way to use your Vuex store between all processes (including main) and instances.\n\nIn case if your application has multiple windows, probably you would need to share the state of the application between them. Moreover, probably you would need to share the state of the app between launches or different instances. You could easily solve these two tasks by using `vuex-store`.\n"
  },
  {
    "path": "docs/en/webpack-configurations.md",
    "content": "# Webpack Configurations\n\nelectron-vue comes packed with three separate webpack config files located in the `.electron-vue/` directory. Aside for the optional use of the `web` output, both `main` and `renderer` are similar in setup. Both make use of `babel-preset-env` to target `node@7` features, use `babili`, and treat all modules as `externals`.\n\n### `.electron-vue/webpack.main.config.js`\n\nTargets electron's `main` process. This configuration is rather bare, but does include some common `webpack` practices.\n\n### `.electron-vue/webpack.renderer.config.js`\n\nTargets electron's `renderer` process. This configuration handles your Vue application, so it includes `vue-loader` and many other configurations that are available in the official `vuejs-templates/webpack` boilerplate.\n\n##### White-listing Externals\n\nOne important thing to consider about this config is that you can whitelist specific modules to not treat as webpack `externals`. There aren't many use cases where this functionality is needed, but for the case of Vue UI libraries that provide raw `*.vue` components they will need to be whitelisted, so `vue-loader` is able to compile them. Another use case would be using webpack `alias`es, such as setting `vue` to import the full Compiler + Runtime build. Because of this, `vue` is already in the whitelist.\n\n### `.electron-vue/webpack.web.config.js`\n\nTargets building your `renderer` process source code for the browser. This config is provided as a strong starting base if you are in need of publishing to web. **electron-vue does not support web output further than what is provided.** Issues related to web output will most likely be deferred or closed.\n\n"
  },
  {
    "path": "docs/ja/README.md",
    "content": "![](../images/logo.png)\n\n> vue で構築された electron アプリケーションを作成するためのボイラープレートです(名前から分かるように)。\n\n[![Build Status](https://semaphoreci.com/api/v1/simulatedgreg/electron-vue/branches/master/badge.svg)](https://semaphoreci.com/simulatedgreg/electron-vue)\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\n[![forthebadge](http://forthebadge.com/images/badges/built-with-love.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/uses-js.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/makes-people-smile.svg)](http://forthebadge.com)\n\n## 概要\n\nこのプロジェクトは vue を使用した electron アプリケーションの手動セットアップをなくすことを目標としています。electron-vue はスキャフォールディングのために `vue-cli` 、 `vue-loader` と `webpack`、 `electron-packager` または `electron-builder`、 `vue-router` や `vuex` などの最も使われているプラグインを使用します。\n\n#### ドキュメントは [こちら](https://simulatedgreg.gitbooks.io/electron-vue/content/index.html)を確認してください。\n\nこのボイラープレートで見つけることができるもの...\n\n- **単一の** `package.json` セットアップによる基本的なプロジェクト構造 \n- 詳細な[ドキュメント](https://simulatedgreg.gitbooks.io/electron-vue/content/)\n- [vue-cli](https://github.com/vuejs/vue-cli) を使用したプロジェクトスキャフォールディング\n- Vue プラグイン ([axios](https://github.com/mzabriskie/axios), [vue-electron](https://github.com/SimulatedGREG/vue-electron), [vue-router](https://github.com/vuejs/vue-router), [vuex](https://github.com/vuejs/vuex))を使用する準備ができています*\n- 開発のために [vue-devtools](https://github.com/vuejs/vue-devtools) や [devtron](https://github.com/electron/devtron) ツールのインストール\n- [electron-packager](https://github.com/electron-userland/electron-packager) や [electron-builder](https://github.com/electron-userland/electron-builder) を使用して簡単にアプリケーションをパッケージングする機能*\n- [electron-builder](https://github.com/electron-userland/electron-builder) による自動デプロイのための `appveyor.yml` と `.travis.yml` の設定*\n- ブラウザ用の Web 出力を生成する機能\n- 便利な [NPM scripts](/npm_scripts.md)\n- Hot Module Replacement を伴う [webpack](https://github.com/webpack/webpack) と [vue-loader](https://github.com/vuejs/vue-loader) の使用\n- electron の `main` プロセスで動いているプロセスの再起動\n- [vue-loader](https://github.com/vuejs/vue-loader/) による HTML/CSS/JS プリプロセッサのサポート \n- ES6 のデフォルトは [`stage-0`](https://babeljs.io/docs/plugins/preset-stage-0/) です\n- ES5 へトランスパイルする必要をなくすために [`babili`](https://github.com/babel/babili) の使用\n- ESLint ([`standard`](https://github.com/feross/standard) と [`airbnb-base`](https://github.com/airbnb/javascript) スタイルのサポート)*\n- (Karma と Mocha を使用した)ユニットテスト*\n- (Spectron と Mocha を使用した)エンドツーエンドテスト*\n\n*の箇所は `vue-cli` のスキャフォールディング中にカスタマイズ可能です\n\n### はじめに\n\nこのボイラープレートは [`vue-cli`](https://github.com/vuejs/vue-cli) のテンプレートとして作成され、スキャフォールディングされたアプリケーションをカスタマイズするためのオプションが含まれています。`node@^7` かそれ以上のバージョンを使用する必要があります。electron-vue はパッケージマネージャの [`yarn`](https://yarnpkg.org) を公式に推奨しています。依存関係をよりよく処理し、`yarn clean` により最終的なビルドサイズを減らすことができます。\n\n```bash\n# vue-cli をインストールしボイラープレートをスキャフォールディングします\nnpm install -g vue-cli\nvue init simulatedgreg/electron-vue my-project\n# 依存関係をインストールし、アプリケーションを実行します\ncd my-project\nyarn # or npm install\nyarn run dev # or npm run dev\n```\n\n##### Windows ユーザーですか?\n\n[**Windows ユーザーのための注意**](https://simulatedgreg.gitbooks.io/electron-vue/content/ja/getting_started.html#a-note-for-windows-users)を確認し、electron や他の依存関係で必要なビルドツールが全てあることを確認してください。\n\n##### Vue 1 を使いたいですか?\n\n`1.0`  ブランチを参照してください。electron-vue は `vue@^1` の使用を公式に推奨していないため、プロジェクトの構造、機能やドキュメントは これらの変更を反映していることに注意してください([**旧版のドキュメント**](https://github.com/SimulatedGREG/electron-vue/tree/1.0/docs))。\n\n```bash\nvue init simulatedgreg/electron-vue#1.0 my-project\n```\n\n### 次のステップ\n\n[ドキュメント](https://simulatedgreg.gitbooks.io/electron-vue/content/) を確認してください。こちらから設定、プロジェクト構造、アプリケーションのビルドに関する有益な情報を得ることができます。便利な [FAQ](https://simulatedgreg.gitbooks.io/electron-vue/content/ja/faqs.html) セクションもあります。\n\n## electron-vue で作られたもの\n\nelectron-vue で作られたいくつかの素晴らしいプロジェクトを見てみましょう。自身のプロジェクトをリストに追加したいですか？遠慮なくプルリクエストを送ってください。\n\n- [**Surfbird**](https://github.com/surfbirdapp/surfbird): Electron と Vue で作られた Twitter クライアント\n- [**Lulumi-browser**](https://github.com/qazbnm456/lulumi-browser): Lulumi-browser は Vue.js 2 と Electron でコーディングされた軽量なブラウザです。\n- [**Space-Snake**](https://github.com/ilyagru/Space-Snake): Electron と Vue.js で作られたデスクトップゲーム。\n- [**Forrest**](https://github.com/stefanjudis/forrest): npm scripts デスクトップクライアント\n- [**miikun**](https://github.com/hiro0218/miikun): シンプルなマークダウンエディター\n- [**Dakika**](https://github.com/Madawar/Dakika): 議事録を簡単に取ることができるアプリケーション\n- [**Dynamoc**](https://github.com/ieiayaobb/dynamoc): Dynamoc は dynamodb-local、 dynalite と AWS dynamodb のための GUI クライアントです\n- [**Dockeron**](https://github.com/dockeron/dockeron): Docker のために Electron と Vue.js で作られた dockeron プロジェクト\n- [**Easysubs**](https://github.com/matiastucci/easysubs): 字幕を早く簡単な方法でダウンロードする\n- [**Data-curator**](https://github.com/ODIQueensland/data-curator)：利用可能な公開データを共有します。\n"
  },
  {
    "path": "docs/ja/SUMMARY.md",
    "content": "# 概要\n\n- [導入](./README.md)\n- [はじめに](getting_started.md)\n- [プロジェクト構造](project_structure.md)\n    - [ファイルツリー](file-tree.md)\n    - [レンダラープロセス](renderer-process.md)\n    - [メインプロセス](main-process.md)\n    - [Webpack 構成](webpack-configurations.md)\n- [開発](development.md)\n    - [index.html](entry_indexhtml.md)\n    - [Vue プラグイン](vue_accessories.md)\n    - [NPM スクリプト](npm_scripts.md)\n    - [CSS フレームワークの使用](using_css_frameworks.md)\n    - [プリプロセッサの使用](using_pre-processors.md)\n    - [静的アセットの使用](using-static-assets.md)\n    - [ローカルファイルの読み書き](savingreading-local-files.md)\n- [アプリケーション構築](building_your_app.md)\n    - [electron-packager の使用](using-electron-packager.md)\n    - [electron-builder の使用](using-electron-builder.md)\n- [テスト](testing.md)\n    - [ユニットテスト](unittesting.md)\n    - [エンドツーエンドテスト](end-to-end_testing.md)\n- [メタ](meta.md)\n    - [FAQ](faqs.md)\n    - [新しいリリース](new-releases.md)\n    - [マイグレーションガイド](migration-guide.md)\n    - [貢献](contributing.md)\n"
  },
  {
    "path": "docs/ja/book.json",
    "content": "{\n  \"root\": \"\"\n}\n"
  },
  {
    "path": "docs/ja/building_your_app.md",
    "content": "# アプリケーション構築\n\nelectron-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` のスキャフォールディング中にどちらのビルダーを使いたいか尋ねられます。\n\n## [`electron-packager`](using-electron-packager.md)\n\nelectron アプリケーションを作成するのが初めて使う人や単純な実行可能ファイルを作成する必要がある場合、`electron-packager` がニーズに最適です。\n\n## [`electron-builder`](using-electron-builder.md)\n\n完全なインストーラー、自動更新サポート、Travis CI と AppVeyor を使用した CI ビルド、またはネイティブコードモジュールの再構築の自動化を探し求めている場合、`electron-builder` が最適です。\n"
  },
  {
    "path": "docs/ja/contributing.md",
    "content": "# 貢献\n\nこのボイラープレートを手助けしたいですか？遠慮なくプルリクエストを送信してください。何かを送信する準備をする前に、以下をチェックしてください...\n\n### JavaScript 標準スタイル\n\n全ての JS が***標準スタイル***に従っていることを確実にするために、これらの[ルール](http://standardjs.com/#rules)に従っていることを確認してください。\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n"
  },
  {
    "path": "docs/ja/development.md",
    "content": "# 開発\n\n### 開発セットアップ\n\n`yarn` または `npm install` で依存関係をインストールした後、実行します...\n\n```bash\nyarn run dev # or npm run dev\n```\n\n...そしてやりました！electron-vue アプリケーションの実行に成功しました。\n![](../images/landing-page.jpg)\n\nこのボイラープレートには、簡単に取り外し可能なランディングページがいくつか付属しています。\n"
  },
  {
    "path": "docs/ja/end-to-end_testing.md",
    "content": "# エンドツーエンドテスト\n\nelectron-vue はエンドツーエンドテストのために [Spectron](http://electron.atom.io/spectron/) とテストフレームワークの [Mocha](https://mochajs.org/) ([Chai](http://chaijs.com/) と一緒に) を利用しています。Mocha と Chai の APIは、`expect`、`should`、`assert`を含め、グローバルスコープで利用可能です。\n\n### テストの実行\n\n```bash\n# Mocha を始める\nnpm run e2e\n```\n\n##### 注意\n\nエンドツーエンドテストを実行する前に、Spectron がテスト中に使用する本番ビルドを作成するために、`npm run pack` が呼び出されます。\n\n### ファイル構造\n\n```\nmy-project\n├─ test\n|  ├─ e2e\n│  │  ├─ specs/\n│  │  ├─ index.js\n└─ └─ └─ utils.js\n```\n\n**ほとんどの場合、 **`index.js`** は無視して、 **`specs/`** を書くことだけに集中できます。**\n\n#### `specs/`\n\nこのディレクトリの中に実際のテストが書かれています。`babel-register` の機能のおかげで、ES2015にフルアクセスできます。\n\n#### `index.js`\n\nこのファイルは Mocha のメインエントリーとして機能し、テスト用に `specs/` で書かれた全てのテストを集めます。\n\n#### `utils.js`\n\nここでは、`specs/` 全体で使用することができる汎用関数を見つけることができます。基本関数には、 electron の作成/破壊プロセスを処理する `beforeEach` と `afterEach` が含まれます。\n\n### Spectron について\n\nSpectron は 公式の [electron](http://electron.atom.io) テストフレームワークであり、DOM 要素を操作するために [ChromeDriver](https://sites.google.com/a/chromium.org/chromedriver/) と [WebDriverIO](http://webdriver.io/) の両方を使用します。\n\n#### WebDriverIO の使用\n\nSpectron の[ドキュメント](https://github.com/electron/spectron#client)に記載されている通り、[WebDriverIO API](http://webdriver.io/api.html) へのアクセスは `this.app.client` を通してすることができます。 electron-vue は Mocha を使用しているため、`this` のコンテキストは `afterEach`、`beforeEach`、`it` の間で共有されます。このため、ES2015 のアロー関数は、`this` のコンテキストが上書きされるため、特定の状況では使用できないことに注意することが重要です([詳細はこちら](https://mochajs.org/#arrow-functions))。\n"
  },
  {
    "path": "docs/ja/entry_indexhtml.md",
    "content": "#  `index.html`\n\nelectron-vue は本番ビルドで `index.html` を作成するために [**`html-webpack-plugin`**](https://github.com/ampedandwired/html-webpack-plugin) を使用します。開発中は `src/` ディレクトリの`index.ejs` となります。ここではエントリーとなる HTML ファイルを変更することができます。\n\nこのプラグインがどのように動作するかわからない場合は、その[ドキュメント](https://www.npmjs.com/package/html-webpack-plugin)を見ることを勧めます。しかし要するに、このプラグインは自動的に `renderer.js` と `styles.css`  を含む本番アセットを最終的にファイルサイズを小さくし、 `index.html` に挿入します。\n\n### 開発中の `index.ejs`\n\n```html\n<!DOCTYPE html>\n<html>\n  <head>\n    <meta charset=\"utf-8\">\n    <title><%= htmlWebpackPlugin.options.title %></title>\n    <%= ... %>\n  </head>\n  <body>\n    <div id=\"app\"></div>\n    <!-- webpack ビルドが自動的に注入されます -->\n  </body>\n</html>\n```\n\n### 本番の(ファイルサイズを小さくしていない) `index.html`\n\n```html\n<!DOCTYPE html>\n<html>\n  <head>\n    <meta charset=\"utf-8\">\n    <title>app</title>\n    <link href=\"styles.css\" rel=\"stylesheet\">\n  </head>\n  <body>\n    <div id=\"app\"></div>\n    <script type=\"text/javascript\" src=\"renderer.js\"></script>\n  </body>\n</html>\n```\n\n### CDN の利用について\n\nCDN から提供されるアセットを利用することは、アプリケーションの最終的なビルドサイズにとっては素晴らしい利点があるかもしれませんが、それらを使用することは勧めません。主な理由は、そうすることによってアプリケーションが必ずインターネットにアクセスできると仮定することになりますが、Electron アプリケーションの場合は必ずしもそうとは限りません。これは bootstrap のような CSS フレームワークではかなり重大な問題となり、アプリケーションはすぐに整っていない状態になるでしょう。\n\n> \"私は気にしません、それでも CDN を使いたいです\"\n\nそれでも CDN を利用すると決めた場合は、 `src/index.ejs` ファイルにタグを追加することでできます。ただアプリケーションがオフラインの時の UI/UX フローを適切に設定してください。\n"
  },
  {
    "path": "docs/ja/faqs.md",
    "content": "# FAQ\n\n- [`npm run dev` を実行した後に electron アプリケーションが空白になるのはなぜですか？](#why-is-my-electron-app-blank-after-running-npm-run-dev)\n- [electron アプリケーションがファイルエクスプローラーを表示するのはなぜですか？](#why-does-my-electron-app-show-a-file-explorer)\n- [`vue-devtools`/`devtron` が見つからないと言われるのはなぜですか？](#why-is-vue-devtoolsdevtron-missing)\n- [静的なアセットはどこに置けば良いですか？](#where-do-i-put-static-assets)\n- [`npm run lint` がエラーで終了するのはなぜですか？](#why-did-npm-run-lint-end-with-an-error)\n- [アプリケーションが web ブラウザで読み込めないのはなぜですか？](#why-cant-i-load-my-app-in-a-web-browser)\n- [`jquery` はどうやってインポートするのですか？](#how-do-import-jquery)\n- [`main` プロセスはどうやってデバッグするのですか？](#how-can-i-debug-the-main-process)\n\n---\n\n## `npm run dev` を実行した後に electron アプリケーションが空白になるのはなぜですか？\n\n#### 要約\n\n`webpack-dev-server` を改ざんする個人用の**プロキシ**がないことを確認してください。\n\n## electron アプリケーションがファイルエクスプローラーを表示するのはなぜですか？\n\n#### 要約\n\n`src/renderer` にエラーがあります。コンソールを確認し、エラーを修正し、`CommandOrControl+R` で electron を更新してください。\n\n##### 詳細\n\n`src/renderer` にエラーがある場合、最初の実行時に ESLint と競合が発生します。次に、無効な webpack の `renderer.js` が作成され、`HtmlWebpackPlugin` が `index.html` を作成するのを中断します。`webpack-dev-server` は提供可能な `index.html`  がないので、サーバーはファイルエクスプローラーを表示します。\n\n## `vue-devtools`/`devtron` が見つからないと言われるのはなぜですか？\n\n初めて起動するときに、開発者ツールのパネルがないときは閉じて再度開いてください。また、インストール中にエラーメッセージが発生していないか、ターミナルを確認してください。\n\n## 静的なアセットはどこに置けば良いですか？\n\n[**静的なアセットの使用**](using-static-assets.md)\n\n## `npm run lint` がエラーで終了するのはなぜですか？\n\nESLint のデフォルトの性質は、リントエラーをコンソールに表示することです。もし何か見つかった場合は、スクリプトは0でない値を返し終了します(これが npm エラーを作成します)。これは正常な動作です。\n\n## アプリケーションが web ブラウザで読み込めないのはなぜですか？\n\n[#195](https://github.com/SimulatedGREG/electron-vue/issues/195)\n\n## `jquery` はどうやってインポートするのですか？\n\n`bootstrap` を使いたい場合、あなたを止めなければなりません。`vue` と `jquery` の両方を同じ環境で使用することはバッドプラクティスであり、2つのフレームワークが互いに衝突することにつながります。`vue` を JavaScript 関数的に使用する `bootstrap` の代替を使用することを強くお勧めします。お勧めは、[`bootstrap-vue`](https://github.com/bootstrap-vue/bootstrap-vue) と [`vue-strap`](https://github.com/yuche/vue-strap) です。何らかの理由で `jquery` を使用しなければならない場合、`webpack`の `ProvidePlugin` に関するドキュメントを詳しく調べるか [#192](https://github.com/SimulatedGREG/electron-vue/issues/192) を参照してください。\n\n## `main` プロセスはどうやってデバッグするのですか？\n\n`electron@^1.7.2` 以上を使用している場合、Google Chrome を開き、`chrome://inspect` にアクセスし、アプリケーションが開発モードで起動している間に、リモート electron プロセスを開くことができます。\n\n[Electron のドキュメント](https://github.com/electron/electron/blob/master/docs/tutorial/debugging-main-process.md)\n"
  },
  {
    "path": "docs/ja/file-tree.md",
    "content": "# ファイルツリー\n\n### 開発中\n\n**注**: 一部のファイル/フォルダは `vue-cli` スキャフォールディングで選択した設定に応じて異なる場合があります。\n\n```\nmy-project\n├─ .electron-vue\n│  └─ <build/development>.js files\n├─ build\n│  └─ icons/\n├─ dist\n│  ├─ electron/\n│  └─ web/\n├─ node_modules/\n├─ src\n│  ├─ main\n│  │  ├─ index.dev.js\n│  │  └─ index.js\n│  ├─ renderer\n│  │  ├─ components/\n│  │  ├─ router/\n│  │  ├─ store/\n│  │  ├─ App.vue\n│  │  └─ main.js\n│  └─ index.ejs\n├─ static/\n├─ test\n│  ├─ e2e\n│  │  ├─ specs/\n│  │  ├─ index.js\n│  │  └─ utils.js\n│  ├─ unit\n│  │  ├─ specs/\n│  │  ├─ index.js\n│  │  └─ karma.config.js\n│  └─ .eslintrc\n├─ .babelrc\n├─ .eslintignore\n├─ .eslintrc.js\n├─ .gitignore\n├─ package.json\n└─ README.md\n```\n\n#### 本番ビルド\n\n```\napp.asar\n├─ dist\n│  └─ electron\n│     ├─ static/\n│     ├─ index.html\n│     ├─ main.js\n│     └─ renderer.js\n├─ node_modules/\n└─ package.json\n```\n\nおそらくお分かりの通り、ほとんどすべてが最終的な本番ビルドでは取り除かれます。electron アプリケーションを配布する際は、大きいファイルサイズのソフトウェアをユーザーにダウンロードさせたくないので、これはほとんど必須です。\n"
  },
  {
    "path": "docs/ja/getting_started.md",
    "content": "# はじめに\n\n## スキャフォールディング\n\nこのボイラープレートは [vue-cli](https://github.com/vuejs/vue-cli) のテンプレートとして作成され、スキャフォールディングされたアプリケーションをカスタマイズするためのオプションが含まれています。`node@^7` かそれ以上のバージョンを使用する必要があります。 electron-vue はパッケージマネージャの [`yarn`](https://yarnpkg.org) を公式に推奨しています。 依存関係をよりよく処理し、`yarn clean` により最終的なビルドサイズを減らすことができます。\n\n```bash\n# vue-cli をインストールしボイラープレートをスキャフォールディングします\nnpm install -g vue-cli\nvue init simulatedgreg/electron-vue my-project\n# 依存関係をインストールし、アプリケーションを実行します\ncd my-project\nyarn # or npm install\nyarn run dev # or npm run dev\n```\n\n#### electron について\n\nオプションとはいっても、プロジェクトをスキャフォールディングした後は electron のバージョンを固定することをお勧めします。これは、同じプロジェクトで作業している開発者が異なるバージョンで開発することを防ぐことに役立ちます。electron はリリースを頻繁に行うため、機能は常に変更対象となります。 [詳細な情報はこちら](http://electron.atom.io/docs/tutorial/electron-versioning/)。\n\n#### Windows ユーザーのための注意\n\n`npm install` 中に `node-gyp` に関するエラーが発生した場合、システムに適切なビルドツールがインストールされていない可能性が非常に高いです。ビルドツールには、Python や Visual Studio などのアイテムが含まれています。[@felixrieseberg](https://github.com/felixrieseberg) のおかげで、このプロセスを簡潔にするのに役立つパッケージがいくつかあります。\n\n最初に確認する項目は npm のバージョンで、古いバージョンでないことを確認します。これは [`npm-windows-upgrade`](https://github.com/felixrieseberg/npm-windows-upgrade) を使用することで達成できます。`yarn` を使用する場合は、この確認をスキップすることができます。\n\nそれが完了したら、引き続きビルドツールをセットアップします。[`windows-build-tools`](https://github.com/felixrieseberg/windows-build-tools) を使用することで、めんどくさいことの大半は完了します。これをグローバルにインストールすると Visual C ++パッケージ、 Python などがセットアップされます。\n\nこの時点では正常にインストールされるはずですが、そうでない場合は Visual Studio をクリーンインストールする必要があります。これらは electron-vue 自身の問題ではないことに注意してください(Windows は時々面倒になることがあります ¯\\\\\\_\\(ツ\\)\\_/¯\\)。\n"
  },
  {
    "path": "docs/ja/global_configuration.md",
    "content": "# Global Configuration\n\nelectron-vue uses the [webpack](https://github.com/webpack/webpack) module loader system for pre-processing, bundling, and building your app. The default settings are rather common and should meet most of your needs. An additional `config.js` is provided in the root directory for quick adjustments. Further customization can be made by directly adjusting `webpack.main.config.js` and `webpack.renderer.config.js`.\n\n#### `config.js`\n\n**Note**: Some options may differ based on the settings choosen during `vue-cli` scaffolding.\n\n```js\n{\n  // Name of electron app\n  // Will be used in production builds\n  name: 'app',\n  // Use ESLint\n  // Further changes can be made in `.eslintrc.js`\n  eslint: true,\n  // webpack-dev-server port\n  port: 9080,\n  // electron-packager options\n  // See `Building you app` for more info\n  building: {\n    arch: 'x64',\n    asar: true,\n    dir: path.join(__dirname, 'app'),\n    icon: path.join(__dirname, 'app/icons/icon'),\n    ignore: /\\b(src|index\\.ejs|icons)\\b/,\n    name: pkg.name,\n    out: path.join(__dirname, 'builds'),\n    overwrite: true,\n    platform: process.env.PLATFORM_TARGET || 'all'\n  }\n}\n```\n"
  },
  {
    "path": "docs/ja/main-process.md",
    "content": "# メインプロセス\n\n> Electron では、package.json のメインスクリプトを実行するプロセスをメインプロセスと呼びます。メインプロセスで実行されるスクリプトは、Web ページを作成して GUI を表示できます。\n\n[**Electron ドキュメンテーション**](http://electron.atom.io/docs/tutorial/quick-start/#main-process)**より **\n\n---\n\n`main` プロセスは根本的に完全な Node 環境なので、2つのファイル以外の初期プロジェクト構造は存在しません。\n\n#### `src/main/index.js`\n\nこのファイルはアプリケーションのメインファイルであり、 `electron` が起動するファイルです。本番向けの `webpack` のエントリーファイルとしても使われます。すべての `main` プロセスの作業はここから開始しなければなりません。\n\n#### `app/src/main/index.dev.js`\n\nこのファイルは開発時にのみ `electron-debug` と `vue-devtools`をインストールするために使われます。このファイルを修正する必要はありませんが、開発の必要に応じて拡張することもできます。\n\n## `__dirname` と `__filename` の使用について\n\n`main` プロセスは `webpack` を使用してバンドルされているため、`__dirname` と `__filename` を使用しても本番環境で期待した値は得られ **ないでしょう**。[**ファイルツリー**](/file-tree.md) を参照すると、本番環境では `main.js` が `dist/electron` フォルダの中に置かれていることがわかるでしょう。この知識に基づいて、`__dirname` と `__filename` を適切に使用してください。\n\n**`static/` アセットディレクトリへのパスが必要な場合は、**[**静的なアセットの使用**](/using-static-assets.md)** を参照して、とても便利な `__static` 変数について学んでください。**\n\n```\napp.asar\n├─ dist\n│  └─ electron\n│     ├─ static/\n│     ├─ index.html\n│     ├─ main.js\n│     └─ renderer.js\n├─ node_modules/\n└─ package.json\n```\n"
  },
  {
    "path": "docs/ja/meta.md",
    "content": "# メタ\n\n### ありがとうございます\n\nわあ、electron-vue を GitHub で(見つけることができる)トップ3の `vue-cli` テンプレートのうちの1つにするのを手伝ってくれてありがとうございます。このプロジェクトが今のようになるとは思っても見ませんでした。振り返ると、もともとこのボイラープレートは(**2016年5月**に)個人用のクローズドソースとして作成し、大部分が再利用可能になっていることを知ったときに(ボイラープレート自身を)オープンソースにすることを決めました。今では、新しい機能が数多く導入され、コミュニティからの驚くべきサポートがあります。 私が答えられないときに問題に答えてくれるコミュニティの人々に格別の感謝を表明したいです。 皆さんは何かをする絶対的な義務はありませんが、してくれます。私はそれに感謝しています。\n\nこれを読んでいるなら、本当に electron-vue を楽しんでくれているはずだと思います。このボイラープレートを作成するのに多くの時間が費やされました。あなたが気前が良くて、望むならば、遠慮なくチップを残してください。確かに electron-vue の将来の開発は寄付に依存しませんが、それを使用することに決めるならば、常にオプションとなります。\n\n#### [**PayPal.me**](https://www.paypal.me/simulatedgreg/5)\n"
  },
  {
    "path": "docs/ja/migration-guide.md",
    "content": "# 移行ガイド\n\n以下のドキュメントでは、プロジェクトが移行をどのように達成*すべき*であるか説明しますが、プロジェクト全体の構造が常に変更されているため、完全な方法ではない可能性があります。\n\n1. `vue init simulatedgreg/electron-vue my-project` を行い、electron-vue の新しいバージョンをスキャフォールドする\n2. 現在のプロジェクトの `src` ファイルを新しくスキャフォールディングした `src` ディレクトリにコピーする\n3. `package.json` の依存関係を現在のプロジェクトから新しくスキャフォールディングした `package.json` にコピーする\n4. `yarn` もしくは `npm install` で依存関係をインストールする\n5. 開発モードでプロジェクトを実行する(`yarn run dev` もしくは `npm run dev`)\n6. コンソールで修正するエラーを監視する\n\n上で言及したように、新しいスキャフォールドに移行する完全な方法はありませんが、一般的でほぼ完全に進めるための主要なステップになります。 プロジェクトの構造やアセットの取り扱いに関する個人的な変更は、あなたまたはチームが移行することになります。`master` ブランチの electron-vue の現在のバージョンを常に反映するので、残りのドキュメントを必ずチェックしてください。\n"
  },
  {
    "path": "docs/ja/miscellaneous.md",
    "content": ""
  },
  {
    "path": "docs/ja/new-releases.md",
    "content": "# 新しいリリース\n\nelectron-vue は2016年5月に作成して以来、大きく進化し、多くの新しく素晴らしい機能を導入してきました。`vue-cli` のスキャフォールディングが提供されていない時があったことを信じられますか？新しい機能の開発はすぐに終了するつもりはありません。新しいオプション機能の唯一の欠点は、あなたのプロジェクトが古いスキャフォールディングから離れられないでいることです。electron-vue は `vue-cli` を使用しているため、残念ながら、ボイラープレートを*バージョンアップ* したり、*更新可能*にする構造化の方法はありません。\n\nelectron-vue のメジャーアップデートは GitHub マイルストーンを介して行われ、一度に多くの新しい機能/バグ修正を含み、これらのリリースは既存のプロジェクトを新しくスキャフォールディングし、[移行](/migration-guide.md)するのに最適な時です。これらのマイルストーンは通常は計画されていませんが、機能要求が課題トラッカーに追加されると発生します。\n\n### 過去のマイルストーン\n\n#### [複合化](https://github.com/SimulatedGREG/electron-vue/milestone/1?closed=1)\n\n- `webpack` 2 への移行\n- `electron-builder` のサポート\n- `main` プロセスバンドルのサポート\n- 全体的なバグ修正\n\n#### [最小化](https://github.com/SimulatedGREG/electron-vue/issues/171)\n\n- 単一の `package.json` 構造への移行\n- `electron-builder` ユーザー向けの Travis CI / AppVeyor 構成\n- `renderer` プロセスの最小 web 出力\n- `axios` への移行\n- `main` プロセスバンドルの完全サポート\n- 開発とビルドスクプリトの書き直し\n- ES5 へのトランスパイルの必要を取り除く `babili` への移行\n- フルパスを必要とするモジュールを使用する際の `static/` アセットをサポート ([`__static`](/using-static-assets.md))\n"
  },
  {
    "path": "docs/ja/npm_scripts.md",
    "content": "# NPM スクリプト\n\n開発プロセスに関する冗長なタスクを排除するために、役立つ NPM スクリプトに注目してください。次のコマンドは、プロジェクトのルートディレクトリから実行する必要があります。そしてもちろん、以下のコマンドのどれでも `yarn run <command>` を使用して実行することが可能です。\n\n### `npm run build`\n\n本番用にアプリケーションをビルドし、パッケージングします。詳細は [**アプリケーションのビルド**](building_your_app.md) セクションを参照してください。\n\n### `npm run dev`\n\n開発用にアプリケーションを実行します。\n\n### `npm run lint`\n\n全ての `src/` と `test/` の JS と Vue コンポーネントファイルをリントします。\n\n### `npm run lint:fix`\n\n全ての `src/` と `test/` の JS と Vue コンポーネントファイルをリントし、問題を解決しようとします。\n\n### `npm run pack`\n\n`npm run pack:main` と `npm run pack:renderer` の両方を実行します。これらのコマンドは利用可能ですが、`npm run build` がこのステップを処理するため、手動で実行する場面はそれほど多くありません。\n\n### `npm run pack:main`\n\n`main` プロセスのソースコードをビルドするために webpack を実行します。\n\n### `npm run pack:renderer`\n\n`renderer` プロセスのソースコードをビルドするために webpack を実行します。\n\n### `npm run unit`\n\nKarma と Jasmine でユニットテストを実行します。詳細は[**ユニットテスト**](unittesting.md)を参照してください。\n\n### `npm run e2e`\n\nSpectron と Mocha でE2Eテストを実行します。詳細は[**E2Eテスト**](end-to-end_testing.md)を参照してください。\n\n### `npm test`\n\n`npm run unit` と `npm run e2e` の両方を実行します。詳細は[**テスト**](testing.md)を参照してください。\n"
  },
  {
    "path": "docs/ja/project_structure.md",
    "content": "# プロジェクト構造\n\nelectron アプリケーションの作成に関しては、プロジェクト構造は少し変わっています。これまで公式の [`vuejs-templates/webpack`](https://github.com/vuejs-templates/webpack) セットアップを使用していたのならば、構造はかなり似通っていると感じるでしょう。このセクションのドキュメントではどのようにボイラープレートが動作するかの概要とアプリケーションをビルドする際の違いを説明しようと思います。\n\n### 単一の `package.json` によるセットアップ\n\nそんなに前のことではありませんが、2つの `package.json` によるセットアップが必要でした。しかし、 [@electron-userland](https://github.com/electron-userland) の努力のおかげで、 [`electron-packager`](https://github.com/electron-userland/electron-packager) と [`electron-builder`](https://github.com/electron-userland/electron-builder)  の両方が完全に単一の `package.json` によるセットアップをサポートしています。\n\n#### `dependencies`\n\nこれらの依存関係は最終的な本番アプリケーションに含まれ**ます**。つまり、アプリケーションが動作するのに必要なモジュールがある場合は、ここにインストールしてください！\n\n#### `devDependencies`\n\nこれらの依存関係は最終的な本番アプリケーションに含まれ**ません**。ビルドスクリプトや`webpack` ローダーなどの開発に必要な特定のモジュールをインストールします。\n\n#### ネイティブ NPM モジュールのインストール\n\nネイティブ npm モジュールが electron に対してビルドされていることを確認する必要があります。それをするためには、 [`electron-rebuild`](https://github.com/electron/electron-rebuild) を使用できます。しかし、単純化のため、これらのタスクをうまく処理するビルドツールに [`electron-builder`](https://github.com/electron-userland/electron-builder)  を使用することを強くお勧めします。\n\n### `main` プロセスについて\n\n開発中に `src/main/index.dev.js` に気付くかもしれません。このファイルは特に開発のために使用され、開発ツールのインストールにも使用されます。このファイルを変更する必要はありませんが、開発の必要に応じて拡張するために使用することができます。ビルド時、`webpack` は `src/main/index.js` 自身をエントリーファイルとしてバンドルを作成します。\n"
  },
  {
    "path": "docs/ja/renderer-process.md",
    "content": "# レンダラープロセス\n\n> Electron は web ページの表示に Chromium を使用するので、 Chromium の マルチプロセスアーキテクチャも使われています。Electron では web ページごとにレンダラープロセスと呼ばれる独自のプロセスが実行されます。普通のブラウザでは、webページは通常サンドボックス環境で実行され、ネイティブリソースへのアクセスは許可されません。 しかし、 electron ユーザーは、 web ページで Node.js API を使用して、より低レベルのオペレーティングシステムとのやりとりを可能にしています。\n\n[**Electron ドキュメンテーション**](http://electron.atom.io/docs/tutorial/quick-start/#renderer-process)**より **\n\n---\n\n## `vue` と `vuex` について\n\n### vue コンポーネント\n\nVue コンポーネントに精通していない場合は、[こちら](https://jp.vuejs.org/v2/guide/single-file-components.html)を読んでください。 コンポーネントを使用することで、巨大で複雑なアプリケーションをより構造化することができます。各コンポーネントは CSS やテンプレートや JavaScript の関数をカプセル化することができます。\n\nコンポーネントは `src/renderer/components` に格納されます。子コンポーネントを作成するときは、親コンポーネントの名前を持つ新しいフォルダ内に子コンポーネントを配置するのが一般的な方法です。これは、異なるルートをまとめる場合に特に便利です。\n\n```\nsrc/renderer/components\n├─ ParentComponentA\n│  ├─ ChildComponentA.vue\n│  └─ ChildComponentB.vue\n└─ ParentComponentA.vue\n```\n\n### vue ルーティング\n\n`vue-router` の詳細については [こちら](https://github.com/vuejs/vue-router) をクリックしてください。手短に言うと、 electron アプリケーションを作成するときにシングルページアプリケーションを作成することはとても適しているので、 `vue-router` を使用することをお勧めします。たくさんのブラウザウィンドウを管理し、すべての間で情報をやりとりしたいですか？おそらくそうではないですよね。\n\nルーティングは `src/renderer/router/index.js` の中に保持され、このように定義されます...\n\n```js\n{\n  path: '<routePath>',\n  name: '<routeName>',\n  component: require('@/components/<routeName>View')\n}\n```\n\n`<routepath></routepath>` と ` <routename><routename>` はどちらも変数です。これらのルーティングは `src/renderer/App.vue` の `<router-view></router-view>` ディレクティブを使用してコンポーネントツリーにアタッチされます。\n\n##### 注意\n\n`vue-router` を使用するときは、 [**HTML5 ヒストリーモード**](http://router.vuejs.org/ja/essentials/history-mode.html)を使用しないでください。このモードは厳密には `http`  プロトコルを介してファイルを提供するためのもので、 electron がプロダクションビルドでファイルを提供する `file` プロトコルでは正しく動作しません。デフォルトの `hash` モードがまさに求めているものです。\n\n### vuex モジュール\n\n`vuex` を説明するのは簡単なことではないので、どんな問題を解決しようとしているか、どのように動作するのかをより理解するために [こちら](http://vuex.vuejs.org/ja/intro.html) を読んでください。\n\nelectron-vue `vuex` のモジュール構造を利用して複数のデータストアを作成し、`src/renderer/store/modules` に保存します。\n\n複数のデータストアを持つことは構造的には素晴らしいですが、それぞれをインポートする必要があります。しかし、`src/renderer/store/modules/index.js` が嫌がる仕事をするので、気にしないでください！この小さなスクリプトは  `src/renderer/store/index.js` のすべてのモジュールをワンショットでインポートします。以降は、`Counter.js` モジュールを簡単に複製できることだけ知っていれば、それは \"魔法のように\" 読み込まれます。\n"
  },
  {
    "path": "docs/ja/savingreading-local-files.md",
    "content": "# ローカルファイルの読み書き\n\n`electron` を使用する利点の一つは、ユーザーのファイルシステムにアクセスできることです。これにより、ローカルシステム上のファイルを読み書きすることができます。Chromium の制限を回避し、アプリケーションの内部ファイルに書き込むには、`electron` の API 、特に [`app.getPath(name)`](https://electron.atom.io/docs/api/app/#appgetpathname) 関数を使用してください。このヘルパーメソッドは、ユーザーのデスクトップ、システムの一時ファイルなどのシステムディレクトリへのファイルパスを取得できます。\n\n### ユースケース\n\nアプリケーション用のローカルデータベースストアを用意したいとしましょう。この例では、[`nedb`](https://github.com/louischatriot/nedb) を使って説明します。\n\n```bash\nyarn add nedb # or npm install nedb --save\n```\n\n**src/renderer/datastore.js**\n\nここでは NeDB を設定し、パスを `userData` ディレクトリに向けます。このファイルスペースは、アプリケーション専用に確保されているため、他のプログラムや他のユーザーのやりとりがこのファイルスペースを改ざんしないだろうという確信を得ることができます。ここから、 `renderer` プロセスで `datastore.js` をインポートし、使うことができます。\n\n```js\nimport Datastore from 'nedb'\nimport path from 'path'\nimport { remote } from 'electron'\nexport default new Datastore({\n  autoload: true,\n  filename: path.join(remote.app.getPath('userData'), '/data.db')\n})\n```\n\n**src/renderer/main.js**\n\nさらに手順を進めると、データストアを `src/renderer/main.js` にインポートし、 Vue のプロトタイプに設定することができます。そうすることで、全てのコンポーネントファイルで `this.$db` を通してデータストア API にアクセスすることができるようになりました。\n\n```js\nimport db from './datastore'\n/* 他のコード */\nVue.prototype.$db = db\n```\n"
  },
  {
    "path": "docs/ja/testing.md",
    "content": "# テスト\n\nelectron-vue は `renderer` プロセスのユニットテストとエンドツーエンドテストの両方をサポートし、公式の `vuejs-templates/webpack` ボイラープレートで提供されているテスト設定に大きく影響を受けています。`vue-cli`  スキャフォールディング中にテストサポートを含めるかの選択があります。\n\n## [ユニットテスト](unittesting.md)\n\nKarma と Mocha でユニットテストを実行する\n\n```bash\nnpm run unit\n```\n\n## [エンドツーエンドテスト](end-to-end_testing.md)\n\nSpectron と Mocha でエンドツーエンドテストを実行する\n\n```bash\nnpm run e2e\n```\n\n## 全てのテストを実行する\n\n```bash\nnpm test\n```\n\n### CI テストについて\n\nスキャフォールディング時にビルドツールとして `electron-builder` を使うことに決めた場合、`darwin`、`linux`、`win32`向けにTravis CI と AppVeyorの両方で簡単にアプリケーションをテストできます。`.travis.yml` と `appveyor.yml` の中には、コメントアウトされたセクションがあります。テストを有効にするために、セクションのコメントアウトを解除することができます。詳細については、[**CI を使用した自動デプロイ**](using-electron-builder.md#automated-deployments-using-ci)を読んでください。** **\n"
  },
  {
    "path": "docs/ja/unittesting.md",
    "content": "# ユニットテスト\n\nelectron-vue はユニットテストのためにテストランナーの [Karma](https://karma-runner.github.io/1.0/index.html) とテストフレームワークの [Mocha](https://mochajs.org/) ([Chai](http://chaijs.com/) と一緒に) を利用しています。\n\nMocha と Chai はそれぞれ `karma-mocha` と `karma-chai`  を使用して統合されているため、`expect` などの全ての API はテストファイルで全て使用可能です。\n\n### テストの実行\n\n```bash\n# Karma を始める\nnpm run unit\n```\n\n### ファイル構造\n\n```\nmy-project\n├─ test\n|  ├─ unit\n│  │  ├─ specs/\n│  │  ├─ index.js\n└─ └─ └─ karma.conf.js\n```\n\n**ほとんどの場合、**`index.js`** と **`karma.conf.js`** は無視して **`specs/`** を書くことだけに集中できます。**\n\n#### `specs/`\n\nこのディレクトリの中に実際のテストが書かれています。webpackのおかげで、ES2015とサポートされているローダーにフルアクセスできます。\n\n#### `index.js`\n\nこれは `karma-webpack` で使われるエントリーファイルです。このファイルの目的は、全てのテストとソースコードをワンショットで集めることです。\n\n#### `karma.conf.js`\n\nここでは、スペック/カバレッジレポーターで設定された実際の `karma` 構成を見つけることができます。さらなるカスタマイズは[公式の karma のドキュメント](http://karma-runner.github.io/1.0/config/configuration-file.html)に従って行うことができます。\n\n### 依存関係のモック化\n\nelectron-vue にはデフォルトでインストールされた [`inject-loader`](https://github.com/plasticine/inject-loader) が付属しています。Vue コンポーネントファイルでの使用については、[`vue-loader` のドキュメントのモックを使用したテスト](http://vue-loader.vuejs.org/ja/workflow/testing-with-mocks.html)を参照してください。\n"
  },
  {
    "path": "docs/ja/using-electron-builder.md",
    "content": "# [`electron-builder`](https://github.com/electron-userland/electron-builder)の使用　\n\n`electron-builder` によって作成された全てのビルドは `build` ディレクトリ内にあります。\n\n#### ビルド\n\n```bash\nnpm run build\n```\n\n#### 解凍されたディレクトリのビルド\n\nフルインストーラなしで簡単な実行可能ファイルを作成します。迅速なテストに役立ちます。\n\n```bash\nnpm run build:dir\n```\n\n### デフォルトのビルド構成\n\n[こちら](https://github.com/electron-userland/electron-builder/wiki/Options)にある `electron-builders` のオプションに従って、`package.json` でさらにカスタマイズすることができます。\n\n```js\n\"build\": {\n  \"productName\": \"ElectronVue\",\n  \"appId\": \"org.simulatedgreg.electron-vue\",\n  \"dmg\": {\n    \"contents\": [\n      {\n        \"x\": 410,\n        \"y\": 150,\n        \"type\": \"link\",\n        \"path\": \"/Applications\"\n      },\n      {\n        \"x\": 130,\n        \"y\": 150,\n        \"type\": \"file\"\n      }\n    ]\n  },\n  \"directories\": {\n    \"output\": \"build\"\n  },\n  \"files\": [\n    \"dist/electron\",\n    \"node_modules/\",\n    \"package.json\"\n  ],\n  \"mac\": {\n    \"icon\": \"build/icons/icon.icns\"\n  },\n  \"win\": {\n    \"icon\": \"build/icons/icon.ico\"\n  },\n  \"linux\": {\n    \"icon\": \"build/icons\"\n  }\n}\n```\n\n## CI を使用した自動デプロイ\n\nelectron-vue の `electron-builder` 構成を使用する場合、自動デプロイのために `appveyor.yml` と `.travis.yml` も提供されます。両方の設定ファイルは electron アプリケーションのビルドや GitHub リリース、 Bintray などへ生成物をプッシュするために設定されています。Travis CI は `linux` と `darwin` (macOS) の両方のビルドに使用される一方、AppVeyor は `win32` のビルドに使用されます。どちらのサービスも OSS プロジェクトに対しては無料です。\n\n#### Travis CI/AppVeyor のセットアップ\n\n1. [Travis CI](https://travis-ci.org/getting_started) / [AppVeyor](https://www.appveyor.com/) でアカウントを作成します\n2. electron-vue プロジェクトがある GitHub リポジトリにリンクします\n3. [https://github.com/settings/tokens](https://github.com/settings/tokens) にアクセスし、**Generate new token ** を押します(Travis CI と AppVeyor 両方で同じトークンが使用可能です)\n    1. **Token description** を設定します\n    2. **public_repo ** スコープにチェックをつけます\n    3. **Generate token** を押します\n4. 新しいトークンをコピーして後々使うために保存します\n5. Travis CI / AppVeyor でリポジトリ設定を開き、新しい**環境変数**を追加します\n    1. 変数の名前を `GH_TOKEN` に設定します\n    2. 変数の値を作成したばかりのGitHubアクセストークンに設定します\n    3. 新しい変数を**保存**し、暗号化が有効になっていることを確認します\n\nこの時点で、全てがセットアップされました。Travis CI/AppVeyor はデフォルトで `master` ブランチへのプッシュを監視します。プッシュが行われると、Travis CI/AppVeyor はリポジトリをサーバーにクローンし、ビルドプロセスを開始します。最終ステージでは、`electron-builder`  は環境変数の `GH_TOKEN` を見て、ドラフトのリリースを作成し、作成物を GitHub のパブリックリポジトリにアップロードします。この時点から、ドラフトのリリースを編集して、それを世界に公開することができます。 リリースを公開した後、`package.json` を更新して、将来のリリースに新しいバージョン番号が付いていることを確認してください。\n\n#### 自動アップデート\n\nアプリケーションが自動アップデートを受信できるようにすることは、優れた機能ですが、[**コードサイニング**](https://github.com/electron-userland/electron-builder/wiki/Code-Signing)が必要であることを知ってください。[こちら](https://github.com/electron-userland/electron-builder/wiki/Code-Signing)で説明されている  `electron-builder` が必要とするものに基づいて、いくつかの環境変数を追加することでコードサイニングを設定可能です。いったん証明書を設定すると、 `electron-updater`  をインストールし、自動アップデートを有効にするために、`src/main/index.js` の一番下のコードをコメントアウトすることができます。\n\nほとんどの人と同じように、コード署名証明書がない場合は、GitHub API を使用して新しいリリースをチェックすることができます。新しいリリースが検出されたら、アプリケーション内で、新しいビルドをダウンロードしてインストールできるダウンロードページをユーザーに示す通知を提供します。`electron-builder` が提供する素晴らしいインストーラーのおかげで、ユーザーは現在のバージョンをアンインストールする必要がなくなり、新しいインストールは Web ストレージまたは `userData` ファイルをそのまま維持しながら古いものを置き換えます。\n"
  },
  {
    "path": "docs/ja/using-electron-packager.md",
    "content": "# [`electron-packager`](https://github.com/electron-userland/electron-packager) の使用\n\n`electron-packager` によって作成された全てのビルドは `build` フォルダ内にあります。\n\n#### 全てのプラットフォーム用にビルド\n\nすべてのオペレーティングシステムが他のすべてのプラットフォーム用に構築できるとは限りません。\n\n```bash\nnpm run build\n```\n\n#### 特定のプラットフォーム用のビルド\n\nプラットフォームには `darwin`、 `mas`、 `linux` と `win32` があります。\n\n```bash\n# darwin 用にビルドする(macOS)\nnpm run build:darwin\n```\n\n#### クリーニング\n\n`build` から全てのビルドを削除します。\n\n```bash\nnpm run build:clean\n```\n\n### Windows以外のユーザーのためのメモ\n\nWindows 以外のプラットフォームを使用して**カスタムアイコン付きで** Windows 用にビルドしたい場合、[wine](https://www.winehq.org/) をインストールする必要があります。[詳細な情報はこちら](https://github.com/electron-userland/electron-packager#building-windows-apps-from-non-windows-platforms)。\n\n### デフォルトのビルド構成\n\n[こちら](https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options) に記載のある `electron-packager` のオプションの通りに `.electron-vue/build.config.js` でさらなるカスタマイズが可能です。ビルドされたアプリケーションに適用される名前は `package.json` の `productName` の値が設定されます。\n\n```js\n{\n    // 'x64' アーキテクチャを対象にします\n    arch: 'x64',\n    // 'electron/asar' を使用してアプリケーションを圧縮します\n    asar: true,\n    // アプリケーションのディレクトリ\n    dir: path.join(__dirname, '../'),\n    // electron のアプリケーションアイコンを設定します\n    // ファイル拡張子はプラットフォームに基づいて追加されます\n    //\n    // Linux 用にビルドする場合、以下を参照してください\n    // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#icon\n    icon: path.join(__dirname, '../build/icons/icon'),\n    // 最終的なビルドサイズを膨らませるファイルを無視する\n    ignore: /(^\\/(src|test|\\.[a-z]+|README|yarn|static|dist\\/web))|\\.gitkeep/,\n    // ビルドファイルを `builds` に保存する\n    out: path.join(__dirname, '../build'),\n    // ビルドファイルを上書きする\n    overwrite: true,\n    // プラットフォームを設定する環境変数\n    platform: process.env.BUILD_TARGET || 'all'\n}\n```\n"
  },
  {
    "path": "docs/ja/using-static-assets.md",
    "content": "# 静的アセットの使用\n\nもし以前に `vuejs-templates/webpack` ボイラープレートを使用したことがある場合、 `static/` ディレクトリに詳しいでしょう。ここは `main` プロセスや `renderer` プロセスが使用する静的アセットを配置する場所です。 これらのアセットを Vue アプリケーション内で使用するのは簡単ですが、フルパスを必要とする `fs` や他のモジュールで使用するのには少し難解です。幸いなことに、electron-vue は開発と本番で `static/` ディレクトリまでのパスを返却する `__static` 変数を提供しています。\n\n### Vue コンポーネント内で `src` タグを使用する場合\n\n画像を読み込むコンポーネントがありますが、他のタスクが完了するまで画像のパスが分からないとします。物事を簡単にするために、 `<img>` の src をバインドするために、 `data` 変数を使用しましょう。\n\n**SomeComponent.vue**\n\n```html\n<template>\n  <img v-bind:src=\"imageUrl\">\n</template>\n<script>\n  export default {\n    data () {\n      // URL が `static/` から始まることに注意してください\n      return { imageUrl: 'static/imgs/unsplash.png' }\n    }\n  }\n</script>\n```\n\n`webpack` は `unsplash.png` をバンドルしません。アプリケーションは `static/imgs/unsplash.png` ディレクトリ内を調べます。`vue-loader` のおかげで、全てのめんどくさいことを代わりにやってくれます。\n\n### JS で `fs`、`path`、`__static` を使用する場合\n\n`fs` を使用してアプリケーションに読み込む必要のある静的アセットがある場合、開発と本番の両方で `static/` ディレクトリまでの信頼できるパスを取得するにはどのようにすれば良いでしょうか？electron-vue は `static/`  ディレクトリまでの適切なパスを返却する `__static` という名前のグローバル変数を提供しています。ここでは、開発と本番の両方で簡単なテキストファイルを読むためにそれを使う方法を示します。\n\n**static/someFile.txt**\n\n```txt\nfoobar\n```\n\n**SomeFile.js (**`main`** プロセスもしくは **`renderer`** プロセス)**\n\n```js\nimport fs from 'fs'\nimport path from 'path'\nlet fileContents = fs.readFileSync(path.join(__static, '/someFile.txt'), 'utf8')\nconsole.log(fileContents)\n// => \"foobar\"\n```\n\n本番では全てのファイルが強く推奨されている通り、デフォルトで [`asar`](https://github.com/electron/asar) でパッケージングされていることに注意してください。このため、この挙動を認識しているので、`static/` フォルダ内のアセットは `electron` 内でのみアクセスできます。例えば外部プログラムで開けるようにユーザにファイルを配布したい場合、これらのアプリケーションのアセットをユーザのドキュメントスペースまたはデスクトップにコピーする必要があります。そこからそれらのアセットを開くために [`shell.openItem()`](https://electron.atom.io/docs/api/shell/#shellopenitemfullpath)  という electron API を使用することができます。\n\nこの状況の別の解決策は特定のファイルを本番の `asar` アーカイブから \"解凍\" するように `electron-packager`/`electron-builder` を構成することです。electron-vue はこの方法をサポートする予定はありません。これに関連する課題、または設定方法に関する課題は終了します。\n"
  },
  {
    "path": "docs/ja/using_css_frameworks.md",
    "content": "# CSS フレームワークの使用\n\nこれは簡単なように思えるかもしれませんが、すでに用意されている [`style-loader`](https://github.com/webpack/style-loader) を使用してサードパーティの CSS ライブラリを webpack にインポートすることをお勧めします。\n\n## ユースケース\n\nアプリケーションに [bootstrap](http://getbootstrap.com/) 、 [bulma](http://bulma.io/) 、 [materialize](http://materializecss.com/) を使いたいとします。いつも通り `npm` からインストールしますが、 `index.ejs` に追加する代わりに、JavaScript 、特に `src/renderer/main.js` に CSS をインポートします。\n\n#### 例\n\n`bulma` をインストールしましょう\n\n```bash\nnpm install bulma --save\n```\n\nそれでは `src/renderer/main.js` にこの行を追加しましょう。\n\n```bash\nimport 'bulma/css/bulma.css'\n```\n\nまた、コンポーネントファイル内に `bulma` を含めることもできます。\n\n**App.vue**\n\n```html\n<style>\n  @import \"~bulma/css/bulma.css\";\n</style>\n```\n\n`webpack` は `bulma` を読み込み、本番ビルドで使用できるようにします。\n"
  },
  {
    "path": "docs/ja/using_pre-processors.md",
    "content": "# プリプロセッサの使用\n\n[`webpack`](https://github.com/webpack/webpack) で [`vue-loader`](https://github.com/vuejs/vue-loader) を使用することの大きな利点の一つは、特に努力せずに Vue コンポーネントファイル内で HTML/CSS/JS を直接前もって処理できることです。詳細は[**こちら**](https://jp.vuejs.org/v2/guide/single-file-components.html)を確認してください。\n\n## ユースケース\n\nCSS の前処理に Sass/SCSS を使う必要があるとします。まず、この構文を処理するために適切な `webpack` ローダーをインストールする必要があります。\n\n#### `sass-loader` のインストール\n\n```bash\nnpm install --save-dev sass-loader node-sass\n```\n\n必要なローダーがインストールされると、完成です。`vue-loader` は魔法のように残り作業をやってくれます。これで、Vue コンポーネントファイルに `lang=\"sass\"` または `lang=\"scss\"` を簡単に追加できます。 `sass-loader` の依存パッケージであるため、 `node-sass` もインストールしたことに注意してください。\n\n#### `lang`  属性を適用する\n\nこれを...\n\n```html\n<style>\n  body {\n    /* CSS */\n  }\n</style>\n```\n\n...こうします...\n\n```html\n<style lang=\"scss\">\n  body {\n    /* SCSS */\n  }\n</style>\n```\n\n他のプリプロセッサにも同じ原則が適用されます。JS に coffeescript が必要かもしれませんね？[coffeescript-loader](https://github.com/webpack/coffee-loader) をインストールして、 `<script>` タグに `lang=\"coffeescript\"` 属性を適用するだけです。\n\nこの機能の高度な使い方については [vue-loader のドキュメント](http://vue-loader.vuejs.org/ja/configurations/pre-processors.html)を参照してください。\n\n## Sass/SCSS のグローバル使用\n\nCSS 構文に Sass/SCSS を使用する場合、全ての Vue コンポーネントファイルでグローバルな変数/ミックスインを使用できることはとても有益です。これを実現させる方法は次のとおりです。\n\n### ユースケース\n\nこの例は `globals.scss` を全ての Vue コンポーネントファイルに適用する方法を示しています。このドキュメントでは上述の通り、開発環境ですでに `sass-loader` が設定されていることを前提としています。\n\n#### グローバル変数を定義する\n\n**src/renderer/globals.scss**\n\n```scss\n$brand-primary: blue;\n$brand-accent: turquoise;\n```\n\n#### `globals.scss` を `node-sass` に直接注入する\n\n**.electron-vue/webpack.renderer.config.js** で `vue-loader` の設定を編集する\n\n```js\nloaders: {\n  sass: 'vue-style-loader!css-loader!sass-loader?indentedSyntax=1&data=@import \"./src/renderer/globals\"',\n  scss: 'vue-style-loader!css-loader!sass-loader?data=@import \"./src/renderer/globals\";'\n}\n```\n\n#### グローバル変数を使用する\n\n**SomeComponent.vue**\n\n```html\n<style lang=\"scss\">\n  body { color: $brand-primary; }\n</style>\n```\n"
  },
  {
    "path": "docs/ja/using_the_file_structure.md",
    "content": "# Using the File Structure\n\nelectron-vue does its best to not force a particular project structure, but does try to follow common Vue & Electron practices. The following documentation describes common practices used in the original project structure.\n\n**If you are unfamiliar with Electron's **`renderer`** and **`main`** processes, please give the first section of the **[**Quick Start**](http://electron.atom.io/docs/tutorial/quick-start)** a good read. It explains, in detail, their differences.**\n\n### [Renderer Process](renderer-process.md)\n\n### [Main Process](main-process.md)\n"
  },
  {
    "path": "docs/ja/vue_accessories.md",
    "content": "# Vue プラグイン\n\nelectron-vue には `vue-cli` でのスキャフォールディングの間にインストールできる次の `vue` プラグインが入っています...\n\n- [axios ](https://github.com/mzabriskie/axios)(web リクエスト)\n- [vue-electron](https://github.com/SimulatedGREG/vue-electron) (electron API を Vue オブジェクトに付け加える)\n- [vue-router](https://github.com/vuejs/vue-router) (シングルページアプリケーションのルーティング)\n- [vuex](https://github.com/vuejs/vuex) (Flux にインスパイアされたアプリケーションアーキテクチャ)\n\n---\n\n### [`axios`](https://github.com/mzabriskie/axios)\n\n> ブラウザーと Node.js のための Promise ベースの HTTP クライアント\n\n`vue-resource` をよく知っている場合、 `axios` はほとんどの API がほぼ同じであるため、とても馴染みやすいでしょう。`main` プロセススクリプトで簡単に `axios` をインポートしたり、 `renderer` プロセスで `this.$http` や `Vue.http` を使用することができます。\n\n### [`vue-electron`](https://github.com/SimulatedGREG/vue-electron)\n\n> electron API を Vue オブジェクトに付け加え、全てのコンポーネントからアクセス可能にする vue プラグイン。\n\nelectron API に `this.$electron` で簡単にアクセスできるようにするシンプルな `vue` プラグインです。全てのコンポーネントで `electron` をインポートする必要はありません。\n\n### [`vue-router`](https://github.com/vuejs/vue-router)\n\n> `vue-router`  は [Vue.js](http://jp.vuejs.org/) 公式のルーターです。Vue.js でシングルページアプリケーションを構築するために Vue.js のコアと深く結びついています。\n\n提供されるプロジェクト構造は公式で提供されている `vuejs-templates/webpack` のボイラープレートの設定と似ているため馴染みやすいでしょう。\n\n### [`vuex`](https://github.com/vuejs/vuex)\n\n> Vuex は Vue.js アプリケーション向けの**状態管理パターンであり、ライブラリ**でもあります。アプリケーション内の全てのコンポーネントの集中型ストアとして機能し、状態を予測可能な方法でのみ変更できることを保証するルールを備えています。\n\n提供されるプロジェクト構造はかなり最低限ですが、`vuex` のモジュールパターンを使用してデータストアを整理することを勧めます。`@/store/modules/index.js` は `vuex` のストアが全てのモジュールをワンショットでインポートできるようにします。\n"
  },
  {
    "path": "docs/ja/webpack-configurations.md",
    "content": "# Webpack構成\n\nelectron-vue には `.electron-vue/` ディレクトリに置かれた3つの別々の webpack 設定ファイルが入っています。 `web` 出力のオプションは別として、 `main` と `renderer`はセットアップが似通っています。どちらも `node@7` の機能を対象にするために `babel-preset-env` と `babili` を使用し、全てのモジュールを `externals` として扱います。\n\n### `.electron-vue/webpack.main.config.js`\n\nelectron の `main` プロセスを対象にします。この構成はかなり最低限ですが、いくつかの一般的な `webpack` のプラクティスが含まれています。\n\n### `.electron-vue/webpack.renderer.config.js`\n\nelectron の `renderer` プロセスを対象にします。この構成は Vue アプリケーションを取り扱うので、 `vue-loader` や公式の `vuejs-templates/webpack` ボイラープレートで使用可能なその他多くの構成が含まれます。\n\n##### 外部依存のホワイトリスト化\n\nこの構成について考慮すべき重要なことの1つは、特定のモジュールを webpack `externals` として扱わないようにホワイトリストに登録できることです。この機能性が必要になるユースケースはあまりありませんが、 `*.vue` コンポーネントそのままを提供する Vue UI ライブラリーの場合は、ホワイトリストに登録が必要なため、 `vue-loader` はそれらをコンパイルできます。もう1つのユースケースは、フルコンパイラとランタイムビルドをインポートするために `vue` を設定するなどのような webpack の `alias` を使用する場合です。このため、 `vue` はすでにホワイトリストに入っています。\n\n### `.electron-vue/webpack.web.config.js`\n\nブラウザ用に `renderer` プロセスのソースコードをビルド対象にします。この設定は web に公開する必要がある場合に強力な開始基盤として提供されています。**electron-vue は提供されているもの以上の web 出力をサポートしていません。**web 出力に関する課題は延期されるかクローズする可能性が高いでしょう。\n"
  },
  {
    "path": "docs/ko/README.md",
    "content": "![](../images/logo.png)\n\n> vue로 구축 된 electron 애플리케이션을 만들기 위한 보일러 플레이트\n\n[![Build Status](https://semaphoreci.com/api/v1/simulatedgreg/electron-vue/branches/master/badge.svg)](https://semaphoreci.com/simulatedgreg/electron-vue)\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\n[![forthebadge](http://forthebadge.com/images/badges/built-with-love.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/uses-js.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/makes-people-smile.svg)](http://forthebadge.com)\n\n## 개요\n\n이 프로젝트의 목적은 vue를 사용하는 Electron 앱을 수동으로 설정할 필요가 없도록 만드는 것 입니다. electron-vue는 스캐폴딩(발판)을 위한`vue-cli`, `webpack`과 `vue-loader`, `electron-packager` 또는 `electron-builder`, `vue-router`와 `vuex` 등과 같이 가장 많이 사용되는 플러그인들 등의 이점들을 취했습니다.\n\n#### Check out the detailed documentation [here](https://simulatedgreg.gitbooks.io/electron-vue/content/index.html).\n\n이 보일러플레이트에서 찾을 수 있는 것...\n\n* **단일** `package.json` 설정으로된 기본 프로젝트 구조(다른 프로젝트는 두개 package.json 파일로 구성되어 있습니다.)\n* 상세한 [문서](https://simulatedgreg.gitbooks.io/electron-vue/content/)\n*  [vue-cli](https://github.com/vuejs/vue-cli)를 사용한 프로젝트 스캐폴딩\n* Vue 플러그인을 사용한 준비가 되어 있습니다. \\([axios](https://github.com/mzabriskie/axios), [vue-electron](https://github.com/SimulatedGREG/vue-electron), [vue-router](https://github.com/vuejs/vue-router), [vuex](https://github.com/vuejs/vuex)\\)\\*\n* 설치된 [vue-devtools](https://github.com/vuejs/vue-devtools) 과 개발을 위한 [devtron](https://github.com/electron/devtron) 도구 \n* [electron-packager](https://github.com/electron-userland/electron-packager) 또는 [electron-builder](https://github.com/electron-userland/electron-builder)를 사용하여 애플리케이션을 쉽게 패키징 할 수 있는 기능\\*\n* [electron-builder](https://github.com/electron-userland/electron-builder)를 이용한 자동화 배포를 위한 `appveyor.yml` 과  `.travis.yml`\\*\n* 브라우저 용 웹 출력 기능\n* 편리한 [NPM scripts](https://simulatedgreg.gitbooks.io/electron-vue/content/en/npm_scripts.html)\n* 핫 모듈 교체로 [webpack](https://github.com/webpack/webpack) 과 [vue-loader](https://github.com/vuejs/vue-loader) 사용\n* electron의 메인 프로세스에서 작업 할 때 프로세스 재시작\n* [vue-loader](https://github.com/vuejs/vue-loader/)를 사용한 HTML/CSS/JS 전처리기 지원\n* 기본적으로 [`stage-0`](https://babeljs.io/docs/plugins/preset-stage-0/)으로된 ES6 \n* [`babili`](https://github.com/babel/babili)를 사용하여 ES5로 완전히 내릴 필요성을 제거\n* ESLint \\([`standard`](https://github.com/feross/standard) 와 [`airbnb-base`](https://github.com/airbnb/javascript) 지원\\)\\*\n* \\(Karma + Mocha 로\\) 단위 테스팅 *\n* \\(Spectron + Mocha 로\\) End-to-end 테스팅 \\*\n\n\\* vue-cli 스캐폴딩 중 사용자 정의 가능\n\n### 시작하기\n\n이 보일러플레이트는 [vue-cli](https://github.com/vuejs/vue-cli)를 위한 템플릿으로 제작되었으며 최종 스캐폴드 앱을 사용자 정의 할 수 있는 옵션을 포함하고 있습니다. `node@^7` 이상의 노드를 사용해야 합니다. 또한 electron-vue는 의존성을 훨씬 잘 처리하고 `yarn clean`으로 최종 빌드 크기를 줄일 수 있는 [`yarn`](https://yarnpkg.org) 패키지 매니저를 공식적으로 추천합니다.\n\n```bash\n# Install vue-cli and scaffold boilerplate\nnpm install -g vue-cli\nvue init simulatedgreg/electron-vue my-project\n\n# Install dependencies and run your app\ncd my-project\nyarn # or npm install\nyarn run dev # or npm run dev\n```\n\n##### Windows 사용자 입니까?\n\nelectron 및 기타 의존성에 필요한 모든 빌드 도구가 있는 지 확인하려면 [**A Note for Windows Users**](https://simulatedgreg.gitbooks.io/electron-vue/content/ko/getting_started.html#a-note-for-windows-users)를 확인하세요.\n\n##### Vue 1을 사용하고 싶나요?\n\n `1.0` 브랜치를 가리키기만 하세요. 하지만 electron-vue는 `vue@^1`의 사용을 공식적으로 권장하지 않습니다. 따라서 프로젝트 구조, 기능 및 문서는 이러한 변경 사항을 반영합니다.([**legacy documentation**](https://github.com/SimulatedGREG/electron-vue/tree/1.0/docs)).\n\n```bash\nvue init simulatedgreg/electron-vue#1.0 my-project\n```\n\n### 다음 단계\n\n[documentation](https://simulatedgreg.gitbooks.io/electron-vue/content/)를 면밀히 살펴보세요. 이 문서에서 구성, 프로젝트 구조, 앱 빌드에 대한 유용한 정보가 있습니다. 또한 편리한 [FAQs](https://simulatedgreg.gitbooks.io/electron-vue/content/en/faqs.html) 섹션도 있습니다.\n\n\n## electron-vue로 만든 프로젝트\nelectron-vue로 만들어진 몇 가지 놀라운 프로젝트를 살펴보세요. 여러분의 프로젝트가 목록에 추가를 원하시면 언제든지 pull request를 보내 주시기 바랍니다.\n\n* [**Surfbird**](https://github.com/surfbirdapp/surfbird): A Twitter client built on Electron and Vue\n* [**Lulumi-browser**](https://github.com/qazbnm456/lulumi-browser): Lulumi-browser is a light weight browser coded with Vue.js 2 and Electron\n* [**Space-Snake**](https://github.com/ilyagru/Space-Snake): A Desktop game built with Electron and Vue.js.\n* [**Forrest**](https://github.com/stefanjudis/forrest): An npm scripts desktop client\n* [**miikun**](https://github.com/hiro0218/miikun): A Simple Markdown Editor\n* [**Dakika**](https://github.com/raj347/Dakika): A minute taking application that makes writing minutes a breeze\n* [**Dynamoc**](https://github.com/ieiayaobb/dynamoc): Dynamoc is a GUI client for dynamodb-local, dynalite and AWS dynamodb\n* [**Dockeron**](https://github.com/dockeron/dockeron): A dockeron project, built on Electron + Vue.js for Docker\n* [**Easysubs**](https://github.com/matiastucci/easysubs): Download subtitles in a very fast and simple way\n* [**adminScheduler**](https://github.com/danieltoorani/adminScheduler): An application leveraging electron for cross platform compatibility, Vue.js for lightning fast UI and full-calendar.io to deliver a premium calendar interface.\n* [**Backlog**](https://github.com/czytelny/backlog): Simple app for storing TODOs, ideas or backlog items. You can organize them with boards. Sleek flow. Built with Electron + Vue.js + iView\n* [**Opshell**](https://github.com/ricktbaker/opshell): Ops tool to make life easier working with AWS instances.\n* [**GitHoard**](https://github.com/jojobyte/githoard): Hoard git repositories with ease.\n* [**Data-curator**](https://github.com/ODIQueensland/data-curator): Share usable open data.\n* [**Bookmark**](https://github.com/mrgodhani/bookmark): Desktop app to manage bookmarked links using Atom Electron and Vue.js\n* [**Uber Run**](https://github.com/break-enter/uberrun): Simple automation desktop app to download and organize your tax invoices from Uber.\n* [**Netsix**](https://github.com/pulsardev/netsix): Share videos with your friends in a real peer-to-peer manner using WebRTC.\n* [**code-notes**](https://github.com/lauthieb/code-notes): A simple code snippet manager for developers built with Electron & Vue.js.\n* [**Pomotroid**](https://github.com/Splode/pomotroid): A simple and visually-pleasing Pomodoro timer\n* [**MarkText**](https://github.com/marktext/marktext): Mark Text is a realtime Markdown Editor.\n* [**vue-design**](https://github.com/L-Chris/vue-design): the best website visualization builder with Vue and Electron\n* [**ImapSync Client**](https://github.com/ridaamirini/ImapSyncClient): It's only an Internet Message Access Protocol Synchronization Client\n* [**Hve**](https://github.com/hellohve/hve): A static blog client tool you may like.\n* [**MarkdownFox**](https://github.com/lx4r/markdownfox): A simple Markdown viewer with auto update and PDF export.\n* [**Cleaver**](https://getcleaver.com/): Cleaver helps you provision servers ready for deploying your web apps with zero downtime - for free!\n"
  },
  {
    "path": "docs/ko/SUMMARY.md",
    "content": "# Summary\n\n* [Introduction](./README.md)\n* [Getting Started](getting_started.md)\n* [Project Structure](project_structure.md)\n  * [File Tree](file-tree.md)\n  * [Renderer Process](renderer-process.md)\n  * [Main Process](main-process.md)\n  * [Webpack Configurations](webpack-configurations.md)\n* [Development](development.md)\n  * [Entry index.html](entry_indexhtml.md)\n  * [Vue Plugins](vue_accessories.md)\n  * [NPM Scripts](npm_scripts.md)\n  * [Using CSS Frameworks](using_css_frameworks.md)\n  * [Using Pre-Processors](using_pre-processors.md)\n  * [Using Static Assets](using-static-assets.md)\n  * [Read & Write Local Files](savingreading-local-files.md)\n  * [Debugging](debugging-production.md)\n* [Building Your App](building_your_app.md)\n  * [Using electron-packager](using-electron-packager.md)\n  * [Using electron-builder](using-electron-builder.md)\n* [Testing](testing.md)\n  * [Unit Testing](unittesting.md)\n  * [End-to-End Testing](end-to-end_testing.md)\n* [Meta](meta.md)\n  * [FAQs](faqs.md)\n  * [New Releases](new-releases.md)\n  * [Migration Guide](migration-guide.md)\n  * [Contributing](contributing.md)\n\n"
  },
  {
    "path": "docs/ko/book.json",
    "content": "{\n  \"root\": \"\"\n}\n"
  },
  {
    "path": "docs/ko/building_your_app.md",
    "content": "# 앱 빌드하기\n\nelectron-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` 스캐폴딩 중 어떤 빌더를 사용할 지 묻는 메시지가 표시됩니다.\n\n## [`electron-packager`](using-electron-packager.md)\n\nelectron 애플리케이션을 처음 사용하거나 간단한 실행 파일만 작성해야하는 경우 `electron-packager`는 여러분의 요구에 완벽할 것 입니다.\n\n## [`electron-builder`](using-electron-builder.md)\n\n완전한 설치 관리자, 자동 업데이트 지원, Travis CI 및 AppVeyor를 사용한 CI 구축 또는 기본 노드 모듈 재구성 자동화를 원할 경우 `electron-builder`가 좋을 것 입니다.\n\n"
  },
  {
    "path": "docs/ko/contributing.md",
    "content": "# Contributing\n이 보일러플레이트를 돕고 싶나요? 자유롭게 pull request를 제출하세요. 제출 준비를 하기 전에 다음을 확인하세요...\n\n### JavaScript 표준 스타일\n모든 JS가 기본 ***style standards*** 을 따르는 지 확인하려면 이 [rules](http://standardjs.com/#rules)을 따르는 지 확인하세요.\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)"
  },
  {
    "path": "docs/ko/debugging-production.md",
    "content": "# Debugging\n\n### Main Process\n\n개발 중인 애플리케이션을 실행할 때, 여러분은 원격 디버거를 언급하는 `main` 프로세스에서 메시지를 발견했을 수도 있습니다. `electron@^1.7.2`가 출시 된 이래로 Inspect API를 통한 원격 디버깅이 도입되었으며 Google 크롬 또는 기본 포트 5858을 사용하는 프로세스(Visual Studio Code)에 원격으로 연결할 수 있는 다른 디버거를 제공된 링크를 열면 쉽게 액세스 할 수 있습니다.\n\n```bash\n┏ Electron -------------------\n\n  Debugger listening on port 5858.\n  Warning: This is an experimental feature and could change at any time.\n  To start debugging, open the following URL in Chrome:\n      chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:5858/22271e96-df65-4bab-9207-da8c71117641\n\n┗ ----------------------------\n```\n\n### Production Builds\n\n###### Notice\n\n프로덕션 환경에서 애플리케이션을 디버그하는 것이 가능할 수도 있지만 개발 중에 발견 된 것과 비교하여 프로덕션 코드가 축소되어  읽을 수 없다는 것을 알고 있으세요.\n\n##### `renderer` Process\n\n현재 개발중인 것보다 큰 차이점이 없습니다. [`BrowserWindow` APIs](https://electron.atom.io/docs/api/web-contents/#contentsopendevtoolsoptions)를 사용하여 개발자 도구를 간단하게 호출 할 수 있습니다. 초기 electron-vue 설정을 사용하여 `src/main/index.js` 안에 다음과 같은 코드 스니펫을 추가 할 수 있습니다. `new BrowserWindow` 구축 직후, 개발 도구를 강제로 열 수 있습니다.\n\n```js\nmainWindow.webContents.openDevTools()\n```\n\n##### `main` Process\n\n위에서 언급 한 것과 비슷하게 `main` 프로세스에 외부 디버거를 연결하여 애플리케이션을 원격 디버깅 할 수도 있습니다. 프로덕션 환경에서 디버거를 활성화하려면 `src/main/index.js`에서 `app`을 import 후에 다음 스니펫을 추가하면 됩니다. 그런 다음 Google 크롬에서 `chrome://inspect`를 통해 연결하여 탐색 할 수 있습니다.\n\n```js\napp.commandLine.appendSwitch('inspect', '5858')\n```\n\n\n\n"
  },
  {
    "path": "docs/ko/development.md",
    "content": "# Development\n\n### 개발 설정 시작하기\n\n`yarn` 또는 `npm install`을 사용하여 종속성을 설치 한 후, 실행합니다.\n\n```bash\nyarn run dev # or npm run dev\n```\n\n... 뿜! 실행 중인 electron-vue 앱이 있습니다.\n![](../images/landing-page.jpg)\n\n이 보일러플레이트는 쉽게 제거할 수 있는 몇 가지 landing-page components가 있습니다.\n\n"
  },
  {
    "path": "docs/ko/end-to-end_testing.md",
    "content": "# End-to-End Testing\n\nelectron-vue makes use of [Spectron](http://electron.atom.io/spectron/) and the [Mocha](https://mochajs.org/) \\(with [Chai](http://chaijs.com/)\\) test framework for end-to-end testing. Mocha & Chai APIs, including `expect`, `should`, and `assert`, are made available in global scope.\n\n### Running tests\n\n```bash\n# Begin Mocha\nnpm run e2e\n```\n\n##### Note\n\nBefore running end-to-end tests, a `npm run pack` is called to create a production build that Spectron can consume during tests.\n\n### File Structure\n\n```\nmy-project\n├─ test\n|  ├─ e2e\n│  │  ├─ specs/\n│  │  ├─ index.js\n└─ └─ └─ utils.js\n```\n\n**For the most part, you can ignore **`index.js`** and focus solely on writing **`specs/`**.**\n\n#### `specs/`\n\nInside this directory is where actual tests are written. Thanks to the power of `babel-register`, you have full access to ES2015.\n\n#### `index.js`\n\nThis file acts as the main entry to Mocha and gathers all tests written in `specs/` for testing.\n\n#### `utils.js`\n\nHere you will find generic functions that could be of use throughout your `specs/`. Base functions include a `beforeEach` and `afterEach` that handle the electron creation/destruction process.\n\n### On the subject of Spectron\n\nSpectron is the official [electron](http://electron.atom.io) testing framework that uses both [ChromeDriver](https://sites.google.com/a/chromium.org/chromedriver/) and [WebDriverIO](http://webdriver.io/) for manipulating DOM elements.\n\n#### Using WebDriverIO\n\nAs stated in the Spectron [documentation](https://github.com/electron/spectron#client), access to [WebDriverIO APIs](http://webdriver.io/api.html) can be accessed through `this.app.client`. Since electron-vue uses Mocha, the context of `this` is shared between `afterEach`, `beforeEach`, and `it`. Because of this, it is important to note that ES2015 arrow functions cannot not be used in certain situations as the context of `this` will be overwritten \\([more info](https://mochajs.org/#arrow-functions)\\).\n\n"
  },
  {
    "path": "docs/ko/entry_indexhtml.md",
    "content": "# Entry `index.html`\n\nelectron-vue는 프로덕션 빌드 중 [**`html-webpack-plugin`**](https://github.com/ampedandwired/html-webpack-plugin)을 사용하여 `index.html`을 만듭니다.\n여러분은 개발 중에 `src/` 디렉토리에서 `index.ejs`를 발견할 것 입니다. 여기서 엔트리 HTML 파일을 변경 할 수 있습니다.\n\n이 플러그인의 작동 방식에 익숙하지 않은 경우, 이 [문서](https://www.npmjs.com/package/html-webpack-plugin)를 읽기 바랍니다. 간단히 말해, 이 플러그인은 `renderer.js`과 `styles.css`을 포함한 프로덕션 assets을 최종으로 축소된 index.html에 자동으로 삽입합니다.\n\n### 개발 할 때 `index.ejs`\n\n```html\n<!DOCTYPE html>\n<html>\n  <head>\n    <meta charset=\"utf-8\">\n    <title><%= htmlWebpackPlugin.options.title %></title>\n    <%= ... %>\n  </head>\n  <body>\n    <div id=\"app\"></div>\n    <!-- webpack builds are automatically injected -->\n  </body>\n</html>\n```\n\n### 프로덕션의 `index.html` \\(non-minified\\)\n\n```html\n<!DOCTYPE html>\n<html>\n  <head>\n    <meta charset=\"utf-8\">\n    <title>app</title>\n    <link href=\"styles.css\" rel=\"stylesheet\">\n  </head>\n  <body>\n    <div id=\"app\"></div>\n    <script type=\"text/javascript\" src=\"renderer.js\"></script>\n  </body>\n</html>\n```\n\n### CDNs 사용에 관하여\n\nCDN에서 제공되는 assets을 사용하면 애플리케이션의 최종 빌드 사이즈에 득이 되지만 사용하지 않는 것을 권합니다. 주된 이유는 여러분은 애플리케이션이 인터넷에 항상 액세스 할 수 있다고 가정하지만 Electron 앱의 경우 항상 그렇지 않습니다. 이는 bootstrap 같은 CSS 프레임워크에서 중요한 이슈가 됩니다. 여러분의 앱은 아주 빠른 속도로 스타일이 없는 난잡한 상태가 될 수 있습니다.\n\n> \"나는 이를 신경쓰지 않고 CDN을 계속 사용하고 싶습니다.\"\n\nCDN을 계속 사용하기로 결정한 경우, `src/index.ejs`에 태그를 추가하여 계속해서 사용 할 수 있습니다. 다만, 앱이 오프라인 일 때 적절한 UI/UX 플로우를 설정하길 바랍니다.\n"
  },
  {
    "path": "docs/ko/faqs.md",
    "content": "# FAQs\n\n* [Why is my electron app blank after running `npm run dev`?](#why-is-my-electron-app-blank-after-running-npm-run-dev)\n* [Why does my electron app show a file explorer?](#why-does-my-electron-app-show-a-file-explorer)\n* [Why is `vue-devtools`/`devtron` missing?](#why-is-vue-devtoolsdevtron-missing)\n* [Where do I put Static Assets?](#where-do-i-put-static-assets)\n* [Why did `npm run lint` end with an error?](#why-did-npm-run-lint-end-with-an-error)\n* [Why can't I load my app in a web browser?](#why-cant-i-load-my-app-in-a-web-browser)\n* [How do I import `jquery`?](#how-do-import-jquery)\n* [How can I debug the `main` process?](#how-can-i-debug-the-main-process)\n\n---\n\n## Why is my electron app blank after running `npm run dev`?\n\n#### TL;DR\n\nMake sure you don't have a personal **proxy** setup that could tamper with `webpack-dev-server`.\n\n## Why does my electron app show a file explorer?\n\n#### TL;DR\n\nYour `src/renderer` contains error\\(s\\). Check console, fix errors, then refresh electron with `CommandOrControl+R`.\n\n##### Long answer\n\nIf error\\(s\\) are present in you `src/renderer` this creates conflicts with ESLint on first run. In turn, an INVALID webpack `renderer.js` is produced which interrupts `HtmlWebpackPlugin` from creating `index.html`. Since `webpack-dev-server` doesn't have the `index.html` ready to serve, the server falls back to the file explorer.\n\n## Why is `vue-devtools`/`devtron` missing?\n\nMake sure to close and reopen the developer tools panel on first launch if they are missing. Also check your terminal check for any error messages that may occur during installation.\n\n## Where do I put Static Assets?\n\n[**Using Static Assets**](using-static-assets.md)\n\n## Why did `npm run lint` end with an error?\n\nThe default nature of eslint is to print linting errors to console, and if there is any found the script will end with a non-zero exit \\(which produces npm errors\\). This is normal behavior.\n\n## Why can't I load my app in a web browser?\n\n[\\#195](https://github.com/SimulatedGREG/electron-vue/issues/195)\n\n## How do import `jquery`?\n\nIf you are wanting to use `bootstrap`, I'm going to have to stop you right there. Using both `vue` and `jquery` in the same environment is a bad practice and leads to the two frameworks colliding with each other. I would highly recommend using a `bootstrap` alternative that uses `vue` for its JavaScript functionality. Some recommendations include [`bootstrap-vue`](https://github.com/bootstrap-vue/bootstrap-vue) and [`vue-strap`](https://github.com/yuche/vue-strap). For whatever reason you must use `jquery`, seek guidance from `webpack`'s documentation about the `ProvidePlugin` or see [\\#192](https://github.com/SimulatedGREG/electron-vue/issues/192).\n\n## How can I debug the `main` process?\n\nWhen using `electron@^1.7.2` you can open up Google Chrome, head to `chrome://inspect`, and then pop open the remote electron process while your application is running in development mode.\n\n[Electron Documentation](https://github.com/electron/electron/blob/master/docs/tutorial/debugging-main-process.md)\n\n"
  },
  {
    "path": "docs/ko/file-tree.md",
    "content": "# 파일 트리\n\n### 개발 파일 트리\n\n**Note**: 일부 파일,폴더는 `vue-cli` 스캐폴딩 중 선택한 설정에 따라 다를 수 있습니다..\n\n```\nmy-project\n├─ .electron-vue\n│  └─ <build/development>.js files\n├─ build\n│  └─ icons/\n├─ dist\n│  ├─ electron/\n│  └─ web/\n├─ node_modules/\n├─ src\n│  ├─ main\n│  │  ├─ index.dev.js\n│  │  └─ index.js\n│  ├─ renderer\n│  │  ├─ components/\n│  │  ├─ router/\n│  │  ├─ store/\n│  │  ├─ App.vue\n│  │  └─ main.js\n│  └─ index.ejs\n├─ static/\n├─ test\n│  ├─ e2e\n│  │  ├─ specs/\n│  │  ├─ index.js\n│  │  └─ utils.js\n│  ├─ unit\n│  │  ├─ specs/\n│  │  ├─ index.js\n│  │  └─ karma.config.js\n│  └─ .eslintrc\n├─ .babelrc\n├─ .eslintignore\n├─ .eslintrc.js\n├─ .gitignore\n├─ package.json\n└─ README.md\n```\n\n#### 프로덕션 빌드 파일 트리\n\n```\napp.asar\n├─ dist\n│  └─ electron\n│     ├─ static/\n│     ├─ index.html\n│     ├─ main.js\n│     └─ renderer.js\n├─ node_modules/\n└─ package.json\n```\n\n여러분도 알 수 있듯이 거의 모든 것이 최종 프로덕션 빌드에서 제거 됩니다. 사용자가 큰 파일 크기로 부푼 소프트웨어를 다운로드하는 것을 원하지 않으므로 electron 앱을 배포 할 때는 거의 필수 입니다.\n\n\n\n\n"
  },
  {
    "path": "docs/ko/getting_started.md",
    "content": "# 시작하기\n\n## 스캐폴딩\n\n이 보일러플레이트는 [vue-cli](https://github.com/vuejs/vue-cli) 템플릿으로 제작되었으며 최종 스캐폴드 된 애플리케이션을 사용자 정의 하는 옵션을 포함합니다. `node@^7` 또는 그 이상의 버전을 사용해야합니다. 또한 electron-vue는 의존성을 훨씬 잘 처리하고 `yarn clean`으로 최종 빌드 크기를 줄일 수 있는  [`yarn`](https://yarnpkg.org) 패키지 매니저를 공식적으로 추천합니다.\n\n```bash\n# Install vue-cli and scaffold boilerplate\nnpm install -g vue-cli\nvue init simulatedgreg/electron-vue my-project\n\n# Install dependencies and run your app\ncd my-project\nyarn # or npm install\nyarn run dev # or npm run dev\n```\n\n#### electron에 관해서\n\n선택사항이지만 프로젝트를 스캐폴딩 후에 electron 버전을 잠그는 것을 권장합니다.이렇게하면 같은 프로젝트에서 작업하는 다른 개발자가 다른 버전으로 개발하는 것을 방지 할 수 있습니다. Electron은 릴리스를 자주 사용하므로 기능이 항상 변경 될 수 있습니다. [More Info](http://electron.atom.io/docs/tutorial/electron-versioning/).\n\n#### Windows 사용자를 위한 노트\n\n`node-gyp`에 대한 `npm install` 중에 오류가 발생하면 시스템에 적절한 빌드 도구가 설치되어 있지 않을 가능성이 높습니다. 빌드 도구에는 Python 및 Visual Studio와 같은 항목이 포함됩니다. [@felixrieseberg](https://github.com/felixrieseberg)에게 감사드립니다. 이 프로세스를 단순화하는 데 도움이 되는 몇 가지 패키지가 있습니다.\n\n우리가 점검해야 할 첫 번째 항목은 npm 버전이 구식이 아닌지 확인하는 것입니다. [`npm-windows-upgrade`](https://github.com/felixrieseberg/npm-windows-upgrade)를 사용하여 수행 할 수 있습니다. 만약 yarn을 사용한다면, 여러분은 이러한 확인을 건너뛸 수 있습니다.\n\n완료되면 필요한 빌드 도구를 이어서 설정할 수 있습니다. [`windows-build-tools`](https://github.com/felixrieseberg/windows-build-tools)를 사용하면 대부분의 더러운 작업이 완료됩니다. 전역으로 설치하면 Visual C ++ 패키지, Python 등을 차례로 설치하게 됩니다.\n\n이 시점에서 성공적으로 설치해야하지만, 그렇지 않은 경우에는 Visual Studio를 새로 설치해야합니다. 이는 electron-vue의 문제가 아님에 주의하세요. \\(Windows는 때로는 어려울 수 있습니다. ¯\\\\\\_\\(ツ\\)\\_/¯\\).\n"
  },
  {
    "path": "docs/ko/global_configuration.md",
    "content": "# Global Configuration\n\nelectron-vue uses the [webpack](https://github.com/webpack/webpack) module loader system for pre-processing, bundling, and building your app. The default settings are rather common and should meet most of your needs. An additional `config.js` is provided in the root directory for quick adjustments. Further customization can be made by directly adjusting `webpack.main.config.js` and `webpack.renderer.config.js`.\n\n#### `config.js`\n**Note**: Some options may differ based on the settings choosen during `vue-cli` scaffolding.\n\n```js\n{\n  // Name of electron app\n  // Will be used in production builds\n  name: 'app',\n\n  // Use ESLint\n  // Further changes can be made in `.eslintrc.js`\n  eslint: true,\n\n  // webpack-dev-server port\n  port: 9080,\n\n  // electron-packager options\n  // See `Building you app` for more info\n  building: {\n    arch: 'x64',\n    asar: true,\n    dir: path.join(__dirname, 'app'),\n    icon: path.join(__dirname, 'app/icons/icon'),\n    ignore: /\\b(src|index\\.ejs|icons)\\b/,\n    name: pkg.name,\n    out: path.join(__dirname, 'builds'),\n    overwrite: true,\n    platform: process.env.PLATFORM_TARGET || 'all'\n  }\n}\n```\n"
  },
  {
    "path": "docs/ko/main-process.md",
    "content": "# Main Process\n\n> Electron에서 package.json의 main 스크립트를 실행하는 프로세스를 main 프로세스라고 합니다. main 프로세스에서 실행되는 스크립트는 웹 페이지를 생성하여 GUI를 표시 할 수 있습니다.\n\n[**Electron 문서**](http://electron.atom.io/docs/tutorial/quick-start/#main-process)**로 부터**\n\n---\n\n`main` 프로세스는 근본적으로 완전한 Node 환경이기 때문에 두 파일 이외의 초기 프로젝트 구조는 존재하지 않습니다.\n\n#### `src/main/index.js`\n\n이 파일은 애플리케이션의 main 파일이며 `electron`을 부팅하는 파일 입니다. `webpack`의 프로덕션 용 엔트리 파일로도 사용됩니다. 모든 `main` 프로세스 작업은 여기서 시작해야 합니다.\n\n#### `app/src/main/index.dev.js`\n\n이 파일은 특별히 `electron-debug` & `vue-devtools`를 설치하기 때문에 개발에만 사용됩니다. 이 파일을 수정할 필요가 없지만 개발 요구사항을 확장하는 데 사용할 수 있습니다.\n\n## `__dirname` & `__filename` 사용에 관하여\n\n`webpack`을 사용하여 `main` 프로세스는 번들되기 때문에, `__dirname` & `__filename`은 프로덕션에서 예상 값을 **제공하지 않습니다**. [**File Tree**](/file-tree.md)를 보면, main.js가 `dist/electron` 폴더 안에 위치 함을 알 수 있습니다. 이 지식을 바탕으로 적절하게 `__dirname` & `__filename`를 사용하세요.\n\n`static/` **assets 디렉토리에 대한 경로가 필요한 경우, **[**Static Assets 사용법**](/using-static-assets.md)을 읽으세요. __static 변수는 정말 유용합니다.**\n\n```\napp.asar\n├─ dist\n│  └─ electron\n│     ├─ static/\n│     ├─ index.html\n│     ├─ main.js\n│     └─ renderer.js\n├─ node_modules/\n└─ package.json\n```\n\n\n\n"
  },
  {
    "path": "docs/ko/meta.md",
    "content": "# Meta\n\n### Thank You\n\nWow, thank you guys so much for helping make electron-vue one of the top 3`vue-cli`templates \\(that I can find\\) on GitHub. I never thought this project would ever take off like it has today. Thinking back, I originally made this boilerplate \\(in **May 2016**\\) for a personal closed sourced project and decided to open source \\(the boilerplate itself\\) when I knew I had a majority of the pieces together. Fast-forward to today and there have been so many new features implemented and amazing support from the community. I also want to give a special shoutout to those in the community helping answer issues when I'm not able to. You guys have absolutely no obligation to do anything but you do anyway, and I am grateful for that.\n\nIf you are reading this, then I can almost assume you really do enjoy electron-vue. A lot of time was spent creating this boilerplate. If you are feeling generous, then feel free to leave a tip if you want. Surely future development of electron-vue is not dependent upon donations, but its always an option if you decide to use it.\n\n#### [**PayPal.me**](https://www.paypal.me/simulatedgreg/5) \n\n\n\n"
  },
  {
    "path": "docs/ko/migration-guide.md",
    "content": "# Migration Guide\n\nThe following documentation attempts to explain how migrating your project _should_ be accomplished, but may not be a full proof method as overall project structure is always up for change.\n\n1. Scaffold a fresh version of electron-vue using `vue init simulatedgreg/electron-vue my-project`\n2. Copy over current project `src` files into the new scaffold's `src` directory\n3. Copy over `package.json` dependencies from current project to the new scaffold's `package.json`\n4. Install dependencies with `yarn` or `npm install`\n5. Run project in development mode \\(`yarn run dev` or `npm run dev`\\)\n6. Watch console for errors to fix\n\nJust as previously mentioned above, there isn't a full proof method for migrating to a new scaffold, but these are typically going to be the major steps to get you nearly all the way there. Any personal modifications to project structure or handling of assets will be up to you or your team to migrate. Make sure to check out the rest of the documentation as it will always reflect the current version of electron-vue from the `master` branch.\n\n"
  },
  {
    "path": "docs/ko/miscellaneous.md",
    "content": ""
  },
  {
    "path": "docs/ko/new-releases.md",
    "content": "# New Releases\n\nelectron-vue has evolved greatly since its initial creation in May of 2016 and has introduced many new fantastic features. Can you believe there was a time `vue-cli` scaffolding wasn't supported? Development of new features is not planned to end anytime soon. The only down side to new bells & whistles every now and then is having your project stuck on an older scaffold. Since electron-vue takes advantage of `vue-cli` there unfortunately isn't a structured way to _version_ the boilerplate or make it _updatable_.\n\nMajor updates of electron-vue will be made through GitHub Milestones and will include many new features/bug fixes at a time, making these releases the optimal time to [migrate](/migration-guide.md) any existing projects to a newer scaffold. These milestones are not usually planned, but arise as feature requests add up in the issue tracker.\n\n### Past Milestones\n\n#### [Multiplex](https://github.com/SimulatedGREG/electron-vue/milestone/1?closed=1)\n\n* Migration to `webpack` 2\n* Support for `electron-builder`\n* Support for `main` process bundling\n* General bugfixing\n\n#### [Minimize](https://github.com/SimulatedGREG/electron-vue/issues/171)\n\n* Migration to single `package.json` structure\n* Travis CI / AppVeyor configs for `electron-builder` users\n* Minimal web output of `renderer` process\n* Migration to `axios`\n* Full support for `main` process bundling\n* Rewrite of development and build scripts\n* Migration to `babili` to remove the need of transpiling down completely to ES5\n* Support for `static/` assets when using modules that require a full path \\([`__static`](/using-static-assets.md)\\)\n\n\n\n"
  },
  {
    "path": "docs/ko/npm_scripts.md",
    "content": "# NPM Scripts\n\n개발 프로세스에 대한 중복 작업을 제거하려면, 사용 가능한 NPM 스크립트 중 일부를 기록해 두세요. 다음 명령은 프로젝트의 루트 디렉토리에서 실행해야합니다. `yarn run <command>`를 사용하여 아래 명령어 중 하나를 실행할 수도 있습니다.\n\n### `npm run build`\n\n프로덕션과 패키지 용 앱을 빌드 합니다. 더 자세한 정보는 [**Building Your App**](building_your_app.md) 섹션을 참조하세요.\n\n### `npm run dev`\n\n개발 중인 앱을 실행합니다.\n\n### `npm run lint`\n\n모든 `src/`와 `test/`의 JS & Vue component 파일을 Lint 합니다.\n\n### `npm run lint:fix`\n\n모든 `src/`와 `test/`의 JS & Vue component 파일을 Lint하고 문재 해결을 시도합니다.\n\n### `npm run pack`\n\n`npm run pack:main` & `npm run pack:renderer` 둘 다 실행합니다. 이러한 명령어를 사용 할 수 있지만, `npm run build`로 이 단계를 처리 할 때 수동으로 수행하는 경우는 많지 않습니다.\n\n### `npm run pack:main`\n\n`main` 프로세스 소스 코드를 번들하기 위해 webpack을 실행합니다.\n\n### `npm run pack:renderer`\n\n`renderer` 프로세스 소스 코드를 번들하기 위해 webpack을 실행합니다.\n\n### `npm run unit`\n\nKarma와 Jasmine로 단위 테스트를 실행합니다. 자세한 내용은 [**Unit Testing**](unittesting.md)를 참조하세요.\n\n### `npm run e2e`\n\nSpectron + Mocha로 end-to-end 테스트를 실행합니다. 자세한 내용은 [**End-to-end Testing**](end-to-end_testing.md)를 참조하세요.\n\n### `npm test`\n\n`npm run unit` & `npm run e2e` 둘 다 실행합니다. 자세한 내용은 [**Testing**](testing.md)을 참조하세요.\n"
  },
  {
    "path": "docs/ko/project_structure.md",
    "content": "# 프로젝트 구조\n\nelectron-vue 프로젝트 구조는 Electron App을 만들 때와  조금 다릅니다. 이전에 공식 [`vuejs-templates/webpack`](https://github.com/vuejs-templates/webpack) 설정을 사용했다면, 구조가 매우 유사하다고 느낄 것 입이다. \n이 섹션의 문서는 보일러 플레이트가 작동하는 방법의 개요와 애플리케이션을 빌드 할 때의 차이점을 설명하려고합니다. 이번 섹션의 문서는 보일러플레이트가 어떻게 작동하는지에 대한 일반적인 개요와 애플리케이션을 만들 때의 차이점을 설명합니다.\n\n### 단일 `package.json` 설정\n\n예전에는 두 개의 `package.json` 설정이 필요 했지만 [@electron-userland](https://github.com/electron-userland)의 노력 덕분에 [`electron-packager`](https://github.com/electron-userland/electron-packager)와 [`electron-builder`](https://github.com/electron-userland/electron-builder) 둘 다 지금은 완전히 단일 `package.json` 설정을 지원합니다.\n\n#### `dependencies`\n\ndependencies는 최종 프로덕션 앱에 **포함 됩니다**. 그러므로 애플리케이션에 특정 모듈이 필요하다면 여기에 설치하세요!\n\n#### `devDependencies`\n\ndevDependencies는 최종 프로덕션 앱에 **포함되지 않습니다**. 여기에는 빌드 스크립트, `webpack` loaders 등과 같은 개발을 위해 특별히 필요한 모듈을 설치할 수 있습니다.\n\n#### Native NPM Modules 설치하기\n\n우리는 네이티브 npm 모듈이 electron을 고려하여 빌드되었는지 확인해야합니다. 그러기 위해 우리는 [`electron-rebuild`]를 사용 할 수 있습니다.(https://github.com/electron/electron-rebuild), 그러나 더 간단하게하기 위해, 많은 작업을 처리하는 [`electron-builder`](https://github.com/electron-userland/electron-builder) 빌드 도구를 사용하는 것을 더욱 추천합니다.\n\n### `main` 프로세스에 관해서\n\n개발 중에 `src/main/index.dev.js`를 주목 했을 수도 있습니다. 이 파일은 특별히 개발 용으로 사용되며 dev-tools를 설치하는 데 사용됩니다. 이 파일은 수정할 필요가 없지만 개발 요구를 확장하는 데 사용할 수 있습니다. 빌드가 끝나면 `webpack`은 `src/main/index.js`와 함께 번들을 생성하여 엔트리 파일로 만듭니다."
  },
  {
    "path": "docs/ko/renderer-process.md",
    "content": "# Renderer Process\n\n> Electron는 웹 페이지를 표시하는 데 Chromium을 사용하므로 Chromium의 다중 프로세스 아키텍처도 사용됩니다. Electron의 각 웹 페이지는 렌더러 프로세스라고하는 자체 프로세스에서 실행됩니다.\n>\n> 일반 브라우저에서 웹 페이지는 일반적으로 샌드박스 환경에서 실행되며 기본 리소스에 대한 액세스가 허용되지 않습니다. 그러나 Electron 사용자는 웹페이지에서 운영체제와 상호작용하는 Node.js API를 사용 할 수 있습니다.\n\n[**Electron 문서**](http://electron.atom.io/docs/tutorial/quick-start/#renderer-process)**에서**\n\n---\n\n## `vue`와 `vuex`에 관하여\n\n### vue components\n\nVue components에 익숙하지 않은 경우, [이걸](http://vuejs.org/v2/guide/single-file-components.html) 읽어 주세요. components를 사용하면 대규모의 복잡한 애플리케이션을 보다 구조화 할 수 있습니다. 각 component에는 자체 CSS, 템플릿 및 JavaScript 기능을 캡슐화하는 기능이 있습니다.\n\nComponents `src/renderer/components`에 저장됩니다. child components를 만들 때 parent component의 이름이 있는 새 폴더 안에 배치하는 것이 일반적인 구조 관례 입니다. 이 관례는 특히 다른 경로로 조정할 때 특히 유용합니다.\n\n```\nsrc/renderer/components\n├─ ParentComponentA\n│  ├─ ChildComponentA.vue\n│  └─ ChildComponentB.vue\n└─ ParentComponentA.vue\n```\n\n### vue routes\n\n`vue-router` 대한 자세한 내용은 [여기](https://github.com/vuejs/vue-router)를 클릭하세요. 간단히 말해, Electron 애플리케이션을 만들 때, 단일 페이지 애플리케이션을 만드는 것이 훨씬 실용적이므로 `vue-router`를 사용하는 것이 좋습니다. 많은 수의 BrowserWindows를 관리하고 모든 정보를 교환하고 싶습니까? 아마도 그렇지 않을 겁니다.\n\nRoutes는 `src/renderer/router/index.js`에 저장되며 다음과 같이 정의 됩니다.\n\n```js\n{\n  path: '<routePath>',\n  name: '<routeName>',\n  component: require('@/components/<routeName>View')\n}\n```\n\n`<routePath>`와 `<routeName>`은 둘 다 변수 입니다. 이러한 routes는 `src/renderer/App.vue`에서 `<router-view>` 지시문을 사용하여 components 트리에 연결됩니다.\n\n##### Notice\n\n`vue-router`를 사용하는 경우, [**HTML5 History Mode**](http://router.vuejs.org/en/essentials/history-mode.html)를 사용하지 마세요. 이 모드는 http 프로토콜을 통해 파일을 제공하기 위한 것이고 프로덕션 빌드에서 Electron이 파일을 제공하는 `file` 프로토콜에서는 제대로 작동하지 않습니다. 디폴트 `hash` 모드는 필요한 것 입니다.\n\n### vuex modules\n\n`vuex`를 설명하는 것은 쉬운 일이 아니기 때문에 어떤 문제를 해결하려고하고 있는지, 어떻게 작동 하는지를 더 잘 이해하기 위해 [이걸](https://vuex.vuejs.org/guide/) 읽어 보시기 바랍니다.\n\nelectron-vue는 `vuex`의 모듈 구조를 이용하여 여러 데이터 stores를 만들고 `src/renderer/store/modules`에 저장합니다.\n\n여러 데이터 저장소를 보유하면 조직에 적합 할 수 있지만 각각을 가져와야하는 것은 귀찮습니다. 그러나 `src/renderer/store/modules/index.js`가 우리를 위해 더러운 작업을하기 때문에 무서워하지 마세요! 이 작은 스크립트는 `src/renderer/store/index.js`가 모든 모듈을 한 번에 가져올 수 있도록합니다. 모든 것이 이해가되지 않는다면, 주어진 `Counter.js` 모듈을 쉽게 복제 할 수 있다는 것을 알면 \"마술처럼\" 로드 될 것 입니다.\n"
  },
  {
    "path": "docs/ko/savingreading-local-files.md",
    "content": "# Read & Write Local Files\n\n`electron` 사용의 큰 이점 중 하나는 사용자의 파일 시스템에 액세스 할 수 있다는 것 입니다. 여러분은 로컬 시스템에서 파일을 읽고 쓸 수 있습니다. Chromium 제한을 피하고 애플리케이션의 내부 파일에 글을 쓰려면 `electron`의 API, 특히 [`app.getPath(name)`](https://electron.atom.io/docs/api/app/#appgetpathname) 함수를 사용해야합니다. 이 도우미 메소드는 사용자의 데스크탑, 시스템 임시 파일 등과 같은 시스템 디렉토리에 대한 파일 경로를 가져올 수 있습니다.\n\n### Use Case\n\n애플리케이션를 위한 로컬 데이터베이스 저장소를 갖기를 원한다고 가정 해 봅시다. 이 예제에서는 [`nedb`](https://github.com/louischatriot/nedb)를 사용하여 시연합니다.\n\n```bash\nyarn add nedb # or npm install nedb --save\n```\n\n**src/renderer/datastore.js**\n\n여기서는 NeDB를 설정하고 `userData` 디렉토리를 가리 킵니다. 이 공간은 애플리케이션을 위해 특별히 예약되어 있습니다. 그러므로 다른 프로그램이나 다른 사용자의 상호작용이 이 파일 공간을 변경해서는 안된다는 확신을 가질 수 있습니다. `renderer` 프로세스에서 `datastore.js`를 가져와서 소비 할 수 있습니다.\n\n```js\nimport Datastore from 'nedb'\nimport path from 'path'\nimport { remote } from 'electron'\n\nexport default new Datastore({\n  autoload: true,\n  filename: path.join(remote.app.getPath('userData'), '/data.db')\n})\n```\n\n**src/renderer/main.js**\n\n단계를 더 진행하기 위해, datastore를 `src/renderer/main.js`로 가져와서 Vue 프로토타입에 연결할 수 있습니다. 이렇게 하면, 모든 component 파일에서 `this.$db`를 사용하여 datastore API에 액세스 할 수 있게되었습니다.\n\n```js\nimport db from './datastore'\n\n/* Other Code */\n\nVue.prototype.$db = db\n```\n\n\n\n"
  },
  {
    "path": "docs/ko/testing.md",
    "content": "# Testing\n\nelectron-vue는 `renderer` 프로세스에 대한 단위 테스팅과 end-to-end 테스트를 모두 지원하며 공식 `vuejs-templates/webpack` 보일러 플레이트에서 제공되는 테스트 설정에 크게 영향을 받습니다. \n`vue-cli` 스캐폴딩 중 테스트 지원 옵션을 선택 할 수 있습니다.\n\n## [Unit testing](unittesting.md)\n\nKarma + Mocha로 유닛 테스트 실행합니다.\n\n```bash\nnpm run unit\n```\n\n## [End-to-end testing](end-to-end_testing.md)\n\nSpectron + Mocha로 end-to-end 테스트 실행합니다.\n\n```bash\nnpm run e2e\n```\n\n## 모든 테스트 실행\n\n```bash\nnpm test\n```\n\n### CI 테스팅에 관하여\n\n스캐폴딩 할 때 `electron-builder`를 빌드 도구로 사용하기로 결정했다면 `darwin`, `linux` 그리고 `win32` 용 Travis CI 및 AppVeyor에서 애플리케이션을 쉽게 테스트 할 수 있습니다. `.travis.yml` 와 `appveyor.yml` 둘 다 내부에서 주석 처리 된 섹션을 찾을 수 있고 곧바로 주석을 해제하여 테스트를 수행 할 수 있습니다. 자세한 내용은 [**Automated Deployments using CI**](using-electron-builder.md#automated-deployments-using-ci)를 읽으세요.\n\n"
  },
  {
    "path": "docs/ko/unittesting.md",
    "content": "# Unit Testing\n\nelectron-vue는 유닛 테스트를 위해 [Karma](https://karma-runner.github.io/1.0/index.html) 테스트 러너, \\(Chai[Chai](http://chaijs.com/)와 함께\\)[Mocha](https://mochajs.org/) 테스트 프레임워크를 사용합니다.\n\nMocha와 Chai는 각각 `karma-mocha`와 `karma-chai`를 사용하여 통합되므로 `expect`와 같은 모든 API는 테스트 파일 전역에서 사용할 수 있습니다.\n\n### Running Tests\n\n```bash\n# Begin Karma\nnpm run unit\n```\n\n### File Structure\n\n```\nmy-project\n├─ test\n|  ├─ unit\n│  │  ├─ specs/\n│  │  ├─ index.js\n└─ └─ └─ karma.conf.js\n```\n\n대부분의 경우, index.js와 karma.conf.js 둘 다 무시하고 specs/ 작성에만 집중할 수 있습니다.\n\n**대부분의 경우,** `index.js` **와** `karma.conf.js` **둘 다 무시하고** `specs/` **작성에만 집중 할 수 있습니다.**\n\n#### `specs/`\n\n이 디렉토리 안은 실제 테스트가 작성되는 곳이 있습니다. webpack의 힘으로 ES2015 및 지원되는 로더에 대한 모든 액세스 권한을 갖게됩니다.\n\n#### `index.js`\n\n`karma-webpack`에서 사용하는 엔트리 파일입니다. 이 파일의 목적은 모든 테스트 및 소스 코드를 \"한 번에\" 수집하는 것입니다.\n\n#### `karma.conf.js`\n\n여기서 spec/coverage 리포터와 함께 설정한 실제 `karma` 구성을 찾을 수 있습니다. 추가 사용자 정의는 [official karma documentation](http://karma-runner.github.io/1.0/config/configuration-file.html)를 따라 만들 수 있습니다.\n\n### Mocking Dependencies\n\nelectron-vue는 기본적으로  [`inject-loader`](https://github.com/plasticine/inject-loader)가 설치되어 있습니다. \nVue 컴포넌트 파일 사용법은 [`vue-loader` docs on testing with mocks](http://vue-loader.vuejs.org/en/workflow/testing-with-mocks.html)를 참조하세요.\n\n"
  },
  {
    "path": "docs/ko/using-electron-builder.md",
    "content": "# [`electron-builder`](https://github.com/electron-userland/electron-builder) 사용하기\n\n`electron-builder`가 생성한 모든 빌드는 `build` 디렉토리에서 찾을 수 있습니다.\n\n#### 빌드하기\n\n```bash\nnpm run build\n```\n\n#### 압축 해제한 디렉토리 빌드하기\n\n완전한 installer가 없는 간단한 실행 파일을 생성합니다. 빠른 테스트에 유용합니다.\n\n```bash\nnpm run build:dir\n```\n\n### Default building configuration\n\nFurther customization can be made at `package.json` in accordance to `electron-builders`'s options found [here](https://github.com/electron-userland/electron-builder/wiki/Options).\n\n```js\n\"build\": {\n  \"productName\": \"ElectronVue\",\n  \"appId\": \"org.simulatedgreg.electron-vue\",\n  \"dmg\": {\n    \"contents\": [\n      {\n        \"x\": 410,\n        \"y\": 150,\n        \"type\": \"link\",\n        \"path\": \"/Applications\"\n      },\n      {\n        \"x\": 130,\n        \"y\": 150,\n        \"type\": \"file\"\n      }\n    ]\n  },\n  \"directories\": {\n    \"output\": \"build\"\n  },\n  \"files\": [\n    \"dist/electron\",\n    \"node_modules/\",\n    \"package.json\"\n  ],\n  \"mac\": {\n    \"icon\": \"build/icons/icon.icns\"\n  },\n  \"win\": {\n    \"icon\": \"build/icons/icon.ico\"\n  },\n  \"linux\": {\n    \"icon\": \"build/icons\"\n  }\n}\n```\n\n## CI를 이용한 자동화 된 배치\n\nelectron-vue의 `electron-builder` 구성을 사용하면 자동화된 배치를 위해 `appveyor.yml`와 `.travis.yml`도 제공됩니다. 두 설정 파일은 electron 애플리케이션 빌드와 artifacts를 Github release, Bintray 등에 푸시하는 설정 입니다. Travis CI는 `linux`와 `darwin` \\(macOS\\)을 빌드하는 데 사용되는 반면 AppVeyor는 `win32`를 빌드하는 데 사용됩니다. 두 서비스 모두 OSS 프로젝트에서 무료입니다.\n\n#### Setting up Travis CI/AppVeyor\n\n1. [Travis CI](https://travis-ci.org/getting_started) / [AppVeyor](https://www.appveyor.com/)에서 계정을 만드세요.\n2. 여러분의 electron-vue 프로젝트가 있는 Github 저장소를 링크하세요.\n3. [https://github.com/settings/tokens](https://github.com/settings/tokens) 방문하고 **Generate new token **을 누르세요.\\(이 토큰은 Travis CI & AppVeyor 둘 다에 사용 될 수 있습니다.\\)\n   1. **Token description** 설정하세요.\n   2. **public\\_repo **스코프를 확인하세요.\n   3. **Generate token**를 누르세요.\n4. 나중에 새 토큰을 복사하고 저장하세요.\n5. Travis CI / AppVeyor에서 원격 저장소 설정을 열고 새로운 **Environment Variable**를 추가하세요.\n   1. 변수의 이름을 `GH_TOKEN`으로 설정하세요.\n   2. 변수의 값을 방금 생성한 GitHub 액세스 토큰으로 설정하세요.\n   3. 새로운 변수를 **저장**하고 암호화가 사용 가능한지 확인하세요.\n   \n이 지점에서, 모든 것이 설정되어야 합니다. Travis CI/AppVeyor는 기본적으로 `master` 브랜치에 대한 푸시를 감시합니다. 푸시가 이루어지면 Travis CI/AppVeyor는 원격 저장소를 서버에 복제하고 빌드 프로세스를 시작합니다. 최종 단계에서 `electron-builder`는 `GH_TOKEN` 환경 변수를 보고 초안 릴리스를 만들고 공개 GitHub 저장소에 artifacts를 업로드 합니다. 이 시점에서 초안 릴리스를 편집 한 다음이를 세상에 퍼블릭 할 수 있습니다. 릴리스를 퍼블리싱 한 후, `package.json`을 업데이트하여 향후 릴리스가 새 버전 번호로 표시되는지 확인하세요.\n\n#### 자동 업데이트\n\n애플리케이션에서 자동 업데이트를 수신하도록 설정하는 것은 멋진 기능이지만 [**Code Signing**](https://github.com/electron-userland/electron-builder/wiki/Code-Signing)이 필요하다는 것을 알고 있어야합니다. [여기](https://www.electron.build/code-signing)에 설명 된 `electron-builder` 요구 사항을 기반으로 몇 가지 환경 변수를 추가하여 Code Signing을 설정할 수 있습니다. 인증서를 설정하고 나면 `electron-updater` 를 설치하고 `src/main/index.js`의 하단 코드 덩어리를 주석해지하여 자동 업데이트를 활성화 할 수 있습니다.\n\n대부분의 사람들과 같은 멋진 코드 서명 인증서가 없으면 GitHub API를 사용하여 새 릴리스를 확인할 수 있습니다. 새로운 릴리스가 발견되면 애플리케이션 내에서 새 빌드를 다운로드하고 설치할 수 있는 다운로드 페이지로 사용자를 안내하는 알림을 제공하세요.`electron-builder`가 제공하는 놀라운 설치 프로그램 덕분에 사용자는 현재 버전을 설치 제거 할 필요가 없으며 새 설치는 웹 저장소 또는 `userData` 파일을 계속 유지하면서 이전 버전을 대체합니다.\n\n"
  },
  {
    "path": "docs/ko/using-electron-packager.md",
    "content": "# [`electron-packager`](https://github.com/electron-userland/electron-packager) 사용하기\n\n`electron-packager`가 생성 한 모든 빌드는 `build` 폴더에서 찾을 수 있습니다.\n\n#### 모든 플랫폼 빌드\n\n모든 운영체제가 다른 모든 플랫폼을 위한 빌드를 할 수있는 것은 아닙니다.\n\n```bash\nnpm run build\n```\n\n#### 특정 플랫폼 빌드\n\n플랫폼에는 `darwin`, `mas`, `linux` 및 `win32`가 포함됩니다.\n\n```bash\n# build for darwin (macOS)\nnpm run build:darwin\n```\n\n#### Cleaning\n\n`build` 폴더에 있는 모든 빌드를 제거합니다.\n\n```bash\nnpm run build:clean\n```\n\n### non-Windows 사용자를 위한 주의사항\n\nnon-Windows 플랫폼을 사용하여 **사용자 정의 아이콘이 있는** Windows를 위한 빌드를 하려면 [wine](https://www.winehq.org/)을 설치해야합니다. [More Info](https://github.com/electron-userland/electron-packager#building-windows-apps-from-non-windows-platforms).\n\n### 디폴트 빌드 구성\n\n[여기서](https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options) `electron-packager`의 옵션에 찾아서 `.electron-vue/build.config.js`에 추가하여 사용자 정의를 할 수 있습니다. 빌드 애플리케이션에 적용된 이름은 `package.json`의 `productName` 값으로 설정됩니다.\n\n```js\n{\n    // Target 'x64' architecture\n    arch: 'x64',\n\n    // Compress app using 'electron/asar'\n    asar: true,\n\n    // Directory of the app\n    dir: path.join(__dirname, '../'),\n\n    // Set electron app icon\n    // File extensions are added based on platform\n    //\n    // If building for Linux, please read\n    // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#icon\n    icon: path.join(__dirname, '../build/icons/icon'),\n\n    // Ignore files that would bloat final build size\n    ignore: /(^\\/(src|test|\\.[a-z]+|README|yarn|static|dist\\/web))|\\.gitkeep/,\n\n    // Save builds to `builds`\n    out: path.join(__dirname, '../build'),\n\n    // Overwrite existing builds\n    overwrite: true,\n\n    // Environment variable that sets platform\n    platform: process.env.BUILD_TARGET || 'all'\n}\n```\n\n\n\n"
  },
  {
    "path": "docs/ko/using-static-assets.md",
    "content": "# Static Assets 사용하기\n\n이전에 공식 `vuejs-templates/webpack` 보일러플레이트를 사용했다면, `static/` 디렉토리에 익숙해야합니다. 여기에 `main`과 `renderer` 프로세스 둘 다가 소비 할 수 있는 Static assets을 배치 할 수 있습니다. Vue 애플리케이션에서 이러한 assets을 사용하는 것은 간단하지만 전체 경로가 필요한 `fs` 및 다른 모듈을 사용하는 것은 다소 까다로울 수 있습니다. 감사하게도 electron-vue는 개발 및 프로덕션 환경에서 `static/` 디렉토리 경로를 생성하는 `__static` 변수를 제공합니다.\n\n### Vue Components에서 'src' 태그 사용 사례\n\n이미지를 로드하는 component가 있지만 다른 작업이 완료 될 때까지 이미지의 경로를 알 수 없다고 가정 해 보겠습니다. 작업을 단순하게 유지하기 위해 `<img>`의 src 바인드하기 위해 `data` 변수를 합시다.\n\n**SomeComponent.vue**\n\n```html\n<template>\n  <img v-bind:src=\"imageUrl\">\n</template>\n\n<script>\n  export default {\n    data () {\n      // notice the url starts with `static/`\n      return { imageUrl: 'static/imgs/unsplash.png' }\n    }\n  }\n</script>\n```\n\n여기서 `webpack`은 `unsplash.png` 이미지를 번들로 제공하지 않으며 애플리케이션은 해당 asset을 `static/imgs/unsplash.png` 디렉토리에서 찾습니다. `vue-loader` 덕분에 모든 더러운 작업이 완료되었습니다.\n\n### Use Case within JS with `fs`,`path` and `__static`\n\n`fs`를 사용하여 애플리케이션에서 읽을 static asset이 있다고 가정 해 봅시다. 근대 개발과 프로덕션 둘 다에서  `static/` 디렉토리에 대한 신뢰할 수있는 경로를 얻는 방법은 무엇입니까? electron-vue는 `static/` 디렉토리에 대한 적절한 경로를 생성하는 `__static`이라는 전역 변수를 제공합니다. 다음은 개발과 프로덕션 둘 다에서 간단한 텍스트 파일을 읽는 방법입니다.\n\n**static/someFile.txt**\n\n```txt\nfoobar\n```\n\n**SomeFile.js \\(**`main`** or **`renderer`** process\\)**\n\n```js\nimport fs from 'fs'\nimport path from 'path'\n\nlet fileContents = fs.readFileSync(path.join(__static, '/someFile.txt'), 'utf8')\n\nconsole.log(fileContents)\n// => \"foobar\"\n```\n\n프로덕션 환경에서는 기본적으로 모든 파일이 [`asar`](https://github.com/electron/asar)로 압축되어 있으므로 `__static`는 적극 권장합니다. 왜냐하면 `static/` 폴더 내의 assets은 오직 `electron`에서 액세스 할 수 있기 때문입니다. electron은 이 동작을 알고 있습니다. 예를 들어 외부 프로그램에서 열 수있는 파일을 사용자에게 배포하려는 경우, 먼저 애플리케이션의 해당 assets을 사용자의 문서 공간 또는 데스크톱으로 복사해야합니다.[`shell.openItem()`](https://electron.atom.io/docs/api/shell/#shellopenitemfullpath) electron API를 사용하여 해당 assets을 열 수 있습니다.\n\n이 상황에서 다른 대안은 특정 파일을 프로덕션 환경의 `asar` 아카이브에서 \"unpack\"하도록 `electron-packager`/`electron-builder`를 구성하는 것 입니다. electron-vue는 이 방법을 지원할 계획이 없습니다. 이 이슈와 관련된 것 또는 이를 설정하는 방법은 닫힙니다.\n\n"
  },
  {
    "path": "docs/ko/using_css_frameworks.md",
    "content": "# Using CSS Frameworks\n\n생각할 필요가 없는 것처럼 보일지 모르지만, 이미 설치되어있는 [`style-loader`](https://github.com/webpack/style-loader)를 사용하여 webpack으로 써드 파티 CSS 라이브러리를 가져와야합니다.\n\n## Use Case\n\n애플리케이션에 [bootstrap](http://getbootstrap.com/), [bulma](http://bulma.io/) 또는 [materialize](http://materializecss.com/)를 사용하려고한다고 가정 해봅시다. 계속해서 평소처럼 `npm` 에서 라이브러리를 설치하세요. 다만 `index.ejs`에 asset을 첨부하는 대신 특별히 `src/renderer/main.js` 자바스크립트에 CSS를 import 하세요.\n\n#### Example\n\n`bulma`를 설치합니다.\n\n```bash\nnpm install bulma --save\n```\n\n`src/renderer/main.js`에 이 라인을 추가합니다.\n\n```bash\nimport 'bulma/css/bulma.css'\n```\n\n또는 component 파일 내부에서 `bulma`를 포함 할 수도 있습니다.\n\n**App.vue**\n\n```html\n<style>\n  @import \"~bulma/css/bulma.css\";\n</style>\n```\n\n이제 `webpack`은 애플리케이션 용 `bulma`를 로드하여 프로덕션 빌드에서 사용할 수 있게 합니다.\n"
  },
  {
    "path": "docs/ko/using_pre-processors.md",
    "content": "# 전처리기 사용하기\n\n[`webpack`](https://github.com/webpack/webpack)과 함께 [`vue-loader`](https://github.com/vuejs/vue-loader)를 사용하면 큰 노력을 들이지 않고도 Vue components 파일에서 직접 HTML/CSS/JS를 전-처리 할 수 ​​있다는 이점이 있습니다. 이에 대한 자세한 내용은 [**여기**](https://vuejs.org/v2/guide/single-file-components.html)를 참조하세요.\n\n## Use Case\n\nCSS를 사전 처리하기 위해 Sass/SCSS를 사용해야한다고 가정 해봅시다. 먼저 다음 구문을 처리 할 적절한 `webpack` loader를 설치해야합니다.\n\n#### `sass-loader` 설치하기\n\n```bash\nnpm install --save-dev sass-loader node-sass\n```\n\n필요한 로더가 설치되면, 거의 모든 것이 끝난 것 입니다.  `vue-loader`는 마술처럼 나머지를 처리합니다. 이제 Vue component 파일에 `lang=\"sass\"` 또는 `lang=\"scss\"`를 쉽게 추가 할 수 있습니다 `sass-loader`의 의존성 패키지인 `node-sass`도 설치했음을 주의하세요.\n\n#### `lang` 속성 적용하기\n\n그래서...\n\n```html\n<style>\n  body {\n    /* CSS */\n  }\n</style>\n```\n\n...이제 된다...\n\n```html\n<style lang=\"scss\">\n  body {\n    /* SCSS */\n  }\n</style>\n```\n\n다른 전처리기에 대해서도 같은 원칙이 적용됩니다. 그러므로 JS에 coffeescript가 필요하다면, [coffeescript-loader](https://github.com/webpack/coffee-loader)를 설치하고 `lang=\"coffeescript\"` 속성을 `<script>` 태그에 적용하기만 하면됩니다.\n\n이 기능의 고급 사용법은 [vue-loader documentation](http://vue-loader.vuejs.org/en/configurations/pre-processors.html) 설명서로를 참고하세요.\n\n## Sass/SCSS 전역 변수 사용하기\n\nCSS 구문에 Sass/SCSS를 사용하는 경우, 모든 Vue component 파일에서 global variables/mixins를 사용할 수 있다면 매우 유용할 것 입니다. 여기에 그 방법이 있습니다.\n\n### Use Case\n\n이 예는 모든 Vue component 파일에 `globals.scss`를 적용하는 방법을 보여줍니다. 이 문서는 위에서 언급 한 바와 같이 이미 개발 환경에 `sass-loader`를 설치했다고 가정합니다.\n\n#### 전역 변수를 정의하세요.\n\n**src/renderer/globals.scss**\n\n```scss\n$brand-primary: blue;\n$brand-accent: turquoise;\n```\n\n#### `globals.scss`를 `node-sass`에 직접 넣으세요.\n\n**.electron-vue/webpack.renderer.config.js**에서 `vue-loader` config을 편집하세요.\n\n```js\nloaders: {\n  sass: 'vue-style-loader!css-loader!sass-loader?indentedSyntax=1&data=@import \"./src/renderer/globals\"',\n  scss: 'vue-style-loader!css-loader!sass-loader?data=@import \"./src/renderer/globals\";'\n}\n```\n\n#### 전역 변수를 사용하세요.\n\n**SomeComponent.vue**\n\n```html\n<style lang=\"scss\">\n  body { color: $brand-primary; }\n</style>\n```\n\n\n\n"
  },
  {
    "path": "docs/ko/using_the_file_structure.md",
    "content": "# Using the File Structure\n\nelectron-vue does its best to not force a particular project structure, but does try to follow common Vue & Electron practices. The following documentation describes common practices used in the original project structure.\n\n**If you are unfamiliar with Electron's **`renderer`** and **`main`** processes, please give the first section of the **[**Quick Start**](http://electron.atom.io/docs/tutorial/quick-start)** a good read. It explains, in detail, their differences.**\n\n### [Renderer Process](renderer-process.md)\n\n### [Main Process](main-process.md)\n\n\n\n"
  },
  {
    "path": "docs/ko/vue_accessories.md",
    "content": "# Vue Plugins\n\n\nelectron-vue에는 `vue-cli`의 스캐폴딩 중 설치 할 수 있는 다음의 `vue` 플러그인이 포함되어 있습니다.\n\n* [axios ](https://github.com/mzabriskie/axios)\\(web requests\\)\n* [vue-electron](https://github.com/SimulatedGREG/vue-electron) \\(Vue 객체에 붙은 electron APIs\\)\n* [vue-router](https://github.com/vuejs/vue-router) \\(단일 페이지 애플리케이션 라우트\\)\n* [vuex](https://github.com/vuejs/vuex) \\(유동적이고 직관적이며 정확한 애플리케이션 아키텍처\\)\n\n---\n\n### [`axios`](https://github.com/mzabriskie/axios)\n\n> 브라우저와 Node.js를위한 Promise 기반의 HTTP 클라이언트\n\n`vue-resource`에 익숙하다면 대부분의 `axios` API가 거의 동일하기 때문에 익숙 할 것 입니다. `main` 프로세스 스크립트에서 `axios`을 쉽게 가져 오거나 `renderer` 프로세스에서 `this.$http` & `Vue.http`를 함께 사용할 수 있습니다. 개발 중에는 `webpack-dev-server`를 통해 요청이 전달되기 때문에 CORS 관련 이슈가 발생할 수 있음을 주의하세요. 작은 예비 수단으로 BrowserWindow configuration에서 [`webSecurity`](https://electronjs.org/docs/api/browser-window#new-browserwindowoptions)를 ​​비활성화 할 수 있지만 개발 중에 비활성화하는 것을 잊지 마세요. 프로덕션에서 비활성화하는 것은 정말 권장하지 않습니다. 최종 애플리케이션에 심각한 보안 위험을 초래할 수 있습니다.\n\n### [`vue-electron`](https://github.com/SimulatedGREG/vue-electron)\n\n> electron API를 Vue 객체에 덧붙여 모든 components에 액세스 할 수 있도록하는 vue 플러그인\n\n`this.$electron`으로 electron APIs에 접근할 수 있게 만든 간단한 `vue` 플러그인, 더 이상 모든 컴포넌트에서 `electron`을 import할 필요가 없습니다.\n\n### [`vue-router`](https://github.com/vuejs/vue-router)\n\n> `vue-router`는 [Vue.js](http://vuejs.org/) 공식 라우터 입니다. Vue.js와 통합된 `vue-router`를 사용하여 단일 페이지 애플리케이션을 쉽게 만들 수 있습니다.\n\n제공되는 프로젝트 구조는 공식적으로 제공되는 `vuejs-templates/webpack` 보일러플레이트 설정과 비슷하기 때문에 낯설지 않을 것입니다.\n\n### [`vuex`](https://github.com/vuejs/vuex)\n\n> Vuex는 Vue.js 애플리케이션을 위한 **상태 관리 패턴 + 라이브러리** 입니다. 애플리케이션의 모든 components에 대한 중앙 집중식 저장소 역할을 하며 상태는 예측 가능한 방식으로만 변경 될 수 있습니다.\n\n제공된 프로젝트 구조는 다소 모자라지만 `vuex` 모듈 패턴을 사용하여 데이터 저장소를 구성하는 데 도움이 됩니다. 특별한 `@/store/modules/index.js`로 `vuex` store에서 모든 모듈을 한 번에 가져와 봅시다.\n"
  },
  {
    "path": "docs/ko/webpack-configurations.md",
    "content": "# Webpack Configurations\n\nelectron-vue에는 `.electron-vue/` 디렉토리에 위치한 별도의 webpack 설정 파일이 세개가 있습니다. `web` 출력의 선택적 사용을 제외하고, `main`과 `renderer`는 비슷한 설정 입니다. 둘 다 모든 모듈을 `externals`로 처리하고 babil을 사용하며 `node@7` 기능을 타겟으로 `babel-preset-env`을 사용합니다.\n\n### `.electron-vue/webpack.main.config.js`\n\nelectron의 `main` 프로세스가 타겟입니다. 이 구성은 다소 모자라지만 일반적인 `webpack` 관례를 포함합니다.\n\n### `.electron-vue/webpack.renderer.config.js`\n\nelectron의 `renderer` 프로세스가 타겟입니다. 이 configurationd은 Vue 애플리케이션을 다룹니다. 그래서 `vue-loader`와 공식 `vuejs-templates/webpack` 보일러플레이트에서 사용 가능한 많은 configurations를 포함합니다.\n\n##### White-listing Externals\n\n이 설정에 대해 고려해야 할 중요한 점 중 하나는 webpack `externals`로 취급하지 않는 특정 모듈을 whitelist에 추가 할 수 있다는 점입니다. 이 기능이 필요한 use case는 많지 않지만 가공하지 않는 `*.vue` components를 제공하는 Vue UI 라이브러리의 경우 허용목록(whitelist)에 있어야합니다. 그래야 `vue-loader`은 컴파일 할 수 있습니다. 또 다른 use case는 전체 컴파일러 + 런타임 빌드를 가져오기 위해 vue를 설정하는 것과 같은 webpack `alias`을 사용하는 것입니다. 이 때문에 `vue`는 이미 허용목록에 있습니다.\n\n### `.electron-vue/webpack.web.config.js`\n\n브라우저를 위한 `renderer` 프로세스 소스 코드 빌드가 타겟입니다. 이 config은 웹 배포가 필요한 경우 강력한 시작 기반을 제공합니다. **electron-vue은 제공되던 웹 출력을 더 이상 지원하지 않습니다.** 웹 출력과 관련된 문제는 지연되거나 닫힐 가능성이 높습니다."
  },
  {
    "path": "docs/pt_BR/README.md",
    "content": "![](../images/logo.png)\n\n> Um template para criar aplicações electron usando vue \\(como o nome diz\\).\n\n[![Build Status](https://semaphoreci.com/api/v1/simulatedgreg/electron-vue/branches/master/badge.svg)](https://semaphoreci.com/simulatedgreg/electron-vue)\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\n[![forthebadge](http://forthebadge.com/images/badges/built-with-love.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/uses-js.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/makes-people-smile.svg)](http://forthebadge.com)\n\n## Resumo\n\nO foco do template é remover a nescessidade de criar manualmente todo a organização do projeto usando electron e o vue. electron-vue tira vantagem da `vue-cli` para receber arquivos, `webpack` com `vue-loader`, `electron-packager` ou `electron-builder`, e também os plugins mais utilizados como `vue-router`, `vuex` e muito mais.\n\n#### De uma olhada na documentação em português [aqui](https://simulatedgreg.gitbooks.io/electron-vue/content/index.html).\n\nCoisas que você vai achar no projeto...\n\n* Estrutura basica de projeto, com arquivo um **unico** `package.json`\n* [Documentação](https://simulatedgreg.gitbooks.io/electron-vue/content/) detalhada\n* O projeto retira seus arquivos de vue da [vue-cli](https://github.com/vuejs/vue-cli)\n* Pronto para uso de plugins de vue como \\([axios](https://github.com/mzabriskie/axios), [vue-electron](https://github.com/SimulatedGREG/vue-electron), [vue-router](https://github.com/vuejs/vue-router), [vuex](https://github.com/vuejs/vuex)\\)\\*\n* Instalado [vue-devtools](https://github.com/vuejs/vue-devtools) e [devtron](https://github.com/electron/devtron) ferramentas para desenvolvimento\n* Habilidade para facilmente compilar e criar o arquivo final para instalar sua aplicação usando [electron-packager](https://github.com/electron-userland/electron-packager) ou [electron-builder](https://github.com/electron-userland/electron-builder)\\*\n* `appveyor.yml` e `.travis.yml` configurados para automatizar o deploy com [electron-builder](https://github.com/electron-userland/electron-builder)\\*\n* Habilidade para produzir saidas para browsers\n* Acessivel [NPM scripts](/npm_scripts.md)\n* Usa o [webpack](https://github.com/webpack/webpack) e [vue-loader](https://github.com/vuejs/vue-loader) com Hot Module Replacement\n* Automatização do reinicio dos processos `main` do electron\n* HTML/CSS/JS pre-processor suporte com [vue-loader](https://github.com/vuejs/vue-loader/)\n* ES6 com [`stage-0`](https://babeljs.io/docs/plugins/preset-stage-0/) by default\n* Uso de [`babili`](https://github.com/babel/babili) para remover a nescessidade de fazer transpiling completo para o ES5\n* ESLint \\(com suporte ao [`standard`](https://github.com/feross/standard) e [`airbnb-base`](https://github.com/airbnb/javascript)\\)\\*\n* Teste unitario com \\(with [`karma`](https://github.com/karma-runner/karma) + [`mocha`](https://github.com/mochajs/mocha)\\)\\*\n* End-to-end Testing \\(with [`spectron`](https://github.com/electron/spectron) + [`mocha`](https://github.com/mochajs/mocha)\\)\\*\n\n\\*Customizavel durante o uso da `vue-cli`\n\n### Introdução\n\nEsse template foi construído utilizando [`vue-cli`](https://github.com/vuejs/vue-cli) e inclui opções para customizar a estrutura final do seu app. O template utiliza `node@^7` ou superior como mínimo. electron-vue também recomenda utilizar o [`yarn`](https://yarnpkg.org), gerenciador de pacotes que manipula seus pacotes de uma forma muito melhor e vai ajudar a reduzir o peso final do projeto `yarn clean`.\n\n```bash\n# Instala o vue-cli e o template do projeto\nnpm install -g vue-cli\nvue init simulatedgreg/electron-vue my-project\n\n# Instala as dependencias e executa seu app (your app)\ncd my-project\nyarn # ou npm install\nyarn run dev # ou npm run dev\n```\n\n##### Você e um usuario de Windows\n\nPor favor olhe a [**Uma Nota Para Usuarios de Windows**](https://simulatedgreg.gitbooks.io/electron-vue/content/en/getting_started.html#a-note-for-windows-users) para que você tenha certeza que esta com todas as dependencias instaladas para conseguir fazer deploy e construir a aplicação.\n\n##### Querendo usar Vue 1?\n\nSo um ponto a ser dado, a suporte ao Vue 1 foi oficialmente descontinuado então a estrutura do projeto, features e documentação vão refletir essas mudanças \\([**documentação legado**](https://github.com/SimulatedGREG/electron-vue/tree/1.0/docs)\\).\n\n```bash\nvue init simulatedgreg/electron-vue#1.0 my-project\n```\n\n### Proximos Passos\n\nCertifique-se de olhar a [documentação](https://simulatedgreg.gitbooks.io/electron-vue/content/). Aqui você vai achar informação util sobre a configuração, estrutura do projeto, e construção de sua aplicação. Tambe tem a acessivel [FAQs](https://simulatedgreg.gitbooks.io/electron-vue/content/en/faqs.html), que ajuda a responder questões ja respondidas.\n\n## Criado usando electron-vue\n\nDe uma olhada nesses projetos impressionantes, usando electron-vue. Que que seu projeto seja listado ? Se sinta livre de enviar um pull request.\n\n* [**Surfbird**](https://github.com/surfbirdapp/surfbird): Um Twitter client criado usando Electron e Vue\n* [**Lulumi-browser**](https://github.com/qazbnm456/lulumi-browser): Lulumi-browser e um browser leve programado usando Vue.js 2 e Electron\n* [**Space-Snake**](https://github.com/ilyagru/Space-Snake): Um jogo para computador de criado usando Electron e Vue.js.\n* [**Forrest**](https://github.com/stefanjudis/forrest): An npm scripts desktop client\n* [**miikun**](https://github.com/hiro0218/miikun): Um simples editor de Markdown.\n* [**Dakika**](https://github.com/Madawar/Dakika): A minute taking application that makes writing minutes a breeze\n* [**Dynamoc**](https://github.com/ieiayaobb/dynamoc): Dynamoc is a GUI client for dynamodb-local, dynalite and AWS dynamodb\n* [**Dockeron**](https://github.com/dockeron/dockeron): A dockeron project, built on Electron + Vue.js for Docker\n* [**Easysubs**](https://github.com/matiastucci/easysubs): Download subtitles in a very fast and simple way\n"
  },
  {
    "path": "docs/pt_BR/SUMMARY.md",
    "content": "# Sumário\r\n\r\n* [Introdução](./README.md)\r\n* [Início \"Rápido\"](getting_started.md)\r\n* [Estrutura de Projeto](project_structure.md)\r\n  * [Árvore de Arquivos](file-tree.md)\r\n  * [Processo de Renderização](renderer-process.md)\r\n  * [Processo Primário](main-process.md)\r\n  * [Configurações Webpack](webpack-configurations.md)\r\n* [Desenvolvimento](development.md)\r\n  * [Acesso index.html](entry_indexhtml.md)\r\n  * [Vue Plugins](vue_accessories.md)\r\n  * [NPM Scripts](npm_scripts.md)\r\n  * [Utilizando CSS Frameworks](using_css_frameworks.md)\r\n  * [Utilizando Pre-Processors](using_pre-processors.md)\r\n  * [Utilizando Arquivos (imagens e coisas parecidas) Estáticos](using-static-assets.md)\r\n  * [Lendo & Escrevendo Arquivos Locais](savingreading-local-files.md)\r\n* [ Seu App](building_your_app.md)\r\n  * [Usando electron-packager](using-electron-packager.md)\r\n  * [Usando electron-builder](using-electron-builder.md)\r\n* [Testando](testing.md)\r\n  * [Teste unitário](unittesting.md)\r\n  * [End-to-End teste](end-to-end_testing.md)\r\n* [Meta](meta.md)\r\n  * [Perguntas Frequentes](faqs.md)\r\n  * [Novas Atualizações](new-releases.md)\r\n  * [Guia de Migração](migration-guide.md)\r\n  * [Contribuindo](contributing.md)\r\n"
  },
  {
    "path": "docs/pt_BR/book.json",
    "content": "{\r\n  \"root\": \"\"\r\n}\r\n"
  },
  {
    "path": "docs/pt_BR/building_your_app.md",
    "content": "# Construindo seu App\r\n\r\nelectron-vue dá suporte aos dois [electron-packager](https://github.com/electron-userland/electron-packager) e [electron-builder](https://github.com/electron-userland/electron-builder) para construir e distruibir sua aplicação pronta para produção. As duas ferrametas para buildar são apoiadas pela incrível comunidade [@electron-userland](https://github.com/electron-userland) e tem uma documentação detalhada. Durante `vue-cli` a estruturação você será perguntado quanto ao builder que deseja usar.\r\n\r\n## [`electron-packager`](using-electron-packager.md)\r\n\r\nSe você está contruindo uma nova aplicação electron ou apenas precisa criar um simples executável, então `electron-packager` é perfeito para você.\r\n\r\n## [`electron-builder`](using-electron-builder.md)\r\n\r\nSe você está olhando para instaladores completos, auto-update suporte, construtores CI com Travis CI & AppVeyor, ou automação de reconstrução nativa de node modules, então `electron-builder` é o que você precisa.\r\n"
  },
  {
    "path": "docs/pt_BR/contributing.md",
    "content": "# Contribuindo\r\nGostaria de ajudar nesse template ? Sinta-se livre para enviar um pull request. Antes de enviar qualquer coisa, verifique se está tudo em ordem...\r\n\r\n### JavaScript Standard Style\r\nPara garantir que todo seu código siga os padrões básicos ***style standards*** certifique-se de que os mesmos sigam: [rules](http://standardjs.com/#rules).\r\n\r\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\r\n"
  },
  {
    "path": "docs/pt_BR/development.md",
    "content": "# Desenvolvimento\r\n\r\n### Configurando ambiente de desenvolvimento\r\n\r\nDepois de instalar dependências com `yarn` ou `npm install`, então rode...\r\n\r\n```bash\r\nyarn run dev # or npm run dev\r\n```\r\n\r\n...e boom! Agora você pode rodar seu electron-vue app.\r\n![](../images/landing-page.jpg)\r\n\r\nEsse template vem com a poucos componentes landing-page que podem ser removidos de forma fácil.\r\n"
  },
  {
    "path": "docs/pt_BR/end-to-end_testing.md",
    "content": "# Teste End-to-End\r\n\r\nO electron-vue utiliza o [Spectron](http://electron.atom.io/spectron/) o [Mocha](https://mochajs.org/) \\(com o [Chai](http://chaijs.com/)\\) frameworks de teste do tipo end-to-end. Mocha & Chai APIs, incluem `expect`, `should`, e `assert`, que estão disponíveis no escopo global.\r\n\r\n### Rodando testes\r\n\r\n```bash\r\n# Executando o mochajs\r\nnpm run e2e\r\n```\r\n\r\n##### Nota\r\n\r\nAntes de ser executado os testes end-to end, o comando `npm run pack` é chamado para criar uma build de produção que o Spectron consome durante os testes.\r\n\r\n### Estrutura de arquivos\r\n\r\n```\r\nmy-project\r\n├─ test\r\n|  ├─ e2e\r\n│  │  ├─ specs/\r\n│  │  ├─ index.js\r\n└─ └─ └─ utils.js\r\n```\r\n\r\n**Na maior parte, você pode ignorar o **`index.js`** e focar somente na escrita **`specs/`**.**\r\n\r\n#### `specs/`\r\n\r\nDentro deste diretório é onde os testes são configurados. Graças ao `babel-register`, você possui acesso total ao ES2015.\r\n\r\n#### `index.js`\r\n\r\nEste arquivo atua como a entrada principal para o Mocha e reunir todos os testes escritos no `specs/` para os testes.\r\n\r\n#### `utils.js`\r\n\r\nAqui você poderá encontrar funções genéricas\r\nHere you will find generic functions that could be of use throughout your `specs/`. Base functions include a `beforeEach` and `afterEach` that handle the electron creation/destruction process.\r\n\r\n### On the subject of Spectron\r\n\r\nSpectron é o framework de teste oficial do [electron](http://electron.atom.io) e é utilizado no [ChromeDriver](https://sites.google.com/a/chromium.org/chromedriver/) e [WebDriverIO](http://webdriver.io/) para manipulação dos elementos DOM.\r\n\r\n#### Using WebDriverIO\r\n\r\nAs stated in the Spectron [documentation](https://github.com/electron/spectron#client), access to [WebDriverIO APIs](http://webdriver.io/api.html) can be accessed through `this.app.client`. Since electron-vue uses Mocha, the context of `this` is shared between `afterEach`, `beforeEach`, and `it`. Because of this, it is important to note that ES2015 arrow functions cannot not be used in certain situations as the context of `this` will be overwritten \\([more info](https://mochajs.org/#arrow-functions)\\).\r\n\r\nComo ja declardo na [documentação](https://github.com/electron/spectron#client) do Spectron, o acesso a [WebDriverIO APIs](http://webdriver.io/api.html) ele pode ser acessadp peçlo `this.app.client`. Desde que electron-vue começou a usar o mocha, no contexto de `this` e dividido entre `afterEach`, `beforeEach`, e `it`. Por conta disso, e importante saber que em certas condições as arrow functions não podem ser usadas onde o contexto de `this` vai ser sobreescrito \\([mais informa](https://mochajs.org/#arrow-functions)\\).\r\n"
  },
  {
    "path": "docs/pt_BR/entry_indexhtml.md",
    "content": "# `index.html` de entrada\n\nelectron-vue se utiliza do [**`html-webpack-plugin`**](https://github.com/ampedandwired/html-webpack-plugin) para criar o `index.html` nas builds de produção. Durante o desenvolviment você ira encontrar o `index.ejs` na pasta `src/`. E aqui que você faz as mudanças no HTML de entrada.\n\nSe vocês esta desfamiliarizado sobre como o plugin funciona, então eu encorajo você dar uma olhada nisso [documentação](https://www.npmjs.com/package/html-webpack-plugin). Resumindo, esse plugin vai automaticamente injetar os assets da produção incluindo `renderer.js` e `styles.css` no arquivo minificado no `index.html`.\n\n### `index.ejs` durante desenvolvimento\n\n```html\n<!DOCTYPE html>\n<html>\n  <head>\n    <meta charset=\"utf-8\">\n    <title><%= htmlWebpackPlugin.options.title %></title>\n    <%= ... %>\n  </head>\n  <body>\n    <div id=\"app\"></div>\n    <!-- webpack builds are automatically injected -->\n  </body>\n</html>\n```\n\n### `index.html` em produção \\(não minificado\\)\n\n```html\n<!DOCTYPE html>\n<html>\n  <head>\n    <meta charset=\"utf-8\">\n    <title>app</title>\n    <link href=\"styles.css\" rel=\"stylesheet\">\n  </head>\n  <body>\n    <div id=\"app\"></div>\n    <script type=\"text/javascript\" src=\"renderer.js\"></script>\n  </body>\n</html>\n```\n\n### No assunto de usar CDNs\n\nSabendo dos beneficios de usar assets servido pelas CDNs pode ser otimo para suas aplicaçãos finais em quesito de espaço usado, eu vou avisar o uso contra eles. A razão principal e que fazendo isso você esta assumindo que a aplicação sempre sera acessada pela internet, o que as vezes não e o caso da maioria dos Electron apps. Isto esta sendo um grande problema com frameworks CSS atualmente como o bootstrap, e seus apps vão se tornando bagunça não estilizada.\n\n> \"Eu não ligo, eu ainda quero usar CDNs\"\n\nSe você esta mesmo assim determinado a usar as CDNs, então você pode adicionar toda as tags ao seu arquivo `src/index.ejs`. So faça um app que tenha uma UI/UX estando offline.\n"
  },
  {
    "path": "docs/pt_BR/faqs.md",
    "content": "# FAQs\n## Perguntas frequentes...\n\n* [Por que meu app em electron esta branco sem nada depois de rodar `npm run dev` ?](#why-is-my-electron-app-blank-after-running-npm-run-dev)\n* [Por que o meu electron app mostra um explorador de arquivos ?](#why-does-my-electron-app-show-a-file-explorer)\n* [Por que `vue-devtools`/`devtron` esta faltando ?](#why-is-vue-devtoolsdevtron-missing)\n* [Onde eu coloco meus assets estaticos ?](#where-do-i-put-static-assets)\n* [Por que o `npm run lint` resulta em um erro ?](#why-did-npm-run-lint-end-with-an-error)\n* [Por que quando eu rodo `npm run lint` ele termina com um erro ?](#why-did-npm-run-lint-end-with-an-error)\n* [Por que eu não consigo carregar meu app  no browser ?](#why-cant-i-load-my-app-in-a-web-browser)\n* [Como eu importo o `jquery` ?](#how-do-import-jquery)\n* [Como eu debugo o processo `main` ?](#how-can-i-debug-the-main-process)\n\n---\n\n## Por que meu app em electron esta branco sem nada depois de rodar `npm run dev` ?\n\n#### TL;DR (Muito longo não lerei)\n\nTenha certeza que você não tenha uma **proxy** pessoal que possa estar atrapalhando o `webpack-dev-server`.\n\n## Por que o meu electron app mostra um explorador de arquivos ?\n\n#### TL;DR (Muito longo não lerei)\n\nYour `src/renderer` contains error\\(s\\). Check console, fix errors, then refresh electron with `CommandOrControl+R`.\n\nSeu `src/renderer` contem erro\\(s\\). Olha o console, para corrigir, e depois da um recarregar com o comando `CommandOrControl+R`.\n\n##### Resposta longa\n\nIf error\\(s\\) are present in you `src/renderer` this creates conflicts with ESLint on first run. In turn, an INVALID webpack `renderer.js` is produced which interrupts `HtmlWebpackPlugin` from creating `index.html`. Since `webpack-dev-server` doesn't have the `index.html` ready to serve, the server falls back to the file explorer.\n\nSe um erro\\(s\\) esta presente no seu `src/renderer` pode criar conflitos com o ESLint quando você executa na primeira vez. Enquanto isso o webpack gera um arquivo `renderer.js` o que interrompe o `HtmlWebpackPlugin` de funcionar e criar o arquivo `index.html`. Quando o `webpack-dev-server` não tem o `index.html` para servir, o servidor utiliza o explorador de arquivos como fallback.\n\n## Por que `vue-devtools`/`devtron` esta faltando ?\n\nMake sure to close and reopen the developer tools panel on first launch if they are missing. Also check your terminal check for any error messages that may occur during installation.\n\n## Onde eu coloco meus assets estaticos ?\n\n[**Usando Static(estatico) Assets**](using-static-assets.md)\n\n## Por que o `npm run lint` resulta em um erro ?\n\nThe default nature of eslint is to print linting errors to console, and if there is any found the script will end with a non-zero exit \\(which produces npm errors\\). This is normal behavior.\n\nO natural e que o ESLint vai imprimir os error de linting para o console, e se ele achar qualquer script ele ira terminar com um non-zeo exit \\(o que produz erro\\(s\\) de npm\\). Isto e um comportamento normal.\n\n## Por que eu não consigo carregar meu app  no browser ?\n\n[\\#195](https://github.com/SimulatedGREG/electron-vue/issues/195) (Desculpa não temos como traduzir esta parte.)\n\n## Como eu importo o `jquery`?\n\nIf you are wanting to use `bootstrap`, I'm going to have to stop you right there. Using both `vue` and `jquery` in the same environment is a bad practice and leads to the two frameworks colliding with each other. I would highly recommend using a `bootstrap` alternative that uses `vue` for its JavaScript functionality. Some recommendations include [`bootstrap-vue`](https://github.com/bootstrap-vue/bootstrap-vue) and [`vue-strap`](https://github.com/yuche/vue-strap). For whatever reason you must use `jquery`, seek guidance from `webpack`'s documentation about the `ProvidePlugin` or see [\\#192](https://github.com/SimulatedGREG/electron-vue/issues/192).\n\nSe você esta querendo usar o `bootstrap`, Eu vou ter que parar você exatamente aqui. Usar os dois `vue` e `jquery` no mesmo ambiente de desenvolvimento e uma má pratica e leva a duas frameworks se colidindo, causando erros `bootstrap` procure uma alternativa `vue` para essa função do JavaScript. Algumas recomendações são:  [`bootstrap-vue`](https://github.com/bootstrap-vue/bootstrap-vue) e [`vue-strap`](https://github.com/yuche/vue-strap). Mas se por qualquer razão vocês esta sendo obrigado a usar o  `jquery`, procure ajuda documentação do `webpack` sobre como e `ProvidePlugin` ou veja [\\#192](https://github.com/SimulatedGREG/electron-vue/issues/192). (Problemas como issues não tem como nos traduzirmos por enquano, mas se alguem se oferecer em traduzir parte importantes da isse seria uma bela contribuição)\n\n## Como eu debugo o processo `main` ?\n\nWhen using `electron@^1.7.2` you can open up Google Chrome, head to `chrome://inspect`, and then pop open the remote electron process while your application is running in development mode.\n\nQuando usamos o `electron@^1.7.2` você pode abrir o Google Chrome, você vai direto em `chrome://inspect`, e você abre um pop up com as informações do processo enquanto ele esta sendo usado em modo de desenvolvimento.\n\n[Documentação Electron](https://github.com/electron/electron/blob/master/docs/tutorial/debugging-main-process.md)\n"
  },
  {
    "path": "docs/pt_BR/file-tree.md",
    "content": "# Árvore de Arquivos\n\n### Durante desenvolvimento\n\n**Nota**: Alguns arquivos/pastas podem estar diferentes das configurações \"da base\" escolhidos durante a estruturação na `vue-cli`.\n\n```\nmy-project\n├─ .electron-vue\n│  └─ <build/development>.js files\n├─ build\n│  └─ icons/\n├─ dist\n│  ├─ electron/\n│  └─ web/\n├─ node_modules/\n├─ src\n│  ├─ main\n│  │  ├─ index.dev.js\n│  │  └─ index.js\n│  ├─ renderer\n│  │  ├─ components/\n│  │  ├─ router/\n│  │  ├─ store/\n│  │  ├─ App.vue\n│  │  └─ main.js\n│  └─ index.ejs\n├─ static/\n├─ test\n│  ├─ e2e\n│  │  ├─ specs/\n│  │  ├─ index.js\n│  │  └─ utils.js\n│  ├─ unit\n│  │  ├─ specs/\n│  │  ├─ index.js\n│  │  └─ karma.config.js\n│  └─ .eslintrc\n├─ .babelrc\n├─ .eslintignore\n├─ .eslintrc.js\n├─ .gitignore\n├─ package.json\n└─ README.md\n```\n\n#### \"Build\" de produção\n\n```\napp.asar\n├─ dist\n│  └─ electron\n│     ├─ static/\n│     ├─ index.html\n│     ├─ main.js\n│     └─ renderer.js\n├─ node_modules/\n└─ package.json\n```\n\nComo provavelmente você sabe, todas as coisas que são colocadas e como são colocadas, podem (e provavelmente iram) influenciar no build final do projeto. Isso é praticamente obrigatório quando se está distribuindo electron apps e você não vai querer que seu usuários faça download de software pesado.\n"
  },
  {
    "path": "docs/pt_BR/getting_started.md",
    "content": "# Começando Agora\n\n## Scaffolding\n### Quais ferramentas usamos para montar esse projeto/template.\n\nEsse template é construído com [vue-cli](https://github.com/vuejs/vue-cli) e inclui opção para customizar o scaffolded da sua aplicação. O uso de `node@^7` ou superior é requerido. electron-vue também recomenda oficialmente o uso do [`yarn`](https://yarnpkg.org) package manager ele maneja as dependências muito melhor e pode ajudar a reduzir o tamanho da build final com `yarn clean`.\n\n```bash\n# Instalando vue-cli e estrutura do template\nnpm install -g vue-cli\nvue init simulatedgreg/electron-vue my-project\n\n# Instalando dependências e rodando seu app\ncd meu-projeto\nyarn # ou npm install\nyarn run dev # ou npm run dev\n```\n\n#### Sobre o tema electron\n\nApesar de opcional, isso é recomendado para bloquear versão do electron depois de estruturar seu projeto. Isso ajuda a prevenir que outros desenvolvedores trabalhem no mesmo projeto desenvolvendo com diferentes versões. Electron solta releases que as vezes modificam features que estão sempre em mudanças. [Mais informações](http://electron.atom.io/docs/tutorial/electron-versioning/).\n\n#### Uma nota para usuários Windows\n\nSe você está tendo erros durante o `npm install` por conta do `node-gyp`, então você provavelmente não tem as ferramentas ideiais instalandas no seu sistema. Ferramentas para build incluem itens como Python e Visual Studio. Um agradecimento ao [@felixrieseberg](https://github.com/felixrieseberg), existem alguns pacotes que ajudam a diminuir esse processo.\n\nO primeiro item que precisamos verificar é a nossa versão do npm e assegurar que não está desatualizado. Nós conseguimos fazer isso usando [`npm-windows-upgrade`](https://github.com/felixrieseberg/npm-windows-upgrade). Se você está usando o `yarn`, então você pode pular essa verificação.\n\nUma vez que esteja completo, nós podemos então continuar configurando as ferramentas que precisamos. Usando [`windows-build-tools`](https://github.com/felixrieseberg/windows-build-tools), a maior parte do trabalho sujo é feito por nós. Instalando isso globalmente nós por sua vez configure o Visual com os pacotes C++, Python, e mais.\n\nAté esse ponto as coisas devem estar instaladas com sucesso, mas se não, faça uma instalação limpa do Visual Studio Code. Por favor, note que estes não são problemas diretos com o próprio electron-vue \\(Windows\npode ter dificuldades as vezes ¯\\\\\\_\\(ツ\\)\\_/¯\\).\n"
  },
  {
    "path": "docs/pt_BR/global_configuration.md",
    "content": "# Configuração Global\n\nelectron-vue usa o [webpack](https://github.com/webpack/webpack) module loader system for pre-processing, bundling, and building your app. The default settings are rather common and should meet most of your needs. An additional `config.js` is provided in the root directory for quick adjustments. Further customization can be made by directly adjusting `webpack.main.config.js` and `webpack.renderer.config.js`.\n\n#### `config.js`\n**Note**: Some options may differ based on the settings choosen during `vue-cli` scaffolding.\n\n```js\n{\n  // Name of electron app\n  // Will be used in production builds\n  name: 'app',\n\n  // Use ESLint\n  // Further changes can be made in `.eslintrc.js`\n  eslint: true,\n\n  // webpack-dev-server port\n  port: 9080,\n\n  // electron-packager options\n  // See `Building you app` for more info\n  building: {\n    arch: 'x64',\n    asar: true,\n    dir: path.join(__dirname, 'app'),\n    icon: path.join(__dirname, 'app/icons/icon'),\n    ignore: /\\b(src|index\\.ejs|icons)\\b/,\n    name: pkg.name,\n    out: path.join(__dirname, 'builds'),\n    overwrite: true,\n    platform: process.env.PLATFORM_TARGET || 'all'\n  }\n}\n```\n"
  },
  {
    "path": "docs/pt_BR/main-process.md",
    "content": "# Main Process\n\n> No Electron, o processo que roda o package.json's script primario e chamado pelo processo principal. O script que roda no processo principal pode mostrar uma interface grafica, criando paginas web.\n\n**Tirado da **[**documentação do Electron**](http://electron.atom.io/docs/tutorial/quick-start/#main-process)\n\n---\n\nDesde que o `processo` principal e essencial para um ambiente completo node, não se tem uma estrutura incial a não ser dois arquivos.\n\n#### `src/main/index.js`\n\nEste arquivo e o principal de sua aplicação, esse arquivo que o `electron` começa com. Ele tambem pode ser usado pelo `webpack` como arquivo de entrada pra produção. Todo arquivo no processo `principal` principal começar daqui.\n\n#### `app/src/main/index.dev.js`\n\nEste arquivo e usado especificamente e unicamente para desenvolvimento e ele instala o `electron-debug` & `vue-devtools`. Não se precisa modificar esse arquivo, mas isso pode ser usado para extender suas nescessidades de desenvolvimento.\n\n## No caso de usar o `__dirname` & `__filename`\n\nDesde que o processo `principal` e empacotado usando `webpack`, o uso de `__dirname` & `__filename` **não vai** prover nenhum valor para a produção. Se referindo a [**Arvore de Arquivos**](/file-tree.md), você vai notar que na produção o `main.js` e colocado dentro da pasta `dist/electron`. Baseado no nesse conhecimento, use `__dirname` & `__filename` de acordo.\n\n**Se você precisa usar o caminho para o `static/` assets directory, tenha atenção de ler o **[**Usando Assets Estaticos**](/using-static-assets.md)** para saber como usar esta variavel super acessivel `__static`.**\n\n\n```\napp.asar\n├─ dist\n│  └─ electron\n│     ├─ static/\n│     ├─ index.html\n│     ├─ main.js\n│     └─ renderer.js\n├─ node_modules/\n└─ package.json\n```\n"
  },
  {
    "path": "docs/pt_BR/meta.md",
    "content": "# Meta\n\n### Obrigado\n\nWow, muito obrigado a vocês pessoal por ajudar a fazer o electron-vue uma das top 3 `vue-cli`templates \\(que você consegue achar\\) no GitHub. Eu nunca pensei que este projeto iria ser o que é hoje em dia. Pensando a tempos atras, eu originalmente criei este {tradução de boilerplate} \\(em **May 2016**\\) para um projeto pessoal de codigo fechado e decidi deixa-lo open source \\(o {tradução de boilerplate} por si só\\) quando eu notei que a maioria das peças estavam juntas. Mas voltanddo ao presente tem se implementado novas features e um suporte incrivel pela comunidade. Eu tambem quero especialmente dizer um obrigado as pessoas ajudando a responder problemas enquanto eu não podia. Vocês não tinham nenhuma obrigação de fazer, mas fizeram mesmo assim, e eu sou muito grato por isso.\n\nSe você esta lendo isso, então eu posso assumir que vocês esta realmente gostando do electron-vue. Muito tempo foi gasto para criar esse {tradução de boilerplate}. Se você esta se sentindo generoso, então se sinta livre de deixar uma doação. Certamente desenvolvimento futuro do electron-vue não e dependente de doações, mas isso sempre foi uma opção se você se decidir usa-la.\n\n#### [**PayPal.me**](https://www.paypal.me/simulatedgreg/5)\n"
  },
  {
    "path": "docs/pt_BR/migration-guide.md",
    "content": "# Guia de migração\n\nA documentação a seguir tenta explicar a migração do seu projeto deve ser realizada. Esse método não é a prova de falhas, já que a estrutura do projeto está sempre aberta a mudanças. \n\n1. Inicie uma versão nova do electron-vue usando `vue init simulatedgreg/electron-vue my-project`\n2. Copie a pasta `src` do seu projeto atual para a nova pasta do `src` gerada pelo _scaffold_\n3. Copie sobre o `package.json` as dependencias do projeto atual para o novo `package.json` gerado pelo _scaffold_.\n4. Instale as dependencias com `yarn` ou `npm install`\n5. Rode o projeto no modo de desenvolvimento com \\(`yarn run dev` ou `npm run dev`\\)\n6. Olhe para o terminal para encontrar erros.\n\nComo previamente mencionado acima, não tem metodo sem erros para fazer a migração para a nova versão do _scaffold_ , mas é a melhor forma de se começar.\nQualquer modificação pessoal para a estrutura do projeto ou assets vai ser totalmente problema seu e de sua equipe para migrar. \nTenha total certeza de olhar toda a outra documentação, e veja se isso reflete a versão atual do electron-vue da branch `master`.\n"
  },
  {
    "path": "docs/pt_BR/miscellaneous.md",
    "content": ""
  },
  {
    "path": "docs/pt_BR/new-releases.md",
    "content": "# Novas versões\n\nelectron-vue has evolved greatly since its initial creation in May of 2016 and has introduced many new fantastic features. Can you believe there was a time `vue-cli` scaffolding wasn't support? Development of new features is not planned to end anytime soon. The only down side to new bells & whistles every now and then is having your project stuck on an older scaffold. Since electron-vue takes advantage of `vue-cli` there unfortunately isn't a structured way to _version_ the boilerplate or make it _updatable_.\n\nMajor updates of electron-vue will be made through GitHub Milestones and will include many new features/bug fixes at a time, making these releases the optimal time to [migrate](/migration-guide.md) any existing projects to a newer scaffold. These milestones are not usually planned, but arise as feature requests add up in the issue tracker.\n\n### Objetivos passados\n\n#### [Multiplex](https://github.com/SimulatedGREG/electron-vue/milestone/1?closed=1)\n\n* Migração para o `webpack` 2\n* Suporte para o `electron-builder`\n* Supoerte para a contrução de processo `main`\n* Resolvendo problemas gerais\n\n#### [Minimizar](https://github.com/SimulatedGREG/electron-vue/issues/171)\n\n* Migração para um unico arquivo `package.json`\n* Travis CI / AppVeyor configs for `electron-builder` users\n* Configuraçẽos para Travis CI / AppVeyor para os usuarios de `electron-builder`\n* Saida web minima no processo `renderer`\n\n* Migração para o `axios`\n* Suporte completo para agrupar o processo `main`\n* Reescrevendo os scripts de desenvolvimento e construção\n* Migration to `babili` to remove the need of transpiling down completely to ES5\n* Migração para o `babili` para remover a nescessidade de transpilar completamente para o ES5\n* Suporte para `static/` assets enquanto usam modulos que nescessitam de prover um caminho completo \\([`__static`](/using-static-assets.md)\\)\n"
  },
  {
    "path": "docs/pt_BR/npm_scripts.md",
    "content": "# NPM Scripts\n\nTo help eliminate redundant tasks around the development process, please take note of some of the NPM scripts available to you. The following commands should be ran from your project's root directory. And of course, you can run any of the below commands using `yarn run <command>`.\n\n### `npm run build`\n\nBuild your app for production and package. More info can be found in the [**Building Your App**](building_your_app.md) section.\n\n### `npm run dev`\n\nRun app in development.\n\n### `npm run lint`\n\nLint all your `src/`'s and `test/`'s JS & Vue component files.\n\n### `npm run lint:fix`\n\nLint all your `src/`'s and `test/`'s JS & Vue component files and attempt to fix issues.\n\n### `npm run pack`\n\nRun both `npm run pack:main` & `npm run pack:renderer`. Although these commands are available, there are not many cases where you will need to manually do this as `npm run build` will handle this step.\n\n### `npm run pack:main`\n\nRun webpack to bundle `main` process source code.\n\n### `npm run pack:renderer`\n\nRun webpack to bundle `renderer` process source code.\n\n### `npm run unit`\n\nRun unit tests with Karma + Jasmine. More information on [**Unit Testing**](unittesting.md).\n\n### `npm run e2e`\n\nRun end-to-end tests with Spectron + Mocha. More information on [**End-to-end Testing**](end-to-end_testing.md).\n\n### `npm test`\n\nRuns both `npm run unit` & `npm run e2e`. More information on [**Testing**](testing.md).\n\n"
  },
  {
    "path": "docs/pt_BR/project_structure.md",
    "content": "# Project Structure\n\nWhen it comes to making electron apps, project structure is a little different. If you have used the official [`vuejs-templates/webpack`](https://github.com/vuejs-templates/webpack) setup before, then the structure should feel quite familiar. The documentation in this section attempts to explain a general overview of how the boilerplate works and the differences when your application in built.\n\n### Single `package.json` Setup\n\nThere was a time not too long ago where a two `package.json` setup was neccessary, but thanks to efforts from [@electron-userland](https://github.com/electron-userland), both [`electron-packager`](https://github.com/electron-userland/electron-packager) and [`electron-builder`](https://github.com/electron-userland/electron-builder) now fully support a single `package.json` setup.\n\n#### `dependencies`\n\nThese dependencies **will** be included in your final production app. So if your application needs a certain module to function, then install it here!\n\n#### `devDependencies`\n\nThese dependencies **will not** be included in your final production app. Here you can install modules needed specifically for development like build scripts, `webpack` loaders, etc.\n\n#### Installing Native NPM Modules\n\nWe need to make sure our native npm modules are built against electron. To do that, we can use [`electron-rebuild`](https://github.com/electron/electron-rebuild), but to make things simpler, it is highly recommended to use [`electron-builder`](https://github.com/electron-userland/electron-builder) for your build tool as a lot of these tasks are handled for you.\n\n### On the subject of the `main` process\n\nDuring development you may notice `src/main/index.dev.js`. This file is used specifically for development and is used to install dev-tools. This file should not have to be modified, but can be used to extend your development needs. Upon building, `webpack` will step in and create a bundle with `src/main/index.js` as its entry file.\n"
  },
  {
    "path": "docs/pt_BR/renderer-process.md",
    "content": "# Processo de Renderização\n\n> Since Electron uses Chromium for displaying web pages, Chromium’s multi-process architecture is also used. Each web page in Electron runs in its own process, which is called the renderer process.\n>\n> In normal browsers, web pages usually run in a sandboxed environment and are not allowed access to native resources. Electron users, however, have the power to use Node.js APIs in web pages allowing lower level operating system interactions.\n\n**From the **[**Electron Documentation**](http://electron.atom.io/docs/tutorial/quick-start/#renderer-process)\n\n---\n\n## On the subject of `vue` and `vuex`\n\n### vue components\n\nIf you are unfamiliar with Vue components, please give [this](http://vuejs.org/v2/guide/single-file-components.html) a read. Using components gives our large complex applications more organization. Each component has the ability to encapsulate its own CSS, template, and JavaScript functionality.\n\nComponents are stored in `src/renderer/components`. When creating child components, a common organization practice is to place them inside a new folder with the name of its parent component. This is especially useful when coordinating different routes.\n\n```\nsrc/renderer/components\n├─ ParentComponentA\n│  ├─ ChildComponentA.vue\n│  └─ ChildComponentB.vue\n└─ ParentComponentA.vue\n```\n\n### vue routes\n\nFor more information about `vue-router` click [here](https://github.com/vuejs/vue-router). In short, it is encouraged to use `vue-router` as creating a Single Page Application is much more practical when making electron applications. Do you really want to manage a bunch of BrowserWindows and then communicating information between everything? Probably not.\n\nRoutes are held in `src/renderer/router/index.js` and defined like so...\n\n```js\n{\n  path: '<routePath>',\n  name: '<routeName>',\n  component: require('@/components/<routeName>View')\n}\n```\n\n...where both `<routePath>` and `<routeName>` are variables. These routes are then attached to the component tree using the `<router-view>` directive in `src/renderer/App.vue`.\n\n##### Notice\n\nWhen using `vue-router`, do not use [**HTML5 History Mode**](http://router.vuejs.org/en/essentials/history-mode.html). This mode is strictly meant for serving files over the `http` protocol and does not work properly with the `file` protocol that electron serves files with in production builds. The default `hash` mode is just what we need.\n\n### vuex modules\n\nDescribing `vuex` is not the easiest thing to do, so please read [this](http://vuex.vuejs.org/en/intro.html) for a better understanding of what problem it tries to solve and how it works.\n\nelectron-vue takes advantage of `vuex`'s module structure to create multiple data stores and are saved in `src/renderer/store/modules`.\n\nHaving multiple data stores can be great for organization, but can also be annoying to have to import each and every one. But don't fret, as `src/renderer/store/modules/index.js` does the dirty work for us! This little script let's `src/renderer/store/index.js` import all of our modules in a one-shot manner. If all that didn't make since, just know you can easily duplicate the given `Counter.js` module and it will be loaded in \"magically\".\n"
  },
  {
    "path": "docs/pt_BR/savingreading-local-files.md",
    "content": "# Read & Write Local Files\n\nOne great benefit of using `electron` is the ability to access the user's file system. This enables you to read and write files on the local system. To help avoid Chromium restrictions and writing to your application's internal files, make sure to take use of `electron`'s APIs, specifically the [`app.getPath(name)`](https://electron.atom.io/docs/api/app/#appgetpathname) function. This helper method can get you file paths to system directories such as the user's desktop, system temporary files, etc.\n\n### Use Case\n\nLet's say we want to have a local database store for our application. In this example we'll demonstrate with [`nedb`](https://github.com/louischatriot/nedb).\n\n```bash\nyarn add nedb # or npm install nedb --save\n```\n\n**src/renderer/datastore.js**\n\nHere we setup NeDB and point it to our `userData` directory. This space is reserved specifically for our application, so we can have confidence other programs or other user interactions should not tamper with this file space. From here we can import `datastore.js` in our `renderer` process and consume it.\n\n```js\nimport Datastore from 'nedb'\nimport path from 'path'\nimport { remote } from 'electron'\n\nexport default new Datastore({\n  autoload: true,\n  filename: path.join(remote.app.getPath('userData'), '/data.db')\n})\n```\n\n**src/renderer/main.js**\n\nTo take this a step further, we can then import our datastore into `src/renderer/main.js` and attach it to the Vue prototype. Doing so, we are now able to access the datastore API through the usage of `this.$db` in all component files.\n\n```js\nimport db from './datastore'\n\n/* Other Code */\n\nVue.prototype.$db = db\n```\n\n\n\n"
  },
  {
    "path": "docs/pt_BR/testing.md",
    "content": "# Testing\n\nelectron-vue supports both unit testing and end-to-end testing for the `renderer` process and is heavily inspired by the testing setup provided with the official `vuejs-templates/webpack` boilerplate. During `vue-cli` scaffolding you will have the option to include testing support.\n\n## [Unit testing](unittesting.md)\n\nRun unit tests with Karma + Mocha\n\n```bash\nnpm run unit\n```\n\n## [End-to-end testing](end-to-end_testing.md)\n\nRun end-to-end tests with Spectron + Mocha\n\n```bash\nnpm run e2e\n```\n\n## Running all tests\n\n```bash\nnpm test\n```\n\n### On the subject of CI testing\n\nIf your decided to use `electron-builder` as your build tool when scaffolding, then you can easily test your application on both Travis CI & AppVeyor for `darwin`, `linux`, and `win32`. Inside both `.travis.yml` and `appveyor.yml` you will find commented sections you can quickly un-comment to enable testing. Make sure to read up on [**Automated Deployments using CI**](using-electron-builder.md#automated-deployments-using-ci)** **for further information.\n\n"
  },
  {
    "path": "docs/pt_BR/unittesting.md",
    "content": "# Unit Testing\n\nelectron-vue makes use of the [Karma](https://karma-runner.github.io/1.0/index.html) test runner and the [Mocha](https://mochajs.org/) test framework \\(with [Chai](http://chaijs.com/)\\) for unit testing.\n\nBoth Mocha and Chai are integrated using `karma-mocha` and `karma-chai` respectively, so all APIs such as `expect` are globally available in test files.\n\n### Running Tests\n\n```bash\n# Begin Karma\nnpm run unit\n```\n\n### File Structure\n\n```\nmy-project\n├─ test\n|  ├─ unit\n│  │  ├─ specs/\n│  │  ├─ index.js\n└─ └─ └─ karma.conf.js\n```\n\n**For the most part, you can ignore both **`index.js`** and **`karma.conf.js`** and focus solely on writing **`specs/`**.**\n\n#### `specs/`\n\nInside this directory is where actual tests are written. Thanks to the power of webpack, you have full access to ES2015 and supported loaders.\n\n#### `index.js`\n\nThis is the entry file used by `karma-webpack`. The purpose of this file is to gather all test and source code in a \"one-shot\" manner.\n\n#### `karma.conf.js`\n\nHere you will find the actual `karma` configuration, set up with spec/coverage reporters. Further customization can be made in accordance to the [official karma documentation](http://karma-runner.github.io/1.0/config/configuration-file.html).\n\n### Mocking Dependencies\n\nelectron-vue comes with [`inject-loader`](https://github.com/plasticine/inject-loader) installed by default. For usage with Vue component files see [`vue-loader` docs on testing with mocks](http://vue-loader.vuejs.org/en/workflow/testing-with-mocks.html).\n\n"
  },
  {
    "path": "docs/pt_BR/using-electron-builder.md",
    "content": "# Using [`electron-builder`](https://github.com/electron-userland/electron-builder)\n\nAll builds produced by `electron-builder` can be found within the `build` directory.\n\n#### Building\n\n```bash\nnpm run build\n```\n\n#### Building unpacked directory\n\nProduce simple executable without full installer. Useful for quick testing.\n\n```bash\nnpm run build:dir\n```\n\n### Default building configuration\n\nFurther customization can be made at `package.json` in accordance to `electron-builders`'s options found [here](https://github.com/electron-userland/electron-builder/wiki/Options).\n\n```js\n\"build\": {\n  \"productName\": \"ElectronVue\",\n  \"appId\": \"org.simulatedgreg.electron-vue\",\n  \"dmg\": {\n    \"contents\": [\n      {\n        \"x\": 410,\n        \"y\": 150,\n        \"type\": \"link\",\n        \"path\": \"/Applications\"\n      },\n      {\n        \"x\": 130,\n        \"y\": 150,\n        \"type\": \"file\"\n      }\n    ]\n  },\n  \"directories\": {\n    \"output\": \"build\"\n  },\n  \"files\": [\n    \"dist/electron\",\n    \"node_modules/\",\n    \"package.json\"\n  ],\n  \"mac\": {\n    \"icon\": \"build/icons/icon.icns\"\n  },\n  \"win\": {\n    \"icon\": \"build/icons/icon.ico\"\n  },\n  \"linux\": {\n    \"icon\": \"build/icons\"\n  }\n}\n```\n\n## Automated Deployments using CI\n\nWhen using electron-vue's `electron-builder` configuration, you are also provided a `appveyor.yml` and `.travis.yml` for automated deployments. Both config files are setup for building your electron application and pushing artifacts to a GitHub release, Bintray, etc. Travis CI is used to build both `linux` and `darwin` \\(macOS\\) while AppVeyor is used to build `win32`. Both services are free for OSS projects.\n\n#### Setting up Travis CI/AppVeyor\n\n1. Create an account over at [Travis CI](https://travis-ci.org/getting_started) / [AppVeyor](https://www.appveyor.com/)\n2. Link your GitHub repository that has your electron-vue project\n3. Visit [https://github.com/settings/tokens](https://github.com/settings/tokens) and hit **Generate new token **\\(the same token can be used for both Travis CI & AppVeyor\\)\n   1. Set a **Token description**\n   2. Check the **public\\_repo **scope\n   3. Hit **Generate token**\n4. Copy your new token and save for later\n5. Open your repository settings on Travis CI / AppVeyor to add a new **Environment Variable**\n   1. Set the name of the variable to `GH_TOKEN`\n   2. Set the value of the variable to the GitHub access token you just created\n   3. **Save** the new variable and ensure encryption is enabled\n\nAt this point, everything should be setup. Travis CI/AppVeyor by default will watch for any pushes to your `master` branch. When a push is made, Travis CI/AppVeyor will then clone down your repository to its server and begin the build process. During the final stages, `electron-builder` with see the `GH_TOKEN` environment variable and create a draft release and upload the artifacts to your public GitHub repository. From this point, you can edit the draft release and then publish it to the world. After publishing your release, make sure future releases are marked with a new version number by updating your `package.json`.\n\n#### Auto Updating\n\nEnabling your application to receive automatic updates is a super nice feature to have, but know that [**Code Signing**](https://github.com/electron-userland/electron-builder/wiki/Code-Signing) is required. You can setup code signing by adding a few more environment variables based on what `electron-builder` needs described [here](https://github.com/electron-userland/electron-builder/wiki/Code-Signing). Once you have your certificates setup, you can then install `electron-updater` and comment out the chunk of code at the bottom of `src/main/index.js` to enable auto updating.\n\nIf you are like most people and do not have a fancy code signing certificate, then you can always use the GitHub API to check for new releases. When a new release is detected, provide a notification within your application to point users to a download page where they can download and install the new build. Thanks to the amazing installer that `electron-builder` provides, user's do not have to uninstall the current version and the new installation will replace the old while still persisting any web storage or `userData` files.\n\n"
  },
  {
    "path": "docs/pt_BR/using-electron-packager.md",
    "content": "# Using [`electron-packager`](https://github.com/electron-userland/electron-packager)\n\nAll builds produced by `electron-packager` can be found within the `build` folder.\n\n#### Building for all platforms\n\nPlease know that not all Operating Systems can build for all other platforms.\n\n```bash\nnpm run build\n```\n\n#### Building for a specific platform\n\nPlatforms include `darwin`, `mas`, `linux` and `win32`.\n\n```bash\n# build for darwin (macOS)\nnpm run build:darwin\n```\n\n#### Cleaning\n\nDelete all builds from `build`.\n\n```bash\nnpm run build:clean\n```\n\n### A note for non-Windows users\n\nIf you are wanting to build for Windows **with a custom icon** using a non-Windows platform, you must have [wine](https://www.winehq.org/) installed. [More Info](https://github.com/electron-userland/electron-packager#building-windows-apps-from-non-windows-platforms).\n\n### Default building configurations\n\nFurther customization can be made at `.electron-vue/build.config.js` in accordance to `electron-packager`'s options found [here](https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options). The name applied to your built application is set with the `productName` value in your `package.json`.\n\n```js\n{\n    // Target 'x64' architecture\n    arch: 'x64',\n\n    // Compress app using 'electron/asar'\n    asar: true,\n\n    // Directory of the app\n    dir: path.join(__dirname, '../'),\n\n    // Set electron app icon\n    // File extensions are added based on platform\n    //\n    // If building for Linux, please read\n    // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#icon\n    icon: path.join(__dirname, '../build/icons/icon'),\n\n    // Ignore files that would bloat final build size\n    ignore: /(^\\/(src|test|\\.[a-z]+|README|yarn|static|dist\\/web))|\\.gitkeep/,\n\n    // Save builds to `builds`\n    out: path.join(__dirname, '../build'),\n\n    // Overwrite existing builds\n    overwrite: true,\n\n    // Environment variable that sets platform\n    platform: process.env.BUILD_TARGET || 'all'\n}\n```\n\n\n\n"
  },
  {
    "path": "docs/pt_BR/using-static-assets.md",
    "content": "# Using Static Assets\n\nIf you have used the official `vuejs-templates/webpack` boilerplate before, then you should be familiar with the `static/` directory. It is here where you can place static assets that both the `main` and `renderer` process can consume. Using these assets within your Vue application is simple, but usage with `fs` and other modules that need a full path can be a little tricky. Thankfully, electron-vue provides a `__static` variable that yields the path to the `static/` directory in both development and production.\n\n### Use Case within `src` tags in Vue Components\n\nLet's say I have a component that loads an image, but the image's path isn't known until some other task is completed. To keep things simple, let's just use a `data` variable to bind our `<img>`'s src.\n\n**SomeComponent.vue**\n\n```html\n<template>\n  <img v-bind:src=\"imageUrl\">\n</template>\n\n<script>\n  export default {\n    data () {\n      // notice the url starts with `static/`\n      return { imageUrl: 'static/imgs/unsplash.png' }\n    }\n  }\n</script>\n```\n\nHere `webpack` will not bundle the `unsplash.png` image and the application will look inside the `static/imgs/unsplash.png` directory for the asset. Thanks to `vue-loader`, all of the dirty work is done for us.\n\n### Use Case within JS with `fs`,`path` and `__static`\n\nLet's say we have a static asset that we need to read into our application using `fs`, but how do we get a reliable path, in both development and production, to the `static/` directory? electron-vue provides a global variable named `__static` that will yield a proper path to the `static/` directory. Here's how we can use it to read a simple text file in both development and production.\n\n**static/someFile.txt**\n\n```txt\nfoobar\n```\n\n**SomeFile.js \\(**`main`** or **`renderer`** process\\)**\n\n```js\nimport fs from 'fs'\nimport path from 'path'\n\nlet fileContents = fs.readFileSync(path.join(__static, '/someFile.txt'), 'utf8')\n\nconsole.log(fileContents)\n// => \"foobar\"\n```\n\nPlease note that in production all files are packed with [`asar`](https://github.com/electron/asar) by default as it is highly recommended. Because of this, assets within the `static/` folder can only be accessed within `electron` since it is aware of this behavior. So if you are planning to distribute files to your users, that can for example open in a external program, you would first need to copy those assets from your application into the user's document space or desktop. From there you could use the [`shell.openItem()`](https://electron.atom.io/docs/api/shell/#shellopenitemfullpath) electron API to open those assets.\n\nAn alternative method to this situation would be to configure `electron-packager`/`electron-builder` to set specific files to \"unpack\" from the `asar` archive in production. electron-vue has no plans to support this method; any issues related to this or how to set this up will be closed.\n\n"
  },
  {
    "path": "docs/pt_BR/using_css_frameworks.md",
    "content": "# Using CSS Frameworks\n\nAlthough this may seem like a no brainer, I'd suggest you import your third-party CSS libraries into webpack using the [`style-loader`](https://github.com/webpack/style-loader), which is already setup for you.\n\n## Use Case\n\nSay you want to use [bootstrap](http://getbootstrap.com/), [bulma](http://bulma.io/), or [materialize](http://materializecss.com/) for your application. Go ahead and install your library from `npm` like you normally would, but instead of attaching the asset to `index.ejs` we will import the CSS in our JavaScript, specifically in `src/renderer/main.js`.\n\n#### Example\n\nLet's install `bulma`\n\n```bash\nnpm install bulma --save\n```\n\nThen inside `src/renderer/main.js` let's add this line.\n\n```bash\nimport 'bulma/css/bulma.css'\n```\n\nAlternatively, you can also include `bulma` from inside a component file.\n\n**App.vue**\n\n```html\n<style>\n  @import \"~bulma/css/bulma.css\";\n</style>\n```\n\nNow `webpack` will know to load in `bulma` for our application and make it available in our production builds.\n\n"
  },
  {
    "path": "docs/pt_BR/using_pre-processors.md",
    "content": "# Using Pre-Processors\n\nOne of the great benefits of using [`vue-loader`](https://github.com/vuejs/vue-loader) with [`webpack`](https://github.com/webpack/webpack) is the ability to pre-process your HTML/CSS/JS directly in your Vue components files without much effort at all. For more information about this check [**here**](https://vuejs.org/v2/guide/single-file-components.html).\n\n## Use Case\n\nLet's say we need to use Sass/SCSS for pre-processing our CSS. First, we need to install the proper `webpack` loader to handle this syntax.\n\n#### Installing `sass-loader`\n\n```bash\nnpm install --save-dev sass-loader node-sass\n```\n\nOnce the loader we need is installed, everything is pretty much finished. `vue-loader` will magically take care of the rest. Now we can easily add `lang=\"sass\"` or `lang=\"scss\"` to our Vue component files. Notice we also installed `node-sass` as it is a dependent package for `sass-loader`.\n\n#### Applying the `lang` attribute\n\nSo...\n\n```html\n<style>\n  body {\n    /* CSS */\n  }\n</style>\n```\n\n...now becomes...\n\n```html\n<style lang=\"scss\">\n  body {\n    /* SCSS */\n  }\n</style>\n```\n\nThe same principles apply for just about any other pre-processor. So maybe you need coffeescript for your JS? Simply install the [coffeescript-loader](https://github.com/webpack/coffee-loader) and apply the `lang=\"coffeescript\"` attribute to your `<script>` tag.\n\nFor more advanced use of this feature please head over to the [vue-loader documentation](http://vue-loader.vuejs.org/en/configurations/pre-processors.html) for more information.\n\n## Using Sass/SCSS globals\n\nWhen using Sass/SCSS for your CSS syntax, it's very beneficial to make use of global variables/mixins throughout all Vue component files. Here's how to make that happen.\n\n### Use Case\n\nThis example demonstrates how to apply a `globals.scss` to all Vue component files. This documentation assumes you have already setup `sass-loader` in your development environment as mentioned above.\n\n#### Define your globals\n\n**src/renderer/globals.scss**\n\n```scss\n$brand-primary: blue;\n$brand-accent: turquoise;\n```\n\n#### Inject `globals.scss` directly into `node-sass`\n\nEdit the `vue-loader` config in **.electron-vue/webpack.renderer.config.js**\n\n```js\nloaders: {\n  sass: 'vue-style-loader!css-loader!sass-loader?indentedSyntax=1&data=@import \"./src/renderer/globals\"',\n  scss: 'vue-style-loader!css-loader!sass-loader?data=@import \"./src/renderer/globals\";'\n}\n```\n\n#### Use your globals\n\n**SomeComponent.vue**\n\n```html\n<style lang=\"scss\">\n  body { color: $brand-primary; }\n</style>\n```\n\n\n\n"
  },
  {
    "path": "docs/pt_BR/using_the_file_structure.md",
    "content": "# Using the File Structure\n\nelectron-vue does its best to not force a particular project structure, but does try to follow common Vue & Electron practices. The following documentation describes common practices used in the original project structure.\n\n**If you are unfamiliar with Electron's **`renderer`** and **`main`** processes, please give the first section of the **[**Quick Start**](http://electron.atom.io/docs/tutorial/quick-start)** a good read. It explains, in detail, their differences.**\n\n### [Renderer Process](renderer-process.md)\n\n### [Main Process](main-process.md)\n\n\n\n"
  },
  {
    "path": "docs/pt_BR/vue_accessories.md",
    "content": "# Vue Plugins\n\nelectron-vue comes packed with the following `vue` plugins that can be installed during `vue-cli` scaffolding...\n\n* [axios ](https://github.com/mzabriskie/axios)\\(web requests\\)\n* [vue-electron](https://github.com/SimulatedGREG/vue-electron) \\(attach electron APIs to Vue object\\)\n* [vue-router](https://github.com/vuejs/vue-router) \\(single page application routes\\)\n* [vuex](https://github.com/vuejs/vuex) \\(flux-inspired application architecture\\)\n\n---\n\n### [`axios`](https://github.com/mzabriskie/axios)\n\n> Promise based HTTP client for the browser and node.js\n\nIf you are familiar with `vue-resource`, then `axios` will feel very familiar as most of the API is nearly identical. You can easily import `axios` in your `main` process scripts or use with `this.$http` & `Vue.http` in the `renderer` process.\n\n### [`vue-electron`](https://github.com/SimulatedGREG/vue-electron)\n\n> The vue plugin that attaches electron APIs to the Vue object, making them accessible to all components.\n\nA simple `vue` plugin that makes electron APIs easily accessible with`this.$electron`, no longer needing to import `electron` into every component necessary.\n\n### [`vue-router`](https://github.com/vuejs/vue-router)\n\n> `vue-router` is the official router for [Vue.js](http://vuejs.org/). It deeply integrates with Vue.js core to make building Single Page Applications with Vue.js a breeze.\n\nThe provided project structure should feel familiar to the setup provided in the official `vuejs-templates/webpack` boilerplate.\n\n### [`vuex`](https://github.com/vuejs/vuex)\n\n> Vuex is a **state management pattern + library **for Vue.js applications. It serves as a centralized store for all the components in an application, with rules ensuring that the state can only be mutated in a predictable fashion.\n\nThe provided project structure is rather bare but does encourage the use of `vuex`'s module pattern to help organize your data stores. The extra `@/store/modules/index.js` let's your `vuex` store import all modules in a one-shot manner.\n\n"
  },
  {
    "path": "docs/pt_BR/webpack-configurations.md",
    "content": "# Configurações do Webpack\n\nelectron-vue vem com três arquivos de configuração do webpack separados, todos localizados na pasta `.electron-vue/`.\nAlém do uso opcional do output `web`, ambos `main` e `renderer` são similares em estrutura. Ambos fazem uso de `babel-preset-env` para atingir as features do `node@7`, usam `babili` e tratam todos os modulos como `externals`.\n\n\n### `.electron-vue/webpack.main.config.js`\n\nSegmenta o processo `main` do electron. Essa configuração é bem simples, mas inclui algumas práticas comuns do `webpack`.\n\n### `.electron-vue/webpack.renderer.config.js`\n\nSegmenta o processo `renderer` do electron. Essa configuração lida com a sua aplicação Vue, então inclui o `vue-loader` \ne várias outras configurações que estão disponiveis no _boilerplate_ original. \n\n##### Colocando Externals na lista branca\n\nUma coisa importante a se considerar sobre está configuração é que você pode adicionar modulos especificos a _whitelist_ para que não sejam tratados como `externals` no webpack.\nNão existem muitos casos de uso onde essa funcionálidade é necessaria, mas no caso de bibliotecas Vue UI que fornecem componentes `*.vue` \"brutos\", eles precisão estar nesta lista de permissões para que o `vue-loader` consiga compilá-los.\nOutr caso seria o uso de _alias_ do webpack, como configurar o `vue` para importar a compilação completa do Compiler + Runtime. Por causa disso, o `vue` já está na lista branca.\n\n### `.electron-vue/webpack.web.config.js`\n\nAtinge a build do processo `renderer` \n\nSegmenta a construção do código-fonte do processo `renderer` para o navegador.\nEssa configuração é um ótimo ponto de partida caso você precise publicar na web.\n**electron-vue não tem suporte para web além do que já é fornecido**\nQuaisquer problemas relacionados a build para web provavelmente serão fechados.\n\n"
  },
  {
    "path": "meta.js",
    "content": "'use strict'\n\nconst { join } = require('path')\nconst { readFileSync, writeFileSync } = require('fs')\nconst { get } = require('https')\n\nfunction getCurrentSHA (author) {\n  return new Promise((resolve, reject) => {\n    let isBranch = process.argv[2].indexOf('#') > -1\n\n    get({\n      host: 'api.github.com',\n      path: `/repos/simulatedgreg/electron-vue/commits${isBranch ? '?sha=' + process.argv[2].split('#')[1] : ''}`,\n      headers: {\n        'User-Agent': author\n      }\n    }, res => {\n      res.setEncoding('utf8')\n      let rawData = ''\n\n      res.on('data', chunk => {\n        rawData += chunk\n      })\n      res.on('end', () => {\n        try {\n          let parsed = JSON.parse(rawData)\n          resolve(parsed[0].sha)\n        } catch (e) {\n          reject(e)\n        }\n      })\n    }).on('error', e => {\n      reject(e)\n    })\n  })\n}\n\nfunction appendSHALink (sha, destDirName) {\n  let readmePath = join(destDirName, '/README.md')\n  let md = readFileSync(readmePath, 'utf8')\n  md = md.replace(\n    ' using',\n    `@[${sha.substring(0, 7)}](https://github.com/SimulatedGREG/electron-vue/tree/${sha}) using`\n  )\n  writeFileSync(readmePath, md, 'utf8')\n}\n\nmodule.exports = {\n  prompts: {\n    name: {\n      type: 'string',\n      required: true,\n      message: 'Application Name',\n      default: 'your-app'\n    },\n    appid: {\n        type: 'string',\n        required: true,\n        message: 'Application Id',\n        default: 'com.example.yourapp'\n    },\n    appver: {\n        type: 'string',\n        required: true,\n        message: 'Application Version',\n        default: '0.0.1'\n    },\n    description: {\n      type: 'string',\n      required: false,\n      message: 'Project description',\n      default: 'An electron-vue project'\n    },\n    usesass: {\n        type: 'confirm',\n        message: 'Use Sass / Scss?',\n        required: true\n    },\n    plugins: {\n      type: 'checkbox',\n      message: 'Select which Vue plugins to install',\n      choices: ['axios', 'vue-electron', 'vue-router', 'vuex', 'vuex-electron'],\n      default: ['axios', 'vue-electron', 'vue-router', 'vuex', 'vuex-electron']\n    },\n    eslint: {\n      type: 'confirm',\n      require: true,\n      message: 'Use linting with ESLint?',\n      default: true\n    },\n    eslintConfig: {\n      when: 'eslint',\n      type: 'list',\n      message: 'Which ESLint config would you like to use?',\n      choices: [\n        {\n          name: 'Standard (https://github.com/feross/standard)',\n          value: 'standard',\n          short: 'Standard'\n        },\n        {\n          name: 'Airbnb (https://github.com/airbnb/javascript)',\n          value: 'airbnb',\n          short: 'Airbnb'\n        },\n        {\n          name: 'none (configure it yourself)',\n          value: 'none',\n          short: 'none'\n        }\n      ]\n    },\n    unit: {\n      type: 'confirm',\n      message: 'Set up unit testing with Karma + Mocha?',\n      required: true\n    },\n    e2e: {\n      type: 'confirm',\n      message: 'Set up end-to-end testing with Spectron + Mocha?',\n      require: true\n    },\n    builder: {\n      type: 'list',\n      message: 'What build tool would you like to use?',\n      choices: [\n        {\n          name: 'electron-builder (https://github.com/electron-userland/electron-builder)',\n          value: 'builder',\n          short: 'builder'\n        },\n        {\n          name: 'electron-packager (https://github.com/electron-userland/electron-packager)',\n          value: 'packager',\n          short: 'packager'\n        }\n      ]\n    }\n  },\n  helpers: {\n    isEnabled (list, check, opts) {\n      if (list[check]) return opts.fn(this)\n      else return opts.inverse(this)\n    },\n    deps (plugins) {\n      let output = ''\n      let dependencies = {\n        'axios': '^0.18.0',\n        'vue-electron': '^1.0.6',\n        'vue-router': '^3.0.1',\n        'vuex': '^3.0.1',\n        'vuex-electron': '^1.0.0'\n      }\n\n      if (Object.keys(plugins).length > 0) output += ',\\n'\n\n      Object.keys(plugins).forEach((p, i) => {\n        output += `    \"${p}\": \"${dependencies[p]}\"`\n        if (i !== Object.keys(plugins).length - 1) output += ',\\n'\n      })\n\n      return output\n    },\n    testing (unit, e2e, opts) {\n      if (unit || e2e) {\n        return opts.fn(this)\n      }\n    }\n  },\n  filters: {\n    'src/renderer/routes.js': 'plugins[\\'vue-router\\']',\n    'src/renderer/components/LandingPageView/CurrentPage.vue': 'plugins[\\'vue-router\\']',\n    'src/renderer/router/**/*': 'plugins[\\'vue-router\\']',\n    'src/renderer/store/**/*': 'plugins[\\'vuex\\']',\n    'test/e2e/**/*': 'e2e',\n    'test/unit/**/*': 'unit',\n    '.electron-vue/build.config.js': 'builder === \\'packager\\'',\n    'test/.eslintrc': 'e2e || unit',\n    '.eslintignore': 'eslint',\n    '.eslintrc.js': 'eslint',\n    'appveyor.yml': 'builder === \\'builder\\'',\n    '.travis.yml': 'builder === \\'builder\\''\n  },\n  complete (data) {\n    getCurrentSHA(data.author).then(sha => {\n      let path = !data.inPlace ? data.destDirName : null\n      if (path !== null) appendSHALink(sha, path)\n      console.log([\n        '\\n---',\n        '',\n        'All set. Welcome to your new electron-vue project!',\n        '',\n        'Make sure to check out the documentation for this boilerplate at',\n        '\\x1b[33mhttps://simulatedgreg.gitbooks.io/electron-vue/content/\\x1b[0m.',\n        '',\n        `Next Steps:\\n${!data.inPlace ? '\\n  \\x1b[33m$\\x1b[0m cd ' + data.destDirName : ''}`,\n        '  \\x1b[33m$\\x1b[0m yarn (or `npm install`)',\n        '  \\x1b[33m$\\x1b[0m yarn run dev (or `npm run dev`)'\n      ].join('\\n'))\n    }, () => {\n      console.log('\\x1b[33mwarning\\x1b[0m Failed to append commit SHA on README.md')\n    })\n  }\n}\n"
  },
  {
    "path": "package.json",
    "content": "{\n  \"name\": \"electron-vue\",\n  \"version\": \"0.0.0\",\n  \"description\": \"An Electron & Vue.js quick start boilerplate with vue-cli support\",\n  \"main\": \"meta.js\",\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"git+https://github.com/SimulatedGREG/electron-vue.git\"\n  },\n  \"keywords\": [\n    \"electron\",\n    \"vue\",\n    \"boilerplate\",\n    \"hot\",\n    \"reload\",\n    \"router\",\n    \"vuex\",\n    \"resource\"\n  ],\n  \"author\": \"Greg Holguin <simulatedgreg@gmail.com> (https://github.com/SimulatedGREG)\",\n  \"license\": \"MIT\",\n  \"bugs\": {\n    \"url\": \"https://github.com/SimulatedGREG/electron-vue/issues\"\n  },\n  \"homepage\": \"https://github.com/SimulatedGREG/electron-vue#readme\",\n  \"devDependencies\": {\n    \"suppose\": \"^0.6.1\"\n  }\n}\n"
  },
  {
    "path": "template/.babelrc",
    "content": "{\n  \"comments\": false,\n  \"env\": {\n{{#testing unit e2e}}\n    \"test\": {\n      \"presets\": [\n        [\"env\", {\n          \"targets\": { \"node\": 7 }\n        }],\n        \"stage-0\"\n      ],\n      \"plugins\": [\"istanbul\"]\n    },\n{{/testing}}\n    \"main\": {\n      \"presets\": [\n        [\"env\", {\n          \"targets\": { \"node\": 7 }\n        }],\n        \"stage-0\"\n      ]\n    },\n    \"renderer\": {\n      \"presets\": [\n        [\"env\", {\n          \"modules\": false\n        }],\n        \"stage-0\"\n      ]\n    },\n    \"web\": {\n      \"presets\": [\n        [\"env\", {\n          \"modules\": false\n        }],\n        \"stage-0\"\n      ]\n    }\n  },\n  \"plugins\": [\"transform-runtime\"]\n}\n"
  },
  {
    "path": "template/.electron-vue/build.config.js",
    "content": "const path = require('path')\n\n/**\n * `electron-packager` options\n * https://simulatedgreg.gitbooks.io/electron-vue/content/en/using-electron-packager.html\n */\nmodule.exports = {\n  arch: 'x64',\n  asar: true,\n  dir: path.join(__dirname, '../'),\n  icon: path.join(__dirname, '../build/icons/icon'),\n  ignore: /(^\\/(src|test|\\.[a-z]+|README|yarn|static|dist\\/web))|\\.gitkeep/,\n  out: path.join(__dirname, '../build'),\n  overwrite: true,\n  platform: process.env.BUILD_TARGET || 'all'\n}\n"
  },
  {
    "path": "template/.electron-vue/build.js",
    "content": "'use strict'\n\nprocess.env.NODE_ENV = 'production'\n\nconst { say } = require('cfonts')\nconst chalk = require('chalk')\nconst del = require('del')\n{{#if_eq builder 'packager'}}\nconst packager = require('electron-packager')\n{{else}}\nconst { spawn } = require('child_process')\n{{/if_eq}}\nconst webpack = require('webpack')\nconst Listr = require('listr')\n\n{{#if_eq builder 'packager'}}const buildConfig = require('./build.config'){{/if_eq}}\nconst mainConfig = require('./webpack.main.config')\nconst rendererConfig = require('./webpack.renderer.config')\nconst webConfig = require('./webpack.web.config')\n\nconst doneLog = chalk.bgGreen.white(' DONE ') + ' '\nconst errorLog = chalk.bgRed.white(' ERROR ') + ' '\nconst okayLog = chalk.bgBlue.white(' OKAY ') + ' '\nconst isCI = process.env.CI || false\n\nif (process.env.BUILD_TARGET === 'clean') clean()\nelse if (process.env.BUILD_TARGET === 'web') web()\nelse build()\n\nfunction clean () {\n  del.sync(['build/*', '!build/icons', '!build/icons/icon.*'])\n  console.log(`\\n${doneLog}\\n`)\n  process.exit()\n}\n\nasync function build () {\n  greeting()\n\n  del.sync(['dist/electron/*', '!.gitkeep'])\n\n  const tasks = ['main', 'renderer']\n  const m = new Multispinner(tasks, {\n    preText: 'building',\n    postText: 'process'\n  })\n\n  let results = ''\n\n  const tasks = new Listr(\n    [\n      {\n        title: 'building master process',\n        task: async () => {\n          await pack(mainConfig)\n            .then(result => {\n              results += result + '\\n\\n'\n            })\n            .catch(err => {\n              console.log(`\\n  ${errorLog}failed to build main process`)\n              console.error(`\\n${err}\\n`)\n            })\n        }\n      },\n      {\n        title: 'building renderer process',\n        task: async () => {\n          await pack(rendererConfig)\n            .then(result => {\n              results += result + '\\n\\n'\n            })\n            .catch(err => {\n              console.log(`\\n  ${errorLog}failed to build renderer process`)\n              console.error(`\\n${err}\\n`)\n            })\n        }\n      }\n    ],\n    { concurrent: 2 }\n  )\n\n  await tasks\n    .run()\n    .then(() => {\n      process.stdout.write('\\x1B[2J\\x1B[0f')\n      console.log(`\\n\\n${results}`)\n      console.log(`${okayLog}take it away ${chalk.yellow('`electron-builder`')}\\n`)\n      process.exit()\n    })\n    .catch(err => {\n      process.exit(1)\n    })\n}\n\nfunction pack (config) {\n  return new Promise((resolve, reject) => {\n    config.mode = 'production'\n    webpack(config, (err, stats) => {\n      if (err) reject(err.stack || err)\n      else if (stats.hasErrors()) {\n        let err = ''\n\n        stats.toString({\n          chunks: false,\n          colors: true\n        })\n        .split(/\\r?\\n/)\n        .forEach(line => {\n          err += `    ${line}\\n`\n        })\n\n        reject(err)\n      } else {\n        resolve(stats.toString({\n          chunks: false,\n          colors: true\n        }))\n      }\n    })\n  })\n}\n\n{{#if_eq builder 'packager'}}\nfunction bundleApp () {\n  buildConfig.mode = 'production'\n  packager(buildConfig, (err, appPaths) => {\n    if (err) {\n      console.log(`\\n${errorLog}${chalk.yellow('`electron-packager`')} says...\\n`)\n      console.log(err + '\\n')\n    } else {\n      console.log(`\\n${doneLog}\\n`)\n    }\n  })\n}\n\n{{/if_eq}}\nfunction web () {\n  del.sync(['dist/web/*', '!.gitkeep'])\n  webConfig.mode = 'production'\n  webpack(webConfig, (err, stats) => {\n    if (err || stats.hasErrors()) console.log(err)\n\n    console.log(stats.toString({\n      chunks: false,\n      colors: true\n    }))\n\n    process.exit()\n  })\n}\n\nfunction greeting () {\n  const cols = process.stdout.columns\n  let text = ''\n\n  if (cols > 85) text = 'lets-build'\n  else if (cols > 60) text = 'lets-|build'\n  else text = false\n\n  if (text && !isCI) {\n    say(text, {\n      colors: ['yellow'],\n      font: 'simple3d',\n      space: false\n    })\n  } else console.log(chalk.yellow.bold('\\n  lets-build'))\n  console.log()\n}\n"
  },
  {
    "path": "template/.electron-vue/dev-client.js",
    "content": "const hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true')\n\nhotClient.subscribe(event => {\n  /**\n   * Reload browser when HTMLWebpackPlugin emits a new index.html\n   *\n   * Currently disabled until jantimon/html-webpack-plugin#680 is resolved.\n   * https://github.com/SimulatedGREG/electron-vue/issues/437\n   * https://github.com/jantimon/html-webpack-plugin/issues/680\n   */\n  // if (event.action === 'reload') {\n  //   window.location.reload()\n  // }\n\n  /**\n   * Notify `mainWindow` when `main` process is compiling,\n   * giving notice for an expected reload of the `electron` process\n   */\n  if (event.action === 'compiling') {\n    document.body.innerHTML += `\n      <style>\n        #dev-client {\n          background: #4fc08d;\n          border-radius: 4px;\n          bottom: 20px;\n          box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3);\n          color: #fff;\n          font-family: 'Source Sans Pro', sans-serif;\n          left: 20px;\n          padding: 8px 12px;\n          position: absolute;\n        }\n      </style>\n\n      <div id=\"dev-client\">\n        Compiling Main Process...\n      </div>\n    `\n  }\n})\n"
  },
  {
    "path": "template/.electron-vue/dev-runner.js",
    "content": "'use strict'\n\nconst chalk = require('chalk')\nconst electron = require('electron')\nconst path = require('path')\nconst { say } = require('cfonts')\nconst { spawn } = require('child_process')\nconst webpack = require('webpack')\nconst WebpackDevServer = require('webpack-dev-server')\nconst webpackHotMiddleware = require('webpack-hot-middleware')\n\nconst mainConfig = require('./webpack.main.config')\nconst rendererConfig = require('./webpack.renderer.config')\n\nlet electronProcess = null\nlet manualRestart = false\nlet hotMiddleware\n\nfunction logStats (proc, data) {\n  let log = ''\n\n  log += chalk.yellow.bold(`┏ ${proc} Process ${new Array((19 - proc.length) + 1).join('-')}`)\n  log += '\\n\\n'\n\n  if (typeof data === 'object') {\n    data.toString({\n      colors: true,\n      chunks: false\n    }).split(/\\r?\\n/).forEach(line => {\n      log += '  ' + line + '\\n'\n    })\n  } else {\n    log += `  ${data}\\n`\n  }\n\n  log += '\\n' + chalk.yellow.bold(`┗ ${new Array(28 + 1).join('-')}`) + '\\n'\n\n  console.log(log)\n}\n\nfunction startRenderer () {\n  return new Promise((resolve, reject) => {\n    rendererConfig.entry.renderer = [path.join(__dirname, 'dev-client')].concat(rendererConfig.entry.renderer)\n    rendererConfig.mode = 'development'\n    const compiler = webpack(rendererConfig)\n    hotMiddleware = webpackHotMiddleware(compiler, {\n      log: false,\n      heartbeat: 2500\n    })\n\n    compiler.hooks.compilation.tap('compilation', compilation => {\n      compilation.hooks.htmlWebpackPluginAfterEmit.tapAsync('html-webpack-plugin-after-emit', (data, cb) => {\n        hotMiddleware.publish({ action: 'reload' })\n        cb()\n      })\n    })\n\n    compiler.hooks.done.tap('done', stats => {\n      logStats('Renderer', stats)\n    })\n\n    const server = new WebpackDevServer(\n      compiler,\n      {\n        contentBase: path.join(__dirname, '../'),\n        quiet: true,\n        hot: true,\n        before (app, ctx) {\n          // app.use(hotMiddleware)\n          ctx.middleware.waitUntilValid(() => {\n            resolve()\n          })\n        }\n      }\n    )\n\n    server.listen(9080)\n  })\n}\n\nfunction startMain () {\n  return new Promise((resolve, reject) => {\n    mainConfig.entry.main = [path.join(__dirname, '../src/main/index.dev.js')].concat(mainConfig.entry.main)\n    mainConfig.mode = 'development'\n    const compiler = webpack(mainConfig)\n\n    compiler.hooks.watchRun.tapAsync('watch-run', (compilation, done) => {\n      logStats('Main', chalk.white.bold('compiling...'))\n      hotMiddleware.publish({ action: 'compiling' })\n      done()\n    })\n\n    compiler.watch({}, (err, stats) => {\n      if (err) {\n        console.log(err)\n        return\n      }\n\n      logStats('Main', stats)\n\n      if (electronProcess && electronProcess.kill) {\n        manualRestart = true\n        process.kill(electronProcess.pid)\n        electronProcess = null\n        startElectron()\n\n        setTimeout(() => {\n          manualRestart = false\n        }, 5000)\n      }\n\n      resolve()\n    })\n  })\n}\n\nfunction startElectron () {\n  var args = [\n    '--inspect=5858',\n    path.join(__dirname, '../dist/electron/main.js')\n  ]\n\n  // detect yarn or npm and process commandline args accordingly\n  if (process.env.npm_execpath.endsWith('yarn.js')) {\n    args = args.concat(process.argv.slice(3))\n  } else if (process.env.npm_execpath.endsWith('npm-cli.js')) {\n    args = args.concat(process.argv.slice(2))\n  }\n\n  electronProcess = spawn(electron, args)\n  \n  electronProcess.stdout.on('data', data => {\n    electronLog(data, 'blue')\n  })\n  electronProcess.stderr.on('data', data => {\n    electronLog(data, 'red')\n  })\n\n  electronProcess.on('close', () => {\n    if (!manualRestart) process.exit()\n  })\n}\n\nfunction electronLog (data, color) {\n  let log = ''\n  data = data.toString().split(/\\r?\\n/)\n  data.forEach(line => {\n    log += `  ${line}\\n`\n  })\n  if (/[0-9A-z]+/.test(log)) {\n    console.log(\n      chalk[color].bold('┏ Electron -------------------') +\n      '\\n\\n' +\n      log +\n      chalk[color].bold('┗ ----------------------------') +\n      '\\n'\n    )\n  }\n}\n\nfunction greeting () {\n  const cols = process.stdout.columns\n  let text = ''\n\n  if (cols > 104) text = 'electron-vue'\n  else if (cols > 76) text = 'electron-|vue'\n  else text = false\n\n  if (text) {\n    say(text, {\n      colors: ['yellow'],\n      font: 'simple3d',\n      space: false\n    })\n  } else console.log(chalk.yellow.bold('\\n  electron-vue'))\n  console.log(chalk.blue('  getting ready...') + '\\n')\n}\n\nfunction init () {\n  greeting()\n\n  Promise.all([startRenderer(), startMain()])\n    .then(() => {\n      startElectron()\n    })\n    .catch(err => {\n      console.error(err)\n    })\n}\n\ninit()\n"
  },
  {
    "path": "template/.electron-vue/webpack.main.config.js",
    "content": "'use strict'\n\nprocess.env.BABEL_ENV = 'main'\n\nconst path = require('path')\nconst { dependencies } = require('../package.json')\nconst webpack = require('webpack')\n\nconst MinifyPlugin = require(\"babel-minify-webpack-plugin\")\n\nlet mainConfig = {\n  entry: {\n    main: path.join(__dirname, '../src/main/index.js')\n  },\n  externals: [\n    ...Object.keys(dependencies || {})\n  ],\n  module: {\n    rules: [\n{{#if eslint}}\n      {\n        test: /\\.(js)$/,\n        enforce: 'pre',\n        exclude: /node_modules/,\n        use: {\n          loader: 'eslint-loader',\n          options: {\n            formatter: require('eslint-friendly-formatter')\n          }\n        }\n      },\n{{/if}}\n      {\n        test: /\\.js$/,\n        use: 'babel-loader',\n        exclude: /node_modules/\n      },\n      {\n        test: /\\.node$/,\n        use: 'node-loader'\n      }\n    ]\n  },\n  node: {\n    __dirname: process.env.NODE_ENV !== 'production',\n    __filename: process.env.NODE_ENV !== 'production'\n  },\n  output: {\n    filename: '[name].js',\n    libraryTarget: 'commonjs2',\n    path: path.join(__dirname, '../dist/electron')\n  },\n  plugins: [\n    new webpack.NoEmitOnErrorsPlugin()\n  ],\n  resolve: {\n    extensions: ['.js', '.json', '.node']\n  },\n  target: 'electron-main'\n}\n\n/**\n * Adjust mainConfig for development settings\n */\nif (process.env.NODE_ENV !== 'production') {\n  mainConfig.plugins.push(\n    new webpack.DefinePlugin({\n      '__static': `\"${path.join(__dirname, '../static').replace(/\\\\/g, '\\\\\\\\')}\"`\n    })\n  )\n}\n\n/**\n * Adjust mainConfig for production settings\n */\nif (process.env.NODE_ENV === 'production') {\n  mainConfig.plugins.push(\n    new MinifyPlugin(),\n    new webpack.DefinePlugin({\n      'process.env.NODE_ENV': '\"production\"'\n    })\n  )\n}\n\nmodule.exports = mainConfig\n"
  },
  {
    "path": "template/.electron-vue/webpack.renderer.config.js",
    "content": "'use strict'\n\nprocess.env.BABEL_ENV = 'renderer'\n\nconst path = require('path')\nconst { dependencies } = require('../package.json')\nconst webpack = require('webpack')\n\nconst MinifyPlugin = require(\"babel-minify-webpack-plugin\")\nconst CopyWebpackPlugin = require('copy-webpack-plugin')\nconst MiniCssExtractPlugin = require('mini-css-extract-plugin')\nconst HtmlWebpackPlugin = require('html-webpack-plugin')\nconst { VueLoaderPlugin } = require('vue-loader')\n\n/**\n * List of node_modules to include in webpack bundle\n *\n * Required for specific packages like Vue UI libraries\n * that provide pure *.vue files that need compiling\n * https://simulatedgreg.gitbooks.io/electron-vue/content/en/webpack-configurations.html#white-listing-externals\n */\nlet whiteListedModules = ['vue']\n\nlet rendererConfig = {\n  devtool: '#cheap-module-eval-source-map',\n  entry: {\n    renderer: path.join(__dirname, '../src/renderer/main.js')\n  },\n  externals: [\n    ...Object.keys(dependencies || {}).filter(d => !whiteListedModules.includes(d))\n  ],\n  module: {\n    rules: [\n{{#if eslint}}\n      {\n        test: /\\.(js|vue)$/,\n        enforce: 'pre',\n        exclude: /node_modules/,\n        use: {\n          loader: 'eslint-loader',\n          options: {\n            formatter: require('eslint-friendly-formatter')\n          }\n        }\n      },\n{{/if}}\n    {{#if usesass}}\n      {\n        test: /\\.scss$/,\n        use: ['vue-style-loader', 'css-loader', 'sass-loader']\n      },\n      {\n        test: /\\.sass$/,\n        use: ['vue-style-loader', 'css-loader', 'sass-loader?indentedSyntax']\n      },\n    {{/if}}\n      {\n        test: /\\.less$/,\n        use: ['vue-style-loader', 'css-loader', 'less-loader']\n      },\n      {\n        test: /\\.css$/,\n        use: ['vue-style-loader', 'css-loader']\n      },\n      {\n        test: /\\.html$/,\n        use: 'vue-html-loader'\n      },\n      {\n        test: /\\.js$/,\n        use: 'babel-loader',\n        exclude: /node_modules/\n      },\n      {\n        test: /\\.node$/,\n        use: 'node-loader'\n      },\n      {\n        test: /\\.vue$/,\n        use: {\n          loader: 'vue-loader',\n          options: {\n            extractCSS: process.env.NODE_ENV === 'production',\n            loaders: {\n              sass: 'vue-style-loader!css-loader!sass-loader?indentedSyntax=1',\n              scss: 'vue-style-loader!css-loader!sass-loader',\n              less: 'vue-style-loader!css-loader!less-loader'\n            }\n          }\n        }\n      },\n      {\n        test: /\\.(png|jpe?g|gif|svg)(\\?.*)?$/,\n        use: {\n          loader: 'url-loader',\n          query: {\n            limit: 10000,\n            name: 'imgs/[name]--[folder].[ext]'\n          }\n        }\n      },\n      {\n        test: /\\.(mp4|webm|ogg|mp3|wav|flac|aac)(\\?.*)?$/,\n        loader: 'url-loader',\n        options: {\n          limit: 10000,\n          name: 'media/[name]--[folder].[ext]'\n        }\n      },\n      {\n        test: /\\.(woff2?|eot|ttf|otf)(\\?.*)?$/,\n        use: {\n          loader: 'url-loader',\n          query: {\n            limit: 10000,\n            name: 'fonts/[name]--[folder].[ext]'\n          }\n        }\n      }\n    ]\n  },\n  node: {\n    __dirname: process.env.NODE_ENV !== 'production',\n    __filename: process.env.NODE_ENV !== 'production'\n  },\n  plugins: [\n    new VueLoaderPlugin(),\n    new MiniCssExtractPlugin({filename: 'styles.css'}),\n    new HtmlWebpackPlugin({\n      filename: 'index.html',\n      template: path.resolve(__dirname, '../src/index.ejs'),\n      templateParameters(compilation, assets, options) {\n        return {\n          compilation: compilation,\n          webpack: compilation.getStats().toJson(),\n          webpackConfig: compilation.options,\n          htmlWebpackPlugin: {\n            files: assets,\n            options: options,\n          },\n          process,\n        };\n      },\n      minify: {\n        collapseWhitespace: true,\n        removeAttributeQuotes: true,\n        removeComments: true\n      },\n      nodeModules: process.env.NODE_ENV !== 'production'\n        ? path.resolve(__dirname, '../node_modules')\n        : false\n    }),\n    new webpack.NoEmitOnErrorsPlugin()\n  ],\n  output: {\n    filename: '[name].js',\n    libraryTarget: 'commonjs2',\n    path: path.join(__dirname, '../dist/electron')\n  },\n  resolve: {\n    alias: {\n      '@': path.join(__dirname, '../src/renderer'),\n      'vue$': 'vue/dist/vue.esm.js'\n    },\n    extensions: ['.js', '.vue', '.json', '.css', '.node']\n  },\n  target: 'electron-renderer'\n}\n\n/**\n * Adjust rendererConfig for development settings\n */\nif (process.env.NODE_ENV !== 'production') {\n  rendererConfig.plugins.push(\n    new webpack.HotModuleReplacementPlugin(),\n    new webpack.DefinePlugin({\n      '__static': `\"${path.join(__dirname, '../static').replace(/\\\\/g, '\\\\\\\\')}\"`\n    })\n  )\n}\n\n/**\n * Adjust rendererConfig for production settings\n */\nif (process.env.NODE_ENV === 'production') {\n  rendererConfig.devtool = ''\n\n  rendererConfig.plugins.push(\n    new MinifyPlugin(),\n    new CopyWebpackPlugin([\n      {\n        from: path.join(__dirname, '../static'),\n        to: path.join(__dirname, '../dist/electron/static'),\n        ignore: ['.*']\n      }\n    ]),\n    new webpack.DefinePlugin({\n      'process.env.NODE_ENV': '\"production\"'\n    }),\n    new webpack.LoaderOptionsPlugin({\n      minimize: true\n    })\n  )\n}\n\nmodule.exports = rendererConfig\n"
  },
  {
    "path": "template/.electron-vue/webpack.web.config.js",
    "content": "'use strict'\n\nprocess.env.BABEL_ENV = 'web'\n\nconst path = require('path')\nconst webpack = require('webpack')\n\nconst MinifyPlugin = require(\"babel-minify-webpack-plugin\")\nconst CopyWebpackPlugin = require('copy-webpack-plugin')\nconst MiniCssExtractPlugin = require('mini-css-extract-plugin')\nconst HtmlWebpackPlugin = require('html-webpack-plugin')\nconst { VueLoaderPlugin } = require('vue-loader')\n\nlet webConfig = {\n  devtool: '#cheap-module-eval-source-map',\n  entry: {\n    web: path.join(__dirname, '../src/renderer/main.js')\n  },\n  module: {\n    rules: [\n{{#if eslint}}\n      {\n        test: /\\.(js|vue)$/,\n        enforce: 'pre',\n        exclude: /node_modules/,\n        use: {\n          loader: 'eslint-loader',\n          options: {\n            formatter: require('eslint-friendly-formatter')\n          }\n        }\n      },\n{{/if}}\n    {{#if usesass}}\n      {\n        test: /\\.scss$/,\n        use: ['vue-style-loader', 'css-loader', 'sass-loader']\n      },\n      {\n        test: /\\.sass$/,\n        use: ['vue-style-loader', 'css-loader', 'sass-loader?indentedSyntax']\n      },\n    {{/if}}\n      {\n        test: /\\.less$/,\n        use: ['vue-style-loader', 'css-loader', 'less-loader']\n      },\n      {\n        test: /\\.css$/,\n        use: ['vue-style-loader', 'css-loader']\n      },\n      {\n        test: /\\.html$/,\n        use: 'vue-html-loader'\n      },\n      {\n        test: /\\.js$/,\n        use: 'babel-loader',\n        include: [ path.resolve(__dirname, '../src/renderer') ],\n        exclude: /node_modules/\n      },\n      {\n        test: /\\.vue$/,\n        use: {\n          loader: 'vue-loader',\n          options: {\n            extractCSS: true,\n            loaders: {\n              sass: 'vue-style-loader!css-loader!sass-loader?indentedSyntax=1',\n              scss: 'vue-style-loader!css-loader!sass-loader',\n              less: 'vue-style-loader!css-loader!less-loader'\n            }\n          }\n        }\n      },\n      {\n        test: /\\.(png|jpe?g|gif|svg)(\\?.*)?$/,\n        use: {\n          loader: 'url-loader',\n          query: {\n            limit: 10000,\n            name: 'imgs/[name].[ext]'\n          }\n        }\n      },\n      {\n        test: /\\.(woff2?|eot|ttf|otf)(\\?.*)?$/,\n        use: {\n          loader: 'url-loader',\n          query: {\n            limit: 10000,\n            name: 'fonts/[name].[ext]'\n          }\n        }\n      }\n    ]\n  },\n  plugins: [\n    new VueLoaderPlugin(),\n    new MiniCssExtractPlugin({filename: 'styles.css'}),\n    new HtmlWebpackPlugin({\n      filename: 'index.html',\n      template: path.resolve(__dirname, '../src/index.ejs'),\n      templateParameters(compilation, assets, options) {\n        return {\n          compilation: compilation,\n          webpack: compilation.getStats().toJson(),\n          webpackConfig: compilation.options,\n          htmlWebpackPlugin: {\n            files: assets,\n            options: options,\n          },\n          process,\n        };\n      },\n      minify: {\n        collapseWhitespace: true,\n        removeAttributeQuotes: true,\n        removeComments: true\n      },\n      nodeModules: false\n    }),\n    new webpack.DefinePlugin({\n      'process.env.IS_WEB': 'true'\n    }),\n    new webpack.HotModuleReplacementPlugin(),\n    new webpack.NoEmitOnErrorsPlugin()\n  ],\n  output: {\n    filename: '[name].js',\n    path: path.join(__dirname, '../dist/web')\n  },\n  resolve: {\n    alias: {\n      '@': path.join(__dirname, '../src/renderer'),\n      'vue$': 'vue/dist/vue.esm.js'\n    },\n    extensions: ['.js', '.vue', '.json', '.css']\n  },\n  target: 'web'\n}\n\n/**\n * Adjust webConfig for production settings\n */\nif (process.env.NODE_ENV === 'production') {\n  webConfig.devtool = ''\n\n  webConfig.plugins.push(\n    new MinifyPlugin(),\n    new CopyWebpackPlugin([\n      {\n        from: path.join(__dirname, '../static'),\n        to: path.join(__dirname, '../dist/web/static'),\n        ignore: ['.*']\n      }\n    ]),\n    new webpack.DefinePlugin({\n      'process.env.NODE_ENV': '\"production\"'\n    }),\n    new webpack.LoaderOptionsPlugin({\n      minimize: true\n    })\n  )\n}\n\nmodule.exports = webConfig\n"
  },
  {
    "path": "template/.eslintignore",
    "content": "{{#testing unit e2e}}\ntest/unit/coverage/**\ntest/unit/*.js\ntest/e2e/*.js\n{{/testing}}\n"
  },
  {
    "path": "template/.eslintrc.js",
    "content": "module.exports = {\n  root: true,\n  parser: 'babel-eslint',\n  parserOptions: {\n    sourceType: 'module'\n  },\n  env: {\n    browser: true,\n    node: true\n  },\n  {{#if_eq eslintConfig 'standard'}}\n  extends: 'standard',\n  {{/if_eq}}\n  {{#if_eq eslintConfig 'airbnb'}}\n  extends: 'airbnb-base',\n  {{/if_eq}}\n  globals: {\n    __static: true\n  },\n  plugins: [\n    'html'\n  ],\n  'rules': {\n    {{#if_eq eslintConfig 'standard'}}\n    // allow paren-less arrow functions\n    'arrow-parens': 0,\n    // allow async-await\n    'generator-star-spacing': 0,\n    {{/if_eq}}\n    {{#if_eq eslintConfig 'airbnb'}}\n    'global-require': 0,\n    'import/no-unresolved': 0,\n    'no-param-reassign': 0,\n    'no-shadow': 0,\n    'import/extensions': 0,\n    'import/newline-after-import': 0,\n    'no-multi-assign': 0,\n    {{/if_eq}}\n    // allow debugger during development\n    'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0\n  }\n}\n"
  },
  {
    "path": "template/.gitignore",
    "content": ".DS_Store\ndist/electron/*\ndist/web/*\nbuild/*\n!build/icons\n{{#if unit}}\ncoverage\n{{/if}}\nnode_modules/\nnpm-debug.log\nnpm-debug.log.*\nthumbs.db\n!.gitkeep\n"
  },
  {
    "path": "template/.travis.yml",
    "content": "{{#testing unit e2e}}\n# Commented sections below can be used to run tests on the CI server\n# https://simulatedgreg.gitbooks.io/electron-vue/content/en/testing.html#on-the-subject-of-ci-testing\n{{/testing}}\nosx_image: xcode8.3\nsudo: required\ndist: trusty\nlanguage: c\nmatrix:\n  include:\n  - os: osx\n  - os: linux\n    env: CC=clang CXX=clang++ npm_config_clang=1\n    compiler: clang\ncache:\n  directories:\n  - node_modules\n  - \"$HOME/.electron\"\n  - \"$HOME/.cache\"\naddons:\n  apt:\n    packages:\n    - libgnome-keyring-dev\n    - icnsutils\n{{#testing unit e2e}}\n    #- xvfb\n{{/testing}}\nbefore_install:\n- if [[ \"$TRAVIS_OS_NAME\" == \"osx\" ]]; then brew install git-lfs; fi\n- if [[ \"$TRAVIS_OS_NAME\" == \"linux\" ]]; then sudo apt-get install --no-install-recommends -y icnsutils graphicsmagick xz-utils; fi\ninstall:\n{{#testing unit e2e}}\n#- export DISPLAY=':99.0'\n#- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &\n{{/testing}}\n- nvm install 10\n- curl -o- -L https://yarnpkg.com/install.sh | bash\n- source ~/.bashrc\n- npm install -g xvfb-maybe\n- yarn\nbefore_script:\n- git lfs pull\nscript:\n{{#unit}}\n#- xvfb-maybe node_modules/.bin/karma start test/unit/karma.conf.js\n{{/unit}}\n{{#e2e}}\n#- yarn run pack && xvfb-maybe node_modules/.bin/mocha test/e2e\n{{/e2e}}\n- yarn run build\nbranches:\n  only:\n  - master\n"
  },
  {
    "path": "template/README.md",
    "content": "# {{ name }}\n\n> {{ description }}\n\n#### Build Setup\n\n``` bash\n# install dependencies\nnpm install\n\n# serve with hot reload at localhost:9080\nnpm run dev\n\n# build electron application for production\nnpm run build\n\n{{#testing unit e2e}}\n# run {{#unit}}unit{{/unit}}{{#unit}}{{#e2e}} & {{/e2e}}{{/unit}}{{#e2e}}end-to-end{{/e2e}} tests\nnpm test\n\n{{/testing}}\n\n{{#if eslint}}\n# lint all JS/Vue component files in `src/`\nnpm run lint\n\n{{/if}}\n```\n\n---\n\nThis project was generated with [electron-vue](https://github.com/SimulatedGREG/electron-vue) 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).\n"
  },
  {
    "path": "template/appveyor.yml",
    "content": "{{#testing unit e2e}}\n# Commented sections below can be used to run tests on the CI server\n# https://simulatedgreg.gitbooks.io/electron-vue/content/en/testing.html#on-the-subject-of-ci-testing\n{{/testing}}\nversion: 0.1.{build}\n\nbranches:\n  only:\n    - master\n\nimage: Visual Studio 2017\nplatform:\n  - x64\n\ncache:\n  - node_modules\n  - '%APPDATA%\\npm-cache'\n  - '%USERPROFILE%\\.electron'\n  - '%USERPROFILE%\\AppData\\Local\\Yarn\\cache'\n\ninit:\n  - git config --global core.autocrlf input\n\ninstall:\n  - ps: Install-Product node 8 x64\n  - git reset --hard HEAD\n  - yarn\n  - node --version\n\nbuild_script:\n{{#testing unit e2e}}\n  #- yarn test\n{{/testing}}\n  - yarn build\n\ntest: off\n"
  },
  {
    "path": "template/dist/electron/.gitkeep",
    "content": ""
  },
  {
    "path": "template/dist/web/.gitkeep",
    "content": ""
  },
  {
    "path": "template/package.json",
    "content": "{\n  \"name\": \"{{ name }}\",\n{{#if_eq builder 'packager'}}\n  \"productName\": \"{{ name }}\",\n{{/if_eq}}\n  \"version\": \"{{ appver }}\",\n  \"author\": \"{{ author }}\",\n  \"description\": \"{{ description }}\",\n  \"license\": null,\n  \"main\": \"./dist/electron/main.js\",\n  \"scripts\": {\n    {{#if_eq builder 'packager'}}\n    \"build\": \"node .electron-vue/build.js\",\n    \"build:darwin\": \"cross-env BUILD_TARGET=darwin node .electron-vue/build.js\",\n    \"build:linux\": \"cross-env BUILD_TARGET=linux node .electron-vue/build.js\",\n    \"build:mas\": \"cross-env BUILD_TARGET=mas node .electron-vue/build.js\",\n    \"build:win32\": \"cross-env BUILD_TARGET=win32 node .electron-vue/build.js\",\n    {{else}}\n    \"build\": \"node .electron-vue/build.js && electron-builder\",\n    \"build:dir\": \"node .electron-vue/build.js && electron-builder --dir\",\n    {{/if_eq}}\n    \"build:clean\": \"cross-env BUILD_TARGET=clean node .electron-vue/build.js\",\n    \"build:web\": \"cross-env BUILD_TARGET=web node .electron-vue/build.js\",\n    \"dev\": \"node .electron-vue/dev-runner.js\",\n    {{#if e2e}}\n    \"e2e\": \"npm run pack && mocha test/e2e\",\n    {{/if}}\n    {{#if eslint}}\n    \"lint\": \"eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter src{{#testing unit e2e}} test{{/testing}}\",\n    \"lint:fix\": \"eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter --fix src{{#testing unit e2e}} test{{/testing}}\",\n    {{/if}}\n    \"pack\": \"npm run pack:main && npm run pack:renderer\",\n    \"pack:main\": \"cross-env NODE_ENV=production webpack --progress --colors --config .electron-vue/webpack.main.config.js\",\n    \"pack:renderer\": \"cross-env NODE_ENV=production webpack --progress --colors --config .electron-vue/webpack.renderer.config.js\",\n    {{#testing unit e2e}}\n    \"test\": \"{{#unit}}npm run unit{{/unit}}{{#unit}}{{#e2e}} && {{/e2e}}{{/unit}}{{#e2e}}npm run e2e{{/e2e}}\",\n    {{/testing}}\n    {{#if unit}}\n    \"unit\": \"karma start test/unit/karma.conf.js\",\n    {{/if}}\n    \"postinstall\": \"{{#if eslint}}npm run lint:fix{{/if}}\"\n  },\n  {{#if_eq builder 'builder'}}\n  \"build\": {\n    \"productName\": \"{{ name }}\",\n    \"appId\": \"{{ appid }}\",\n    \"directories\": {\n      \"output\": \"build\"\n    },\n    \"files\": [\n      \"dist/electron/**/*\"\n    ],\n    \"dmg\": {\n      \"contents\": [\n        {\n          \"x\": 410,\n          \"y\": 150,\n          \"type\": \"link\",\n          \"path\": \"/Applications\"\n        },\n        {\n          \"x\": 130,\n          \"y\": 150,\n          \"type\": \"file\"\n        }\n      ]\n    },\n    \"mac\": {\n      \"icon\": \"build/icons/icon.icns\"\n    },\n    \"win\": {\n      \"icon\": \"build/icons/icon.ico\"\n    },\n    \"linux\": {\n      \"icon\": \"build/icons\"\n    }\n  },\n{{/if_eq}}\n  \"dependencies\": {\n    \"vue\": \"^2.5.16\"{{deps plugins}}\n  },\n  \"devDependencies\": {\n    \"ajv\": \"^6.5.0\",\n    \"babel-core\": \"^6.26.3\",\n    \"babel-loader\": \"^7.1.4\",\n    \"babel-plugin-transform-runtime\": \"^6.23.0\",\n    \"babel-preset-env\": \"^1.7.0\",\n    \"babel-preset-stage-0\": \"^6.24.1\",\n    \"babel-register\": \"^6.26.0\",\n    \"babel-minify-webpack-plugin\": \"^0.3.1\",\n    \"cfonts\": \"^2.1.2\",\n    \"chalk\": \"^2.4.1\",\n    \"copy-webpack-plugin\": \"^4.5.1\",\n    \"cross-env\": \"^5.1.6\",\n    \"css-loader\": \"^0.28.11\",\n    \"del\": \"^3.0.0\",\n    \"devtron\": \"^1.4.0\",\n    \"electron\": \"^2.0.4\",\n    \"electron-debug\": \"^1.5.0\",\n    \"electron-devtools-installer\": \"^2.2.4\",\n    {{#if_eq builder 'packager'}}\n    \"electron-packager\": \"^12.1.0\",\n    \"electron-rebuild\": \"^1.8.1\",\n    {{else}}\n    \"electron-builder\": \"^20.19.2\",\n    {{/if_eq}}\n    {{#eslint}}\n    \"babel-eslint\": \"^8.2.3\",\n    \"eslint\": \"^4.19.1\",\n    \"eslint-friendly-formatter\": \"^4.0.1\",\n    \"eslint-loader\": \"^2.0.0\",\n    \"eslint-plugin-html\": \"^4.0.3\",\n    {{#if_eq eslintConfig 'standard'}}\n    \"eslint-config-standard\": \"^11.0.0\",\n    \"eslint-plugin-import\": \"^2.12.0\",\n    \"eslint-plugin-node\": \"^6.0.1\",\n    \"eslint-plugin-promise\": \"^3.8.0\",\n    \"eslint-plugin-standard\": \"^3.1.0\",\n    {{/if_eq}}\n    {{#if_eq eslintConfig 'airbnb'}}\n    \"eslint-config-airbnb-base\": \"^12.1.0\",\n    \"eslint-import-resolver-webpack\": \"^0.10.0\",\n    \"eslint-plugin-import\": \"^2.12.0\",\n    {{/if_eq}}\n    {{/eslint}}\n    \"mini-css-extract-plugin\": \"0.4.0\",\n    \"file-loader\": \"^1.1.11\",\n    \"html-webpack-plugin\": \"^3.2.0\",\n    {{#if unit}}\n    \"inject-loader\": \"^4.0.1\",\n    \"karma\": \"^2.0.2\",\n    \"karma-chai\": \"^0.1.0\",\n    \"karma-coverage\": \"^1.1.2\",\n    \"karma-electron\": \"^6.0.0\",\n    \"karma-mocha\": \"^1.3.0\",\n    \"karma-sourcemap-loader\": \"^0.3.7\",\n    \"karma-spec-reporter\": \"^0.0.32\",\n    \"karma-webpack\": \"^3.0.0\",\n    {{/if}}\n    \"listr\": \"^0.14.3\",\n    {{#if e2e}}\n    \"require-dir\": \"^1.0.0\",\n    \"spectron\": \"^3.8.0\",\n    {{/if}}\n    {{#testing unit e2e}}\n    \"babel-plugin-istanbul\": \"^4.1.6\",\n    \"chai\": \"^4.1.2\",\n    \"mocha\": \"^5.2.0\",\n    {{/testing}}\n    \"node-loader\": \"^0.6.0\",\n    {{#if usesass}}\n    \"node-sass\": \"^4.9.2\",\n    \"sass-loader\": \"^7.0.3\",\n    {{/if}}\n    \"style-loader\": \"^0.21.0\",\n    \"url-loader\": \"^1.0.1\",\n    \"vue-html-loader\": \"^1.2.4\",\n    \"vue-loader\": \"^15.2.4\",\n    \"vue-style-loader\": \"^4.1.0\",\n    \"vue-template-compiler\": \"^2.5.16\",\n    \"webpack-cli\": \"^3.0.8\",\n    \"webpack\": \"^4.15.1\",\n    \"webpack-dev-server\": \"^3.1.4\",\n    \"webpack-hot-middleware\": \"^2.22.2\",\n    \"webpack-merge\": \"^4.1.3\"\n  }\n}\n"
  },
  {
    "path": "template/src/index.ejs",
    "content": "<!DOCTYPE html>\n<html>\n  <head>\n    <meta charset=\"utf-8\">\n    <title>{{ name }}</title>\n    <% if (htmlWebpackPlugin.options.nodeModules) { %>\n      <!-- Add `node_modules/` to global paths so `require` works properly in development -->\n      <script>\n        require('module').globalPaths.push('<%= htmlWebpackPlugin.options.nodeModules.replace(/\\\\/g, '\\\\\\\\') %>')\n      </script>\n    <% } %>\n  </head>\n  <body>\n    <div id=\"app\"></div>\n    <!-- Set `__static` path to static files in production -->\n    <% if (!process.browser) { %>\n      <script>\n        if (process.env.NODE_ENV !== 'development') window.__static = require('path').join(__dirname, '/static').replace(/\\\\/g, '\\\\\\\\')\n      </script>\n    <% } %>\n\n    <!-- webpack builds are automatically injected -->\n  </body>\n</html>\n"
  },
  {
    "path": "template/src/main/index.dev.js",
    "content": "/**\n * This file is used specifically and only for development. It installs\n * `electron-debug` & `vue-devtools`. There shouldn't be any need to\n *  modify this file, but it can be used to extend your development\n *  environment.\n */\n\n/* eslint-disable */\n\n// Install `electron-debug` with `devtron`\nrequire('electron-debug')({ showDevTools: true })\n\n// Install `vue-devtools`\nrequire('electron').app.on('ready', () => {\n  let installExtension = require('electron-devtools-installer')\n  installExtension.default(installExtension.VUEJS_DEVTOOLS)\n    .then(() => {})\n    .catch(err => {\n      console.log('Unable to install `vue-devtools`: \\n', err)\n    })\n})\n\n// Require `main` process to boot app\nrequire('./index')"
  },
  {
    "path": "template/src/main/index.js",
    "content": "{{#if_eq eslintConfig 'standard'}}\n'use strict'\n\n{{/if_eq}}\nimport { app, BrowserWindow } from 'electron'{{#if_eq eslintConfig 'airbnb'}} // eslint-disable-line{{/if_eq}}\n{{#isEnabled plugins 'vuex-electron'}}\nimport '../renderer/store'\n{{/isEnabled}}\n\n/**\n * Set `__static` path to static files in production\n * https://simulatedgreg.gitbooks.io/electron-vue/content/en/using-static-assets.html\n */\nif (process.env.NODE_ENV !== 'development') {\n  global.__static = require('path').join(__dirname, '/static').replace(/\\\\/g, '\\\\\\\\'){{#if_eq eslintConfig 'airbnb'}} // eslint-disable-line{{/if_eq}}\n}\n\nlet mainWindow\nconst winURL = process.env.NODE_ENV === 'development'\n  ? `http://localhost:9080`\n  : `file://${__dirname}/index.html`\n\nfunction createWindow () {\n  /**\n   * Initial window options\n   */\n  mainWindow = new BrowserWindow({\n    height: 563,\n    useContentSize: true,\n    width: 1000\n  })\n\n  mainWindow.loadURL(winURL)\n\n  mainWindow.on('closed', () => {\n    mainWindow = null\n  })\n}\n\napp.on('ready', createWindow)\n\napp.on('window-all-closed', () => {\n  if (process.platform !== 'darwin') {\n    app.quit()\n  }\n})\n\napp.on('activate', () => {\n  if (mainWindow === null) {\n    createWindow()\n  }\n})\n{{#if_eq builder 'builder'}}\n\n/**\n * Auto Updater\n *\n * Uncomment the following code below and install `electron-updater` to\n * support auto updating. Code Signing with a valid certificate is required.\n * https://simulatedgreg.gitbooks.io/electron-vue/content/en/using-electron-builder.html#auto-updating\n */\n\n/*\nimport { autoUpdater } from 'electron-updater'\n\nautoUpdater.on('update-downloaded', () => {\n  autoUpdater.quitAndInstall()\n})\n\napp.on('ready', () => {\n  if (process.env.NODE_ENV === 'production') autoUpdater.checkForUpdates()\n})\n */\n{{/if_eq}}\n"
  },
  {
    "path": "template/src/renderer/App.vue",
    "content": "<template>\n  <div id=\"app\">\n    {{#isEnabled plugins 'vue-router'}}\n    <router-view></router-view>\n    {{else}}\n    <landing-page></landing-page>\n    {{/isEnabled}}\n  </div>\n</template>\n\n<script>\n{{#isEnabled plugins 'vue-router'}}\n{{else}}\n  import LandingPage from '@/components/LandingPage'\n\n{{/isEnabled}}\n  export default {\n    name: '{{ name }}'{{#isEnabled plugins 'vue-router'}}{{else}},{{/isEnabled}}\n{{#isEnabled plugins 'vue-router'}}\n{{else}}\n    components: {\n      LandingPage\n    }\n{{/isEnabled}}\n  }\n</script>\n\n<style>\n  /* CSS */\n</style>\n"
  },
  {
    "path": "template/src/renderer/assets/.gitkeep",
    "content": ""
  },
  {
    "path": "template/src/renderer/components/LandingPage/SystemInformation.vue",
    "content": "<template>\n  <div>\n    <div class=\"title\">Information</div>\n    <div class=\"items\">\n{{#isEnabled plugins 'vue-router'}}\n      <div class=\"item\">\n        <div class=\"name\">Path:</div>\n        <div class=\"value\">\\{{ path }}</div>\n      </div>\n      <div class=\"item\">\n        <div class=\"name\">Route Name:</div>\n        <div class=\"value\">\\{{ name }}</div>\n      </div>\n{{/isEnabled}}\n      <div class=\"item\">\n        <div class=\"name\">Vue.js:</div>\n        <div class=\"value\">\\{{ vue }}</div>\n      </div>\n      <div class=\"item\">\n        <div class=\"name\">Electron:</div>\n        <div class=\"value\">\\{{ electron }}</div>\n      </div>\n      <div class=\"item\">\n        <div class=\"name\">Node:</div>\n        <div class=\"value\">\\{{ node }}</div>\n      </div>\n      <div class=\"item\">\n        <div class=\"name\">Platform:</div>\n        <div class=\"value\">\\{{ platform }}</div>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script>\n  export default {\n    data () {\n      return {\n        electron: process.versions.electron,\n        {{#isEnabled plugins 'vue-router'}}\n        name: this.$route.name,\n        {{/isEnabled}}\n        node: process.versions.node,\n        {{#isEnabled plugins 'vue-router'}}\n        path: this.$route.path,\n        {{/isEnabled}}\n        platform: require('os').platform(),\n        vue: require('vue/package.json').version\n      }\n    }\n  }\n</script>\n\n<style scoped>\n  .title {\n    color: #888;\n    font-size: 18px;\n    font-weight: initial;\n    letter-spacing: .25px;\n    margin-top: 10px;\n  }\n\n  .items { margin-top: 8px; }\n\n  .item {\n    display: flex;\n    margin-bottom: 6px;\n  }\n\n  .item .name {\n    color: #6a6a6a;\n    margin-right: 6px;\n  }\n\n  .item .value {\n    color: #35495e;\n    font-weight: bold;\n  }\n</style>\n"
  },
  {
    "path": "template/src/renderer/components/LandingPage.vue",
    "content": "<template>\n  <div id=\"wrapper\">\n    <img id=\"logo\" src=\"~@/assets/logo.png\" alt=\"electron-vue\">\n    <main>\n      <div class=\"left-side\">\n        <span class=\"title\">\n          Welcome to your new project!\n        </span>\n        <system-information></system-information>\n      </div>\n\n      <div class=\"right-side\">\n        <div class=\"doc\">\n          <div class=\"title\">Getting Started</div>\n          <p>\n            electron-vue comes packed with detailed documentation that covers everything from\n            internal configurations, using the project structure, building your application,\n            and so much more.\n          </p>\n          <button @click=\"open('https://simulatedgreg.gitbooks.io/electron-vue/content/')\">Read the Docs</button><br><br>\n        </div>\n        <div class=\"doc\">\n          <div class=\"title alt\">Other Documentation</div>\n          <button class=\"alt\" @click=\"open('https://electron.atom.io/docs/')\">Electron</button>\n          <button class=\"alt\" @click=\"open('https://vuejs.org/v2/guide/')\">Vue.js</button>\n        </div>\n      </div>\n    </main>\n  </div>\n</template>\n\n<script>\n  import SystemInformation from './LandingPage/SystemInformation'\n\n  export default {\n    name: 'landing-page',\n    components: { SystemInformation },\n    methods: {\n      open (link) {\n        {{#isEnabled plugins 'vue-electron'}}this.$electron{{else}}require('electron'){{/isEnabled}}.shell.openExternal(link)\n      }\n    }\n  }\n</script>\n\n<style>\n  @import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro');\n\n  * {\n    box-sizing: border-box;\n    margin: 0;\n    padding: 0;\n  }\n\n  body { font-family: 'Source Sans Pro', sans-serif; }\n\n  #wrapper {\n    background:\n      radial-gradient(\n        ellipse at top left,\n        rgba(255, 255, 255, 1) 40%,\n        rgba(229, 229, 229, .9) 100%\n      );\n    height: 100vh;\n    padding: 60px 80px;\n    width: 100vw;\n  }\n\n  #logo {\n    height: auto;\n    margin-bottom: 20px;\n    width: 420px;\n  }\n\n  main {\n    display: flex;\n    justify-content: space-between;\n  }\n\n  main > div { flex-basis: 50%; }\n\n  .left-side {\n    display: flex;\n    flex-direction: column;\n  }\n\n  .welcome {\n    color: #555;\n    font-size: 23px;\n    margin-bottom: 10px;\n  }\n\n  .title {\n    color: #2c3e50;\n    font-size: 20px;\n    font-weight: bold;\n    margin-bottom: 6px;\n  }\n\n  .title.alt {\n    font-size: 18px;\n    margin-bottom: 10px;\n  }\n\n  .doc p {\n    color: black;\n    margin-bottom: 10px;\n  }\n\n  .doc button {\n    font-size: .8em;\n    cursor: pointer;\n    outline: none;\n    padding: 0.75em 2em;\n    border-radius: 2em;\n    display: inline-block;\n    color: #fff;\n    background-color: #4fc08d;\n    transition: all 0.15s ease;\n    box-sizing: border-box;\n    border: 1px solid #4fc08d;\n  }\n\n  .doc button.alt {\n    color: #42b983;\n    background-color: transparent;\n  }\n</style>\n"
  },
  {
    "path": "template/src/renderer/main.js",
    "content": "import Vue from 'vue'\n{{#isEnabled plugins 'axios'}}\nimport axios from 'axios'\n{{/isEnabled}}\n\nimport App from './App'\n{{#isEnabled plugins 'vue-router'}}\nimport router from './router'\n{{/isEnabled}}\n{{#isEnabled plugins 'vuex'}}\nimport store from './store'\n{{/isEnabled}}\n\n{{#isEnabled plugins 'vue-electron'}}\nif (!process.env.IS_WEB) Vue.use(require('vue-electron'))\n{{/isEnabled}}\n{{#isEnabled plugins 'axios'}}\nVue.http = Vue.prototype.$http = axios\n{{/isEnabled}}\nVue.config.productionTip = false\n\n/* eslint-disable no-new */\nnew Vue({\n  components: { App },\n  {{#isEnabled plugins 'vue-router'}}\n  router,\n  {{/isEnabled}}\n  {{#isEnabled plugins 'vuex'}}\n  store,\n  {{/isEnabled}}\n  template: '<App/>'\n}).$mount('#app')\n"
  },
  {
    "path": "template/src/renderer/router/index.js",
    "content": "import Vue from 'vue'\nimport Router from 'vue-router'\n\nVue.use(Router)\n\nexport default new Router({\n  routes: [\n    {\n      path: '/',\n      name: 'landing-page',\n      component: require('@/components/LandingPage').default\n    },\n    {\n      path: '*',\n      redirect: '/'\n    }\n  ]\n})\n"
  },
  {
    "path": "template/src/renderer/store/index.js",
    "content": "import Vue from 'vue'\nimport Vuex from 'vuex'\n\n{{#isEnabled plugins 'vuex-electron'}}\nimport { createPersistedState, createSharedMutations } from 'vuex-electron'\n\n{{/isEnabled}}\nimport modules from './modules'\n\nVue.use(Vuex)\n\nexport default new Vuex.Store({\n  modules,\n  {{#isEnabled plugins 'vuex-electron'}}\n  plugins: [\n    createPersistedState(),\n    createSharedMutations()\n  ],\n  {{/isEnabled}}\n  strict: process.env.NODE_ENV !== 'production'\n})\n"
  },
  {
    "path": "template/src/renderer/store/modules/Counter.js",
    "content": "const state = {\n  main: 0\n}\n\nconst mutations = {\n  DECREMENT_MAIN_COUNTER (state) {\n    {{#if_eq eslintConfig 'airbnb'}}state.main = state.main - 1{{else}}state.main--{{/if_eq}}\n  },\n  INCREMENT_MAIN_COUNTER (state) {\n    {{#if_eq eslintConfig 'airbnb'}}state.main = state.main + 1{{else}}state.main++{{/if_eq}}\n  }\n}\n\nconst actions = {\n  someAsyncTask ({ commit }) {\n    // do something async\n    commit('INCREMENT_MAIN_COUNTER')\n  }\n}\n\nexport default {\n  state,\n  mutations,\n  actions\n}\n"
  },
  {
    "path": "template/src/renderer/store/modules/index.js",
    "content": "/**\n * The file enables `@/store/index.js` to import all vuex modules\n * in a one-shot manner. There should not be any reason to edit this file.\n */\n\nconst files = require.context('.', false, /\\.js$/)\nconst modules = {}\n\nfiles.keys().forEach(key => {\n  if (key === './index.js') return\n  modules[key.replace(/(\\.\\/|\\.js)/g, '')] = files(key).default\n})\n\nexport default modules\n"
  },
  {
    "path": "template/static/.gitkeep",
    "content": ""
  },
  {
    "path": "template/test/.eslintrc",
    "content": "{\n  \"env\": {\n    \"mocha\": true\n  },\n  \"globals\": {\n    \"assert\": true,\n    \"expect\": true,\n    \"should\": true,\n    \"__static\": true\n  }{{#if eslint}}{{#if_eq eslintConfig 'airbnb'}},\n  \"rules\": {\n    \"func-names\": 0,\n    \"prefer-arrow-callback\": 0\n  }{{/if_eq}}{{/if}}\n}\n"
  },
  {
    "path": "template/test/e2e/index.js",
    "content": "'use strict'\n\n// Set BABEL_ENV to use proper env config\nprocess.env.BABEL_ENV = 'test'\n\n// Enable use of ES6+ on required files\nrequire('babel-register')({\n  ignore: /node_modules/\n})\n\n// Attach Chai APIs to global scope\nconst { expect, should, assert } = require('chai')\nglobal.expect = expect\nglobal.should = should\nglobal.assert = assert\n\n// Require all JS files in `./specs` for Mocha to consume\nrequire('require-dir')('./specs')\n"
  },
  {
    "path": "template/test/e2e/specs/Launch.spec.js",
    "content": "import utils from '../utils'\n\ndescribe('Launch', function () {\n  beforeEach(utils.beforeEach)\n  afterEach(utils.afterEach)\n\n  it('shows the proper application title', function () {\n    return this.app.client.getTitle()\n      .then(title => {\n        expect(title).to.equal('{{ name }}')\n      })\n  })\n})\n"
  },
  {
    "path": "template/test/e2e/utils.js",
    "content": "import electron from 'electron'\nimport { Application } from 'spectron'\n\nexport default {\n  afterEach () {\n    this.timeout(10000)\n\n    if (this.app && this.app.isRunning()) {\n      return this.app.stop()\n    }\n  },\n  beforeEach () {\n    this.timeout(10000)\n    this.app = new Application({\n      path: electron,\n      args: ['dist/electron/main.js'],\n      startTimeout: 10000,\n      waitTimeout: 10000\n    })\n\n    return this.app.start()\n  }\n}\n"
  },
  {
    "path": "template/test/unit/index.js",
    "content": "import Vue from 'vue'\nVue.config.devtools = false\nVue.config.productionTip = false\n\n// require all test files (files that ends with .spec.js)\nconst testsContext = require.context('./specs', true, /\\.spec$/)\ntestsContext.keys().forEach(testsContext)\n\n// require all src files except main.js for coverage.\n// you can also change this to match only the subset of files that\n// you want coverage for.\nconst srcContext = require.context('../../src/renderer', true, /^\\.\\/(?!main(\\.js)?$)/)\nsrcContext.keys().forEach(srcContext)\n"
  },
  {
    "path": "template/test/unit/karma.conf.js",
    "content": "'use strict'\n\nconst path = require('path')\nconst merge = require('webpack-merge')\nconst webpack = require('webpack')\n\nconst baseConfig = require('../../.electron-vue/webpack.renderer.config')\nconst projectRoot = path.resolve(__dirname, '../../src/renderer')\n\n// Set BABEL_ENV to use proper preset config\nprocess.env.BABEL_ENV = 'test'\n\nlet webpackConfig = merge(baseConfig, {\n  devtool: '#inline-source-map',\n  plugins: [\n    new webpack.DefinePlugin({\n      'process.env.NODE_ENV': '\"testing\"'\n    })\n  ]\n})\n\n// don't treat dependencies as externals\ndelete webpackConfig.entry\ndelete webpackConfig.externals\ndelete webpackConfig.output.libraryTarget\n\n// apply vue option to apply isparta-loader on js\nwebpackConfig.module.rules\n  .find(rule => rule.use.loader === 'vue-loader').use.options.loaders.js = 'babel-loader'\n\nmodule.exports = config => {\n  config.set({\n    browsers: ['visibleElectron'],\n    client: {\n      useIframe: false\n    },\n    coverageReporter: {\n      dir: './coverage',\n      reporters: [\n        { type: 'lcov', subdir: '.' },\n        { type: 'text-summary' }\n      ]\n    },\n    customLaunchers: {\n      'visibleElectron': {\n        base: 'Electron',\n        flags: ['--show']\n      }\n    },\n    frameworks: ['mocha', 'chai'],\n    files: ['./index.js'],\n    preprocessors: {\n      './index.js': ['webpack', 'sourcemap']\n    },\n    reporters: ['spec', 'coverage'],\n    singleRun: true,\n    webpack: webpackConfig,\n    webpackMiddleware: {\n      noInfo: true\n    }\n  })\n}\n"
  },
  {
    "path": "template/test/unit/specs/LandingPage.spec.js",
    "content": "import Vue from 'vue'\nimport LandingPage from '@/components/LandingPage'\n\ndescribe('LandingPage.vue', () => {\n  it('should render correct contents', () => {\n    const vm = new Vue({\n      el: document.createElement('div'),\n      render: h => h(LandingPage)\n    }).$mount()\n\n    expect(vm.$el.querySelector('.title').textContent).to.contain('Welcome to your new project!')\n  })\n})\n"
  },
  {
    "path": "tests/builds/.gitkeep",
    "content": ""
  },
  {
    "path": "tests/builds.json",
    "content": "{\n  \"default\": [\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\"\n  ],\n  \"eslint-airbnb\": [\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\u001b[B\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\"\n  ],\n  \"eslint-none\": [\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\u001b[B\\u001b[B\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\"\n  ],\n  \"no-router\": [\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\u001b[B\\u001b[B \\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\"\n  ],\n  \"no-vuex\": [\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\u001b[B\\u001b[B\\u001b[B \\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\"\n  ],\n  \"no-router-vuex\": [\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\u001b[B\\u001b[B \\u001b[B \\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\"\n  ],\n  \"no-unit\": [\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"n\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\"\n  ],\n  \"no-end-to-end\": [\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"n\\n\",\n    \"\\n\",\n    \"\\n\"\n  ],\n  \"builder\": [\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"\\u001b[B\\n\",\n    \"\\n\"\n  ]\n}\n"
  },
  {
    "path": "tests/scaffold.js",
    "content": "'use strict'\n\nconst projectDir = process.env.SEMAPHORE_PROJECT_DIR\nconst templateName = process.argv[2]\n\nconst suppose = require('suppose')\nconst template = require('./builds.json')[templateName]\n\nconst YELLOW = '\\x1b[33m'\nconst END = '\\x1b[0m'\n\nprocess.chdir(process.cwd() + '/builds')\n\ngenerate(templateName, template)\n\nsetTimeout(() => {\n  process.exit()\n}, 4000)\n\nfunction generate (key, build) {\n  console.log(`${YELLOW}Generating \\`${key}\\`${END}`)\n\n  suppose('vue', ['init', `${projectDir}`, key], { debug: process.stdout })\n    .when(/Application Name/g).respond(build[0])\n    .when(/Application Id/g).respond(build[1])\n    .when(/Application Version/g).respond(build[2])\n    .when(/Project description/g).respond(build[3])\n    .when(/Scss/g).respond(build[4])\n    .when(/plugins/g).respond(build[5])\n    .when(/ESLint/g).respond(build[6])\n    .when(/config/g).respond(build[7])\n    .when(/unit/g).respond(build[8])\n    .when(/end-to-end/g).respond(build[9])\n    .when(/build tool/g).respond(build[10])\n    .when(/author/g).respond(build[11])\n  .on('error', err => {\n    console.log(err.message)\n  })\n  .end(code => {\n    process.exit(code)\n  })\n}\n\n"
  },
  {
    "path": "tests/scaffold.sh",
    "content": "#!/bin/bash\nset -e\n\n# Scaffold boilerplate with given templateName\ncd \"$PWD/tests\"\nnode scaffold.js \"$1\"\n\n# Install dependencies\ncd \"$PWD/builds/$1\"\nyarn\n\n# Run unit/e2e testing\nyarn test\n\n# Run webpack and build electron\nyarn run build\n\n# Clean up current scaffold\ncd ..\nrm -rf \"$1\"\n"
  },
  {
    "path": "tests/wine.sh",
    "content": "#!/bin/bash\n\n# Update lists\nsudo apt-get update\n\n# Preset agreement to install ttf programmatically\necho ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections\nsudo apt-get -y install ttf-mscorefonts-installer\n\n# Install wine for win32 building support\nsudo apt-get -y install wine\n\n# Install `electron-builder` dependencies\nsudo apt-get install --no-install-recommends -y icnsutils graphicsmagick xz-utils\n"
  }
]