A minimal Electron boilerplate for Preact, Typescript and Tailwind CSS and bundled with Parcel.
- π€ Dead simple usage. Forget the project setup and just focus on the code.
- π¨ Easy to extend. Parcel brings zero config support for a dizzyingly array of plugins.
- π Fast development. The site starts with a single command and automatically refreshes on file changes.
- π» Deployment ready. Build, optimise, and minify files with a single command.
- π Productive typechecking. Write untyped code while prototyping and only typecheck when it matters.
Ensure node (v12.13+) is installed.
npm install
Update the boilerplate with your project details:
- Update the
title
tag with your project name inindex.html
. - Update
name
,description
, andauthors
values inpackage.json
. Note these are required by the electron packager.
npm start
The electron app will open and refresh automatically.
You can also run npm run main:start
and npm run render:start
scripts separately.
npm run build
Builds will be available in the out
folder. Configure your build further via these instructions.
Typescript typecheck notes
- Typescript code is typechecked via the
typecheck
command and at the start of thestart
andbuild
commands - Code is not typechecked on automatic files changes like most bundlers. This allows you write scrappy, untyped code whilst prototyping to keep development fast. Simply add types later before committing code.
Post an issue and I'll be happy to help π