A minimal Preact and Typescript app using 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.
npm install
Ensure node (v12.13+) is installed.
npm start
Open dev server on localhost:1234.
npm run build
Files are built and minified in the dist
folder.
Deploy statically (e.g. Netlify) with the following build settings:
- Command:
npm run build
- Directory:
dist
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 🙂