Skip to content

Releases: preactjs/preact-cli

v2.0.2

21 Oct 20:00
Compare
Choose a tag to compare

A quick patch for the postcss loader in dev mode and HMR issue.

Bug fixes:

v2.0.1

17 Oct 01:14
Compare
Choose a tag to compare

This is just a quick patch to enable sourcemaps through PostCSS. Thanks @lukeed! (#404)

2.0.0

12 Oct 21:05
Compare
Choose a tag to compare

Hey y'all

We got some goodies for you here, including with some exciting new features like custom templates and many bug fixes.

A huge thanks to @lukeed for the awesome work on custom templates. This means you can now use any github/gitlab/bitbucket repository as a starting point for your preact-cli project. 😄

Custom templates

The default templates for preact-cli have been moved to a preactjs-templates organization. Now you can create your own custom template/boilerplate and use it with preact-cli. To use an Github repo as a template: preact create user/repo appname

Note: You need to place the code for the repo in a folder template/, or else it will throw an error.

Current available templates include:

Here are a few things that we have cooked up for 2.0. 😎

New & Shiny 🎉 🎉

Bugs Fixed

1.4.1

23 Jul 18:50
Compare
Choose a tag to compare

Bug Fixes

1.4.0

18 Jul 19:39
Compare
Choose a tag to compare

New & Shiny 🎉 🎉

Bugs Fixed

Other wonderful things 🎉

1.3.0

29 Jun 13:22
Compare
Choose a tag to compare

New & Shiny

  • Add support for custom configuration! Drop a preact.config.js into your repo and export a function to mutate the webpack configuration to your heart's content. (#56, thanks @rkostrzewski et al)
  • Switch prerendering to use Webpack (#43/#39/#62/#71, thanks @rkostrzewski)
  • We'll now pick up your custom .babelrc if it exists (#153, thanks @lukeed)
  • Add create-react-class to preact-compat aliases (#132, thanks @diagramatics)
  • Respect "browserslist" config (#125, thanks @lukeed)
  • Auto-initialize new projects with git init if git is present (#35, thanks @fivetanley)

Bugs Fixed

Other Wonderful Things

  • 🎉 We now have tests! 🎉 Huge thanks to @rkostrzewski for building a comprehensive suite - we're tracking file sizes and snapshots for the demo applications, so you can be sure a preact-cli release won't affect your code (or only in a positive way).

1.2.0

29 Jun 13:09
Compare
Choose a tag to compare
1.2.0 Pre-release
Pre-release

This is a preview of the next version of Preact CLI. Mainly behind-the-scenes changes, in particular we're now using Webpack to bundle for SSR/prerendering instead of trying to run things directly in Node.

1.1.2

15 Jun 14:36
Compare
Choose a tag to compare
  • Switch to devcert (a fork for now) for cert generation.

Please Note: This means we now automatically install a root CA specific to your machine for you. You should remove the old one if you manually added it to your trust stores.

1.1.1

07 Jun 09:59
Compare
Choose a tag to compare

A bunch of little tweaks come to you in 1.1.1!
There are new features coming in the next release like custom configuration, stay tuned.

  • Improvements to the scaffolded apps (#82, thanks @davi-mbatista)
  • Fix preact-cli breaking Firebase (#87/#92, thanks @lukeed)
  • Update simplehttp2server installer to 2.0.0 (#94, thanks @1000ch)
  • Use full unminified Preact source in development mode (#90, thanks @thangngoc89)
  • Fix issue where compilation errors would produce a non-zero exit code (#61/#86, thanks @rkostrzewski)

1.1.0

31 May 20:34
Compare
Choose a tag to compare

We've got a bunch of updates since the initial release:

  • Make CLI options more strict, and produce an error for unknown options (#8 #14 - thanks @vitormalencar & @rkostrzewski)
  • Install eslint-config-synacor during project creation (#19 - thanks @maoberlehner)
  • Allow pre-installation of plugins via preact create --less and preact create --sass
  • Add preact build --json option to output webpack stats (#29 - thanks @rkostrzewski)
  • Consistent hashing via NamedModulesPlugin (#20 #27 - thanks @lukeed & @rkostrzewski)
  • Support project templates with no manifest or icons by providing internal defaults
  • Change the default project type to "full", which has a src/ directory (#81)
  • Change HTML template to enable zooming (thanks @robdodson)
  • Add 200.html for pushstate routing (#54 - thanks @prateekbh)
  • Optimize all template app images (#48 - thanks @krawaller)
  • Fix active classname for links in the template app (#33 - thanks @iiegor)
  • Fix incorrect dev server address in console (#57 - thanks @rkostrzewski)
  • Fix issue where async! produced the wrong chunk path (#50 - thanks @rkostrzewski)
  • Fix babel breaking within .babelrc directories (#63 - thanks @lukeed)
  • Fix async!-loaded components diff issue when routing (#72 - thanks @BenoitZugmeyer)
  • Enable and document preact watch --https option