DEV Community

Caio Lucas
Caio Lucas

Posted on

Electron + Typescript + React boilerplate

ElectronJS + Typescript + ReactJS

Electron + TypeScript + React

You can go to the github repository clicking here;

This boilerplate is using diego3g/electron-typescript-react as base.
If you want something with styled-components, linting and tests with jest, just go there.

Differences between this boilerplate and the diego3g's version

  • css support added
  • svg support added
  • jest removed
  • eslint removed
  • styled-components removed

The idea of this boilerplate is to be as simple as it can using this three technologies. My thought is to give the developer maximum freedom to choose their own way to write code.

Installation

Download this boilerplate using

git clone https://github.com/caiulucas/basic-electron-react-typescript
Enter fullscreen mode Exit fullscreen mode

or click on the Use this template option.

Add node_modules in your project

Using npm:

npm install
Enter fullscreen mode Exit fullscreen mode

Using yarn:

yarn
Enter fullscreen mode Exit fullscreen mode

Usage

Just run start script.

Using npm:

npm run start
Enter fullscreen mode Exit fullscreen mode

Using yarn:

yarn start
Enter fullscreen mode Exit fullscreen mode

Packaging

To generate the project package based on the OS you're running on, just run:

Using npm:

npm run package
Enter fullscreen mode Exit fullscreen mode

Using yarn:

yarn package
Enter fullscreen mode Exit fullscreen mode

Contributing

Any pull request or issue is welcome. If you have any idea for this boilerplate, feel free to share it.

If you want to make your own boilerplate using this project as base, just go for it 😃

License

MIT

Latest comments (0)