Electron application boilerplate based on React, Redux, and Webpack for rapid application development using TypeScript.
Clone the repository with Git:
git clone https://github.com/atanasbozhkov/xci-manager.git
And then install the dependencies:
cd xci-maanager
npm install
Both processes have to be started simultaneously in different console tabs:
npm run start-renderer-dev
npm run start-main-dev
This will start the application with hot-reload so you can instantly start developing your application.
You can also run do the following to start both in a single process:
npm run start-dev
We use Electron builder to build and package the application. By default you can run the following to package for your current platform:
npm run dist
This will create a installer for your platform in the releases
folder.
You can make builds for specific platforms (or multiple platforms) by using the options found here. E.g. building for all platforms (Windows, Mac, Linux):
npm run dist -- -mwl
This project comes with both Husky and Prettier setup to ensure a consistent code style.
To change the code style, you can change the configuration in .prettierrc
.
In case you want to get rid of this, you can removing the following from package.json
:
- Remove
precommit
from thescripts
section - Remove the
lint-staged
section - Remove
lint-staged
,prettier
,tslint-config-prettier
, andhusky
from thedevDependencies
Also remove tslint-config-prettier
from the extends
section in tslint.json
.