Skip to content

Releases: bhauman/figwheel-main

Updates for CLJS 1.10.844, ring and webpack 5

11 Apr 19:45
Compare
Choose a tag to compare
  • webpack 5 compatibility by adding --entry flag to npx webpack command
  • upgrade to ring 1.9.1, there was an internal api and a jetty server
    version change in ring 1.9.0 that requires an upgrade
  • fix logging errors caused by CLJS 1.10.844

Small fix to for React Native support

26 Jul 22:44
Compare
Choose a tag to compare

React Native and better HTTPS support

13 Jul 16:29
Compare
Choose a tag to compare

0.2.10 React Native support and SSL certificate generation

New React Native support which includes support for React Native CLI
and Expo as well as MacOS. See the docs here: https://figwheel.org/docs/react-native.html

  • :ssl-valid-hosts allows you to specify what hosts the generated certificate should support
  • :use-ssl now creates a local dev certificate if one isn't supplied
  • added some improvements to using npm on windows

Added `:use-ssl` config option

15 Jun 16:10
Compare
Choose a tag to compare
  • added :use-ssl figwheel configuration option as sugar to make
    setting up https easier

Bug fix and build cleaning

06 Jun 00:45
Compare
Choose a tag to compare

Fixed a major bug introduced in 0.2.7 that caused extra-mains to
overwrite the builds :output-to.

Also added the :clean-outputs Figwheel option that will clean the
compiler's output targets before compiling and starting the build.

Also added the --clean command line option that does the same thing.

Here are some examples of using the --clean CLI option:

# this cleans before building
clojure -m figwheel.main --clean -b dev -r

# this cleans all the builds
clojure -m figwheel.main --clean

# this only cleans the dev build
clojure -m figwheel.main --clean dev

More `:bundle` target support for NPM bundler integration

31 May 17:53
Compare
Choose a tag to compare

Pushed :bundle target support forward a bit further.

  • added :bundle-freq figwheel-option with :once, :always and :smart which bundles when output-to or npm_deps.js changes
  • added :auto-bundle figwheel-option so supply basic default bundle config
  • log the bundle command and the bunder output when a bundle command fails
  • added a warning to ensure the :output-to is inside the :output-dir for the bundle target
  • added --install-deps cli support to the schema

Further NPM support for the new :bundle target

26 May 17:36
Compare
Choose a tag to compare

Got extra-mains and auto-testing up and running for the new bundle target along with an
intial docs page https://figwheel.org/docs/npm.html to help get
started with an NPM based ClojureScript project.

  • Added templating to :bundle-cmd cljs option: it interpolates :output-to and :final-output-to
  • :bundle-cmd only bundles one time when watching and compiling
  • set the fighweel option :bundle-once to false to have bundling occur on every compile
  • set the fighweel option :final-output-to if you don't want the default of :output-to + "_bundle"
  • logs the bundle command when it runs for easier debugging

support for latest CLJS :bundle target

14 May 14:53
Compare
Choose a tag to compare

support for the new :bundle target requires clojurescript >= 1.10.764

The latest ClojureScript updated the Google Closure library which
included some breaking changes when it comes to reloading. This
release fixes those problems and also fixes fighweel-main problems
that interfered with the support of the new :bundle target.

You can currently learn more about the new bundle target in the Clojruescript guide

https://clojurescript.org/guides/webpack

Using the bundle target will break auto-testing and the default index
page. You will have to have your own host page.

There still needs to be some work done on Extra mains to get them to
work properly with the new bundle target.

The main problem for many of these automated features is that figwheel
has no idea of where the output file of webpack is because the webpack
config is exterior to figwheel itself.

The new :bundle target probably deprecates the :npm-deps way of doing
things. We'll need to take some time with this way of doing things to
see what makes sense.

Minor updates

16 Apr 21:59
Compare
Choose a tag to compare

Minor updates

Minor updates

25 Dec 20:32
Compare
Choose a tag to compare

So nothing groundbreaking in this release, just firming things up and
pushing out changes because they have sat in the repo long enough.

  • bump up to ring 0.1.7
  • optionaly serve static cljsjs resources see https://figwheel.org/config-options#cljsjs-resources
  • experimental - support for a cross over :nodejs Extra Main target to compile a project for the browser and node -- this more than likely wont work in many cases
  • change the way that figwheel.main detects whether clj is launching figwheel from a project directory
  • CSS reloading improvement
  • ensure not zero exit when not watching or building once
  • make syntax errors log at level :warn