I want to migrate everything in Electron to using Typescript.
All renderer code, all main code, and also mocha tests and spectron e2e tests.
So far I’ve written a webpack that works well so I have a proof of concept working.
The main problem I have now is unit testing and spectron and making it work well in my IDE.
My thinking was to have webpack auto-generate a -bundle for each test unit, then run these units via mocha.
That works but it’s a real pain having so many -bundle files all over my disk.
mocha-webpack kind of works there so it’s not the end of the world but it’s not perfect either.
What about babel-register? It’s not webpack but it might be easier to work with.