Liking cljdoc? Tell your friends :D

figwheel-sidecar.system


add-autobuilderclj

(add-autobuilder system build-id)
source

add-buildsclj

(add-builds system build-configs)
source

add-css-watcherclj

(add-css-watcher system css-dirs)
source

add-initial-buildsclj

(add-initial-builds {:keys [figwheel-server] :as system} build-ids)
source

add-nrepl-serverclj

(add-nrepl-server system {:keys [nrepl-port] :as options})
source

all-build-keysclj

(all-build-keys system)
source

build-config->keyclj

source

build-diffclj

(build-diff system ids)

Makes sure that the autobuilds in the system match the build-ids provided

Makes sure that the autobuilds in the system match the build-ids provided
sourceraw docstring

build-figwheel-special-fnsclj

(build-figwheel-special-fns system)
source

build-key?clj

(build-key? k)
source

build-onceclj

(build-once system ids)

Builds the given ids or the current builds once

Builds the given ids or the current builds once
sourceraw docstring

build-switching-cljs-replclj

(build-switching-cljs-repl figwheel-system)
(build-switching-cljs-repl figwheel-system start-build-id)
(build-switching-cljs-repl {:keys [system]} start-build-id repl-options)
source

build-switching-cljs-repl*clj

(build-switching-cljs-repl* system start-build-id repl-options)
source

choose-repl-buildclj

(choose-repl-build system build-id)
source

choose-repl-build-idclj

(choose-repl-build-id system)
source

clean-buildsclj

(clean-builds system ids)

Deletes the compiled assets for the given ids or cleans all the current autobuilds. This command stops and starts the autobuilds.

Deletes the compiled assets for the given ids or cleans all the
current autobuilds. This command stops and starts the autobuilds.
sourceraw docstring

clear-compiler-env-for-build-idclj

(clear-compiler-env-for-build-id system build-id)
source

cljs-replclj

(cljs-repl & args)
source

cljs-repl*clj

(cljs-repl* system)
(cljs-repl* system start-build-id)
(cljs-repl* system start-build-id repl-options)
source

create-figwheel-systemclj

(create-figwheel-system config-data)

This creates a complete Figwheel only system. It conditionally adds a CSS watcher if the configuration contains :css-dirs and conditionally adds an nREPL server component if the Figwheel configuration contains an :nrepl-port key.

This takes a figwheel configuration consisting of :figwheel-options, :all-builds, and :build-ids.

If you only have a few components to add to this system then you can assoc them onto the created system before you start like so.

(def my-system (assoc (create-figwheel-system (config/fetch-config)) :html-reload (component/using (html-reloader {:watch-paths ["resources/public"]}) [:figwheel-system]) :web-server (my-webserver-component)))

This creates a complete Figwheel only system. It conditionally adds
a CSS watcher if the configuration contains :css-dirs and
conditionally adds an nREPL server component if the Figwheel
configuration contains an :nrepl-port key.

This takes a figwheel configuration consisting
of :figwheel-options, :all-builds, and :build-ids.

If you only have a few components to add to this system then you can
assoc them onto the created system before you start like so.

(def my-system
  (assoc (create-figwheel-system (config/fetch-config))
         :html-reload
         (component/using
           (html-reloader {:watch-paths ["resources/public"]})
           [:figwheel-system])
         :web-server (my-webserver-component)))
sourceraw docstring

css-watcherclj

(css-watcher opts)
source

dispatch-system-component-errorsclj

(dispatch-system-component-errors component-control-fn)
source

fetch-configclj

source

fetch-config-print-errorsclj

(fetch-config-print-errors)
source

fig-statusclj

(fig-status system)

Prints out the status of the running figwheel system

Prints out the status of the running figwheel system
sourceraw docstring

figwheel-cljs-replclj

(figwheel-cljs-repl figwheel-system)
(figwheel-cljs-repl figwheel-system build-id)
(figwheel-cljs-repl {:keys [system]} build-id repl-options)
source

figwheel-cljs-repl*clj

(figwheel-cljs-repl* system build-id repl-options)
source

figwheel-repl-optionsclj

(figwheel-repl-options repl-options system)
source

figwheel-systemclj

(figwheel-system config-data)
source

get-build-choiceclj

(get-build-choice choices)
source

get-builds-to-startclj

(get-builds-to-start figwheel-server build-ids)
source

get-project-buildsclj

(get-project-builds)
source

id->build-configclj

(id->build-config system id)
source

id->keyclj

source

ids-or-all-build-keysclj

(ids-or-all-build-keys system ids)
source

ids-or-all-build-keys*clj

(ids-or-all-build-keys* system ids)
source

initial-repl-focus-build-idclj

(initial-repl-focus-build-id system)
source

key->idclj

(key->id build-key)
source

make-special-fnclj

(make-special-fn f)
source

namifyclj

(namify arg)
source

nrep-server-componentclj

source

parse-start-figwheel-argsclj

(parse-start-figwheel-args args)
source

patch-system-buildsclj

(patch-system-builds system ids)
source

(print-config system ids)

Prints out the build config for the given ids or all the build configs

Prints out the build config for the given ids or all the build configs
sourceraw docstring

reload-configclj

(reload-config system)

Resets the system and reloads the the confgiguration as best it can.

Resets the system and reloads the the confgiguration as best it can.
sourceraw docstring

repl-envclj

(repl-env & args)
source

repl-env*clj

(repl-env* system)
(repl-env* system start-build-id)
(repl-env* system start-build-id repl-options)
source

repl-function-docsclj

source

reset-autobuildclj

(reset-autobuild system)

Alias for clean-builds

Alias for clean-builds
sourceraw docstring

running-versus-not-runningclj

(running-versus-not-running system ids)
source

start-autobuildclj

(start-autobuild system ids)

Either starts all the current autobuilds or adds the supplied build and starts autobuilding it.

Either starts all the current autobuilds or adds the supplied build
and starts autobuilding it.
sourceraw docstring

start-figwheel!clj

(start-figwheel! & args)

This function will start the figwheel system.

(start-figwheel!)

If called with no arguments it will load and validate the configuration found in your project.clj or a figwheel.edn file in the root of your project. If there is a figwheel.edn file any configuration information found in the project.clj will be ignored.

(start-figwheel! "example" "example-admin" ...)

You can also supply the build ids that you want figwheel to start autobuilding. If these ids aren't available in the builds specified in the found configuration this function will throw an error.

(start-figwheel! ;; using the configuration shape of figwheel.edn {:server-port 5000 :builds [{:id ...}]}

(start-figwheel! ;; using the configuration shape of figwheel.edn {:server-port 5000 :builds (figwheel-sidecar.config/get-project-builds) :builds-to-start ["example"]})

(start-figwheel! ;; using the soon to be deprecated legacy configuration shape {:figwheel-options { :server-port 4000 } :all-builds [{:id ...}] :build-ids ["example"]})

As seen above you can also directly supply a configuration Map that has the shape of a figwheel.edn file or the legacy format which will be deprecated in the near future.

(start-figwheel! (figwheel-sidecar.config/fetch-config) "example" "example-admin")

After supplying a configuration, you can also list the build-ids that you would like to start.

This function will start the figwheel system.

(start-figwheel!)

  If called with no arguments it will load and validate the
  configuration found in your project.clj or a figwheel.edn file in
  the root of your project. If there is a figwheel.edn file any
  configuration information found in the project.clj will be ignored.

(start-figwheel! "example" "example-admin" ...)

  You can also supply the build ids that you want figwheel to start
  autobuilding.  If these ids aren't available in the builds specified
  in the found configuration this function will throw an error.

(start-figwheel!
  ;; using the configuration shape of figwheel.edn
  {:server-port 5000
   :builds [{:id ...}]}

(start-figwheel!
  ;; using the configuration shape of figwheel.edn
  {:server-port 5000
   :builds (figwheel-sidecar.config/get-project-builds)
   :builds-to-start ["example"]})

(start-figwheel!
 ;; using the soon to be deprecated legacy configuration shape
 {:figwheel-options { :server-port 4000 }
  :all-builds [{:id ...}]
  :build-ids ["example"]})

  As seen above you can also directly supply a configuration Map that
  has the shape of a figwheel.edn file or the legacy format which will
  be deprecated in the near future.

(start-figwheel! (figwheel-sidecar.config/fetch-config) "example" "example-admin")

  After supplying a configuration, you can also list the build-ids that
  you would like to start.
sourceraw docstring

start-figwheel!*clj

(start-figwheel!* config-options build-ids)
source

start-figwheel-and-cljs-repl!clj

(start-figwheel-and-cljs-repl! autobuild-options)
source

start-figwheel-replclj

(start-figwheel-repl system build repl-options)
source

start-figwheel-systemclj

(start-figwheel-system {:keys [figwheel-options all-builds build-ids]
                        :as options})
source

start-replclj

(start-repl start-fn figwheel-system)
(start-repl start-fn figwheel-system start-build-id)
(start-repl start-fn {:keys [system]} start-build-id repl-options)
source

stop-and-start-watchersclj

(stop-and-start-watchers system build-ids thunk)
source

stop-autobuildclj

(stop-autobuild system ids)

Stops autobuilding the specific ids or all currently running autobuilds

Stops autobuilding the specific ids or all currently running autobuilds
sourceraw docstring

stop-figwheel!clj

(stop-figwheel! system)
source

switch-to-buildclj

(switch-to-build system ids)

Switches autobuilding from the current autobuilds to the given build ids

Switches autobuilding from the current autobuilds to the given build ids
sourceraw docstring

system-removeclj

(system-remove system ids)

Remove the ids from the system

Remove the ids from the system
sourceraw docstring

system-setterclj

(system-setter func system-atom)
source

unwrap-component-exceptionclj

(unwrap-component-exception e)
source

use-color?clj

(use-color? system)
source

valid-key?clj

(valid-key? system key)
source

watchers-runningclj

(watchers-running system)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close