So nothing groundbreaking in this release, just firming things up and pushing out changes because they have sat in the repo long enough.
This release has focused on making it much easier to integrate testing into your workflow. Auto-testing, CLI testing for dev ops integration, and headless testing support come together to make testing a major feature in figwheel.main.
See the testing documentation here: https://figwheel.org/docs/testing.html See the async main script docs here: https://figwheel.org/docs/main_script.html
:auto-testing true--main CLi arg that also supports non-zero exit status:launch-js option was created to support use of headless environments during testing Learn more--compile --repl didn't start a replThe new :extra-main-files option makes integrating things like tests
and devcards to your build super simple and CPU efficient
Learn more
There was a long standing bug with :global-exports support that I
was able to squash which in turn led to changes that make working with
npm modules much easier.
The new :npm option will help you make quick work of integrating
webpack bundled npm modules into your
build. Learn more
:pre-build-hooks and :post-build-hooks config options Learn morefigwheel.main api in the CLJS repl so that it works
properly under nREPL:build-inputs config option Learn More\\(ツ)/, I pretty much had to after I saw this tweetFixes a bug that was deleting the listeners that notified the client to reload.
update: hot reloading does not work when figwheel.main is started from nREPL
Added a Scripting API that allows one to start multiple builds and
then attach a REPL to any of the running builds. The API also allows
one to stop builds and obtain a repl-env from a build (this is
expecially helpful for VIM fireplace). See the figwheel.main.api
namespace and the docs at
https://figwheel.org/docs/scripting_api.html
--build dev:other:asset-path which prevented the REPL from connecting--build"unknown" rather than common name "dev"--serve flag after the --build-once flag, for testing advanced compiles and such:optimizations :none:whitespace, :simple or :advanced only pass :main ns to compiler:ring-handler doesn't load, prints out syntax errors etc.:reload-clj-files false should still reload cljc files on the CLJS sideThis release was only to establish https://github.com/bhauman/figwheel-main as the new home of com.bhauman/figwheel-main
figwheel.mainresources/public/index.html and the resources
directory is not on the classpath:main ns is in, is on the classpathbinaryage/devtools in opt none builds targeting the browser:ring-handler in build metadata didn't work:client-log-level option to set the level for client side loggingCan you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |