Electron使用筆記

vue部分

cnpm install -g vue-cli vue init simulatedgreg/electron-vue my-project

electron下載失敗解決辦法:單獨設置electron爲淘寶鏡像

npm config set electron_mirror https://npm.taobao.org/mirrors/electron/

yarn config set electron_mirror https://npm.taobao.org/mirrors/electron/

使用vue-electron腳手架進行vuex賦值時,失敗的解決辦法

註釋掉store目錄下index.js的createSharedMutations插件

 

react部分

cnpm install -g electron

cnpm install -g create-react-app

cnpm install -g yarn

yarn config set registry https://registry.npm.taobao.org -g

yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g

yarn start

yarn add antd

yarn add react-app-rewired --dev

 

"start": "react-app-rewired start", "build": "react-app-rewired build",  "test": "react-app-rewired test --env=jsdom",

 

https://github.com/jschr/electron-react-redux-boilerplate.git

https://gitee.com/lanten/electron-antd.git

https://github.com/wenris/electron-react-antd-startkit.git

https://github.com/moxun33/electron-react-mobx-antd-boilerplate.git

https://github.com/ConardLi/electron-react.git

 

git clone --depth 1 --single-branch --branch master https://github.com/electron-react-boilerplate/electron-react-boilerplate.git your-project-name

 

 

 

 

 

 

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章