$ vue init --offline electron-vue-master electron-vue-demo > Use cached template at ~\.vue-templates\electron-vue-master
? Application Name electron-vue-demo(项目名) ? Application Id com.compilemind(Id,这里本人使用了自己的域名) ? Application Version 0.0.1(版本) ? Project description electron vue demo(描述) ? Use Sass / Scss? No(是否使用Sass/Scss编译器) ? Select which Vue plugins to install (Press <space> to select, <a> to toggle all, <i> to invert selection) axios, vue-el, ectron, vue-router, vuex, vuex-electron(插件包) ? Use linting with ESLint? Yes(启用ESlint) ? Which ESLint config would you like to use? Standard(ESLint配置) ? Set up unit testing with Karma + Mocha? No(测试模块) ? Set up end-to-end testing with Spectron + Mocha? No(测试模块) ? What build tool would you like to use? builder # 这里我们使用electron-builder构建可执行程序 ? author w4ngzhen <[email protected]>
vue-cli · Generated "electron-vue-demo".
运行Electron-Vue示例
1 2 3
$ cd electron-vue-demo $ yarn (or `npm install`) $ yarn run dev (or `npm run dev`)