Robinfr/electron-react-typescript
关于
Electron boilerplate with React, Redux, and TypeScript
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文electron-react-typescript
A Boilerplate for an Easy Start with TypeScript, React, and Electron.
Electron application boilerplate based on React, Redux, and Webpack for rapid application development using TypeScript.
Install
Clone the repository with Git:
git clone --depth=1 [email protected]:Robinfr/electron-react-typescript.git <your-project-name>
And then install the dependencies:
cd <your-project-name>
npm install
Usage
Both processes have to be started simultaneously in different console tabs:
npm run start-renderer-dev
npm run start-main-dev
This will start the application with hot-reload so you can instantly start developing your application.
You can also run do the following to start both in a single process:
npm run start-dev
Packaging
We use Electron builder to build and package the application. By default you can run the following to package for your current platform:
npm run dist
This will create a installer for your platform in the releases folder.
You can make builds for specific platforms (or multiple platforms) by using the options found here. E.g. building for all platforms (Windows, Mac, Linux):
npm run dist -- -mwl
Husky and Prettier
This project comes with both Husky and Prettier setup to ensure a consistent code style.
To change the code style, you can change the configuration in .prettierrc.
In case you want to get rid of this, you can removing the following from package.json:
- Remove
precommitfrom thescriptssection - Remove the
lint-stagedsection - Remove
lint-staged,prettier,eslint-config-prettier, andhuskyfrom thedevDependencies
Also remove all mentions of Prettier from the extends section in .eslintrc.json.
About this project
This project was set up from scratch but is heavily influenced by the Electron React Boilerplate project and React Redux TypeScript guide.
License
MIT © R. Franken
探索相关项目
加载中…





