This page is intended for sharing less known tips about tools used in this boilerplate. Tools are computer programs that are used to maintain and support electron-react-boilerplate. For example,
How to keep commit history clean
When you clone this project and down the line keep your copy updated with the upstream, you end up with lot many commits that are made by contributors to this boilerplate. Meanwhile you too keep committing in your copy in order to develop your project. You may feel that your
git log is polluted with commits made to this boilerplate, when you prefer
git log to show only those commits that are directly related to your project.
One workaround is to use
--depth 1 switch in your
git clone and
git fetch command.
- Question: Best way to clean repository after initializing new project? #782
How to add missing +flow-type+ definitions for third party modules
If flow definitions for a module are missing, flow will raise
"Required module not found" errors.
For example, clone this repository. Add +material-ui+ to
Then add this line to
If flow is enabled, it will produce following error,
To get around this issue, add
./flow-typed/<module-name>_vx.x.x.js file, like
./flow-typed/material-ui_vx.x.x.js. Then add following lines to it,
In our example, it would be
This would turn off flow-typed errors for the module.
How to skip building the DLL immediately after install
See our FAQ