Releases: preactjs/preact-cli
v2.0.2
v2.0.1
2.0.0
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:
- default - Default template with all features.
- material - material template using preact-material-components
- simple - The simplest possible preact setup in a single file
Here are a few things that we have cooked up for 2.0. 😎
New & Shiny 🎉 🎉
- Remote templates (#329/#99, thanks @lukeed)
- Custom
https
certs forpreact watch
(#375/#373, thanks @lukeed) - Webpack 3 (#375/#367, #150, thanks @lukeed @hassanbazzi)
preact list
: list all the official preactjs-cli repositories (#384, thanks @reznord)- Custom CORS origins (#119, thanks @rkostrzewski)
- Values injection into templates (#382/#353, thanks @lukeed)
- Disable service-worker flag (#377/#371, thanks @prateekbh)
- User prompts for
preact create
(#359, 280bcb3/#352, thanks @lukeed, @reznord) - Update notifier for preact-cli (#361, thanks @reznord)
- Better stack traces for prerender errors (#317/#310, thanks @developit)
- Make template.html and sw.js use publicPath (#323/#315, thanks @lwakefield)
Bugs Fixed
- change
--name
behavior (#326/#329, thanks @lukeed) - css-loader & getLoadersByClassName - webpackConfigHelpers (#349/#303, thanks @molily)
- Throw error when
template/
folder not found (#356/#351, thanks @lukeed) - Remove propsTypes in production build (#259, thanks @rbscott)
- Look for process.env.HTTPS for
preact watch
(#272, thanks @reznord) - Fix: Check node version (#280, thanks @reznord)
- Fix: Copy media files without corruption (#397, thanks @lukeed)
- Fix:
--json
stats output and resource identifier cleaning (#398/#316, thanks @developit)
1.4.1
1.4.0
New & Shiny 🎉 🎉
- Yarn support! Now you can use yarn for the application. Init project using
preact create my-app-name --yarn
and you are good to go. (#225/#234, thanks @reznord) - Less verbose errors
+1000 DX
(#206, thanks @rkostrzewski) - Stylus support (#194/#189, thanks @yavorski)
- Reload
node_modules
in development (#227/@208, thanks @reznord) - Friendly prerender message + remove UglifyJS from SSR build (#195/#178, thanks @rkostrzewski)
- Multi-route pre-rendering (#192/#185, thanks @framp)
- Immutable build (#172/#23, thanks @thangngoc89, @rkostrzewski)
- Suggest alternate port for developement build (#196/#179, thanks @reznord)
Bugs Fixed
- No Git support by default! You can use
preact create my-app --git
for initialising a repo with git (#237/#216, thanks @prateekbh) - Check for all loaders using proxy loader (#233/#235, thanks @rkostrzewski)
- Fix: Cannot find module ssr-bundle (#231/#223, thanks @rkostrzewski)
- Fix: Defaults to css (#238 #230/#201, thanks @yavorski)
- Badges (#221/#219, thanks @reznord)
- Fix: Enabling create app in current directory using
preact create my-app --dest . --force
(#200/#110, thanks @prateekbh) - Fix: Babel upgrade to stage-1 (#184, thanks @SaraVieira)
- Fix: Remove
-h
alias for--host
(#181/180, thanks @minhchu) - Fix: Check node version before initiating repo (#171/#169, thanks @reznord, @lukeed)
- Fix: Minimum Node version required v6 (#168/165. thanks @lukeed)
- Fix:
preact serve --server config --dest XX
(#157/#97, thanks @developit) - Fix: Initial commit when git user email is note defined (#207/#202, thanks @knight-bubble)
- Fix: link
:active/:hover
color accessibility in the examples, lighthouse 💯 (#241, thanks @developit)
Other wonderful things 🎉
- We now have a curated list of plugins added in wiki page which you can plugin and then use it in the application. Thanks to @SaraVieira, @rkostrzewski for this.
1.3.0
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
topreact-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
- Improved support for
preact-material-components
and other ES2015 libraries (#42/#117, thanks @prateekbh) - Fix Favicon (#135, thanks @hassanbazzi)
- Fix possible duplicate copies of preact in production build (#126/#133, thanks @reznord)
- Fix:
Promise
polyfill is now loaded before webpack bundle (#127, thanks @rkostrzewski) - Enable source maps in production (#140, thanks @rkostrzewski)
- Fix overzealous Uglify unsafe options (#136, thanks @dignifiedquire)
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
1.1.2
1.1.1
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
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
andpreact 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