Skip to content

A boilerplate of electron-react-antd-mobx-ts with simple example开发脚手架,可直接用于开发桌面应用

License

Notifications You must be signed in to change notification settings

invincibleyolk/electron-react-antd-mobx-ts-boilerplate

Repository files navigation

electron-react-antd-mobx-ts-boilerplate

A boilerplate of electron&react&antd&mobx with simple example
Absolutely can run!(Has tested in my own computer. Contact me if you can't😂)
绝对可以用的脚手架!我自己已经在我电脑里试过,跑不起来你找我😂 好用的话点⭐呀哈哈哈

Please give me a ⭐ if you like it 😘

Updates 🎉

[4.26] support Less 支持Less
[4.16] DEV/PROD env swith 解决生产/开发环境切换的问题

How to use ❓

after you clone this repo to your local, input
npm install in your terminal.

In package.json file, DEV is a boolean and it controls if it's in development env. dev env:
npm run start // in your terminal 1
npm run electron-dev // in your terminal 2

prod env:
npm run build // in your terminal 1
npm run electron-build // in your terminal 2

I also add an easy sample for the use of mobx. The data are stored in /store/ folder. So the model and view are seperated.


咋用 ❓

把项目克隆到本地后,在终端输入
npm install

注:package.json 文件中的DEV控制环境。 为true时是开发环境,false为生产环境

开发环境:
npm run start // 终端1
npm run electron-dev // 终端2

生产环境:
npm run build // 终端1
npm run electron-build // 终端 2

我还写了个很简单的mobx的应用例子。数据都保存在文件夹 /store/ 下,以达到model和view分离的效果。

About

A boilerplate of electron-react-antd-mobx-ts with simple example开发脚手架,可直接用于开发桌面应用

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published