1
- # Electron-React-TypeScript-Webpack- Boilerplate
1
+ # Electron-React-TypeScript-Webpack (ERTW) Boilerplate
2
2
A boilerplate that let you instantly start working on your next [ Electron] app
3
- in [ TypeScript] with no time wasted messing with the config files.
3
+ project in [ TypeScript] with no time wasted messing with the config files.
4
4
5
5
- Ready to use [ Electron] project template with [ React] , [ Webpack] and
6
6
[ TypeScript] seamlessly integrated.
@@ -16,8 +16,8 @@ in [TypeScript] with no time wasted messing with the config files.
16
16
doesn't work, please [ file an issue] .*
17
17
18
18
### Maintenance schedule
19
- Starting from ` v4.0.0 ` , the project maintenance will become much more regular.
20
- A new release will be published on a monthly basis to keep the package
19
+ Starting from [ ` v4.0.0 ` ] , this project is set to receive regular maintenances .
20
+ New releases will be published on monthly basis to keep the package
21
21
dependencies, package configurations and APIs / syntax up to date.
22
22
23
23
Maintenance work will begin on 1st of each month, and expect the new version to
@@ -27,9 +27,10 @@ especially on experimental features. If you want any particular feature to be
27
27
implemented, please [ file an issue] , or consider make a [ new pull request] .
28
28
29
29
### Development plan
30
- - [ ] Create a ` create-react-app ` -like package initialiser __ !!!__
30
+ - [ ] Develop a ` create-react-app ` -like NPX tool __ !!!__
31
+ __ * ([ working on it] ( https://github.com/Devtography/create-ertw-app ) )* __
31
32
- [ ] Integrate another end-to-end testing framework to replace [ Spectron]
32
- - [ ] Migrate to Webpack 5 ` Asset Modules `
33
+ - [ ] Migrate to Webpack 5 ` Asset Modules ` __ * (pending for ` v4.2.0 ` ) * __
33
34
34
35
---
35
36
@@ -48,6 +49,11 @@ implemented, please [file an issue], or consider make a [new pull request].
48
49
` mocha ` as your unit testing framework, please reference to ` package.json `
49
50
from [ ` v3.0.0 ` ] .
50
51
52
+ - [ ESLint] config file ` .eslintrc.cjs ` introduced in [ ` v4.1.0 ` ] is written in
53
+ CommonJS syntax on purpose. As of the release of [ ` v4.1.0 ` ] , ESLint has yet
54
+ to support ES module for its' config file. __ Converting the config file to
55
+ ES module will result in ESLint not working.__
56
+
51
57
---
52
58
53
59
## Getting started
@@ -123,7 +129,7 @@ To package your Electron app, run `npm run prod` to get your code compiled in
123
129
meant to improve performance of reading files if bundler like Webpack is not
124
130
being used. The app packaging workflow defined in this boilerplate already
125
131
uses Webpack to minify your code in `production` builds, so there shouldn't
126
- be any significant performance different with `asar` archiving disabled.
132
+ be any significant performance difference with `asar` archiving disabled.
127
133
128
134
## Project folders & files
129
135
- `dist/` - [Webpack] output location
@@ -210,7 +216,7 @@ To package your Electron app, run `npm run prod` to get your code compiled in
210
216
- `main/main.spec.ts` - Sample test file for `src/main/main`
211
217
- `tsconfig.json` - TypeScript config file for `tests` module
212
218
- `.eslintignore` - [ESLint] ignore file
213
- - `.eslintrc` - [ESLint] config file
219
+ - `.eslintrc.cjs ` - [ESLint] config file
214
220
215
221
Configured to use Airbnb's rules with [TypeScript] supported, and rules for
216
222
[Jest ] applied.
@@ -229,6 +235,7 @@ To package your Electron app, run `npm run prod` to get your code compiled in
229
235
build config setup guides.
230
236
231
237
- `README.md`
238
+ - `tsconfig.eslint.json` - [TypeScript] config file consume by [ESLint].
232
239
- `tsconfig.json` - [TypeScript] config file
233
240
234
241
Module path aliases are configured here. [Jest] & [Webpack] will pick up the
@@ -240,13 +247,14 @@ To package your Electron app, run `npm run prod` to get your code compiled in
240
247
Includes configurations targetting `electron-main`, `electron-preload`, and
241
248
`electron-renderer` respectively.
242
249
243
- ## Author
244
- [Wing Chau ](https://github.com/iamWing) [@Devtography](https://github.com/Devtography)
245
-
246
250
## Donation
247
251
Maintaining this project takes time, lots of cups of coffee, and I do it for
248
- free. Consider buy me coffee via [donations]. 100% of donation will fund my
249
- coffee buying budget for quality coffee beans from great roasters I know 😉 ☕️️
252
+ free. Consider buy me some coffee via [GitHub Sponsors] or [PayPal]. 100% of
253
+ your donation will fund my coffee buying budget for quality coffee beans from
254
+ great roasters I know 😉 ☕️️
255
+
256
+ ## Author
257
+ [Wing Chau ](https://github.com/iamWing) [@Devtography](https://github.com/Devtography)
250
258
251
259
## License
252
260
Electron React TypeScript Webpack Boilerplate is open source software
@@ -265,11 +273,15 @@ Electron React TypeScript Webpack Boilerplate is open source software
265
273
[Playwright ]: https://playwright.dev
266
274
[WebdriverIO ]: https://webdriver.io
267
275
[Spectron Deprecation Notice ]: https://www.electronjs.org/blog/spectron-deprecation-notice
268
- [`v3.0.0` ]: https://github.com/Devtography/electron-react-typescript-webpack-boilerplate/releases/tag/v3.0.0
269
276
[`Use this template` ]: https://github.com/Devtography/electron-react-typescript-webpack-boilerplate/generate
270
277
[`tsconfig-paths` ]: https://github.com/dividab/tsconfig-paths
271
278
[`tsconfig-paths-webpack-plugin` ]: https://github.com/dividab/tsconfig-paths-webpack-plugin
272
279
[Electron quick start guide ]: https://www.electronjs.org/docs/latest/tutorial/quick-start
273
280
[Electron Forge ]: https://github.com/electron-userland/electron-forge
274
281
[`electron-builder`'s document ]: https://www.electron.build
275
- [donations ]: https://github.com/sponsors/iamWing
282
+ [GitHub Sponsors ]: https://github.com/sponsors/iamWing
283
+ [PayPal ]: https://paypal.me/iamWing0w0
284
+
285
+ [`v3.0.0` ]: https://github.com/Devtography/electron-react-typescript-webpack-boilerplate/releases/tag/v3.0.0
286
+ [`v4.0.0` ]: https://github.com/Devtography/electron-react-typescript-webpack-boilerplate/releases/tag/v4.0.0
287
+ [`v4.1.0` ]: https://github.com/Devtography/electron-react-typescript-webpack-boilerplate/releases/tag/v4.1.0
0 commit comments