kangabru / preact-tailwind-boilerplate

Typescript + Preact + Tailwind CSS Boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript + Preact + Tailwind CSS Boilerplate

A minimal Preact and Typescript app using Tailwind CSS and bundled with Parcel.

Features

  • 🀍 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.

πŸ‘Ÿ Install

npm install

Ensure node (v12.13+) is installed.

πŸ• Develop

npm start

Open dev server on localhost:1234.

πŸ’» Release

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

πŸ€” Notes

Typescript typecheck notes
  • Typescript code is typechecked via the typecheck command and at the start of the start and build 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.

Have an issue?

Post an issue and I'll be happy to help πŸ™‚

About

Typescript + Preact + Tailwind CSS Boilerplate

License:MIT License


Languages

Language:JavaScript 38.9%Language:HTML 23.8%Language:TypeScript 22.5%Language:CSS 14.8%