Sunday, 3 February 2019

I made a Electron-React-TypeScript-Webpack boilerplate

Here's the story - I gotta develop a cross-platform (Mac & Windows) desktop app for my client using Electron a couple months ago. Before that I've never built any other Electron app but just worked on React, React-native, and some other web projects with NodeJS in the past. Throughout the development of that project I found myself spent quite some amount of time doing ground works like writing the config for things like Webpack, TSLint & ESLint, setting up different packages to make a build, designing the project structure, etc... And since I can foresee myself working on Electron projects again later, I've decided to make an open source boilerplate so I can speed things up and maybe help some of you forks who happen to have the same needs of me.At one point I've put redux & react-redux into this boilerplate as I was trying to use that in my Electron app project, but then I found out my app is better without those packages, using IPC & just the basic React props & states are more than enough to get the work done. Therefore, I removed all the redux related stuffs in this boilerplate as well.Also, right now the boilerplate requires you to clone it and make changes to get started. My ultimate goal of this boilerplate is to make it works like create-react-app so everyone can get started in seconds. I can't guarantee when I can have that implemented as I'm a bit too busy atm. If any of you would like to spare your time to get this done, please kindly do a pull request.I'm not sure if this is really what you guys need but suggestions are always welcome. Thanks.https://github.com/Devtography/electron-react-typescript-webpack-boilerplate

Submitted February 04, 2019 at 04:14AM by iamWing_

No comments:

Post a Comment