Liking cljdoc? Tell your friends :D

doo.core

Runs a Js script in any Js environment. See doo.core/run-script

Runs a Js script in any Js environment. See doo.core/run-script
raw docstring

assert-aliasclj

(assert-alias js-env-alias resolved-js-envs)
(assert-alias js-env-alias resolved-js-envs user-aliases)
(assert-alias js-env-alias resolved-js-envs user-aliases karma-launchers)

assert-compiler-optsclj

(assert-compiler-opts js-env compiler-opts)

Raises an exception if the compiler options are not valid. See valid-compiler-opts?

Raises an exception if the compiler options are not valid.
See valid-compiler-opts?
raw docstring

assert-js-envclj

(assert-js-env js-env karma-custom-launchers)

Throws an exception if the js-env is not valid. See valid-js-env?

Throws an exception if the js-env is not valid.
See valid-js-env?
raw docstring

clojure-jar?clj

(clojure-jar? jar-name)

clojurescript-jar?clj

(clojurescript-jar? jar-name)

cmd-not-foundclj


command-tableclj

(command-table js-env opts)

default-aliasesclj


default-command-tableclj


default-optsclj


doo-envsclj


doo-self-hosted-envsclj


install!clj

(install! js-envs compiler-opts opts)

Installs a karma server

Installs a karma server
raw docstring

js->commandclj

(js->command js-env compiler-opts opts)

js->command*cljmultimethod


js-envsclj


karma-run!clj

(karma-run! opts)

Runs karma once, assuming there is a karma server already running. Takes doo-options as passed to run-script.

Runs karma once, assuming there is a karma server already running.
Takes doo-options as passed to run-script.
raw docstring

(print-envs & js-envs)

resolve-aliasclj

(resolve-alias alias alias-table karma-launchers)

Given an alias it resolves to a list of the js-envs it represents, or an empty list if it represents not js-envs. js-envs resolve to themselves.

Ex: (resolve-alias :headless {}) => [:phantom :slimer] (resolve-alias :slimer {}) => [:slimer] (resolve-alias :something {}) => []

Given an alias it resolves to a list of the js-envs it represents,
or an empty list if it represents not js-envs. js-envs resolve to
themselves.

Ex: (resolve-alias :headless {}) => [:phantom :slimer]
    (resolve-alias :slimer {}) => [:slimer]
    (resolve-alias :something {}) => []
raw docstring

run-scriptclj

(run-script js-env compiler-opts)
(run-script js-env compiler-opts opts)

Runs the script defined in :output-to of compiler-opts in the selected js-env.

(run-script js-env compiler-opts) (run-script js-env compiler-opts opts)

where:

js-env - any of :phantom, :slimer, :node, :rhino, :nashorn, :chrome, :firefox, :ie, :safari, or :opera compiler-opts - the options passed to the ClojureScript when it compiled the script that doo should run opts - a map that can contain: :verbose - bool (default true) that determines if the scripts output should be printed and returned (verbose true) or only returned (verbose false). :debug - bool (default false) to log to standard-out internal events to aid debugging :paths - a map from runners (keywords) to string commands for bash. :exec-dir - a directory path (file) from where runner should be executed. Defaults to nil which resolves to the current dir :karma - a map with the folling keys :config - additional config that will be added to karma.conf.js :launchers - custom karma lauchers, eg. {:chrome-no-security {:name "Chrome_no_security" :plugin "karma-chrome-launcher"}}

Runs the script defined in :output-to of compiler-opts
   in the selected js-env.

  (run-script js-env compiler-opts)
  (run-script js-env compiler-opts opts)

where:

  js-env - any of :phantom, :slimer, :node, :rhino, :nashorn,
                  :chrome, :firefox, :ie, :safari, or :opera
  compiler-opts - the options passed to the ClojureScript when it
                  compiled the script that doo should run
  opts - a map that can contain:
    :verbose - bool (default true) that determines if the scripts
               output should be printed and returned (verbose true)
               or only returned (verbose false).
    :debug - bool (default false) to log to standard-out internal events
             to aid debugging
    :paths - a map from runners (keywords) to string commands for bash.
    :exec-dir - a directory path (file) from where runner should be
                executed. Defaults to nil which resolves to the current dir
    :karma - a map with the folling keys
       :config - additional config that will be added to karma.conf.js
       :launchers - custom karma lauchers, eg. {:chrome-no-security {:name "Chrome_no_security"
                                                                     :plugin "karma-chrome-launcher"}}
raw docstring

runner-path!clj

(runner-path! runner filename)
(runner-path! runner filename {:keys [common?]})

Creates a temp file for the given runner resource file.

Creates a temp file for the given runner resource file.
raw docstring

self-hosted-classpathclj

(self-hosted-classpath)

self-hosted?clj

(self-hosted? js-env)

untrustworthy-exit-envclj

The set of JS envs having executables which may not be able to signify failure with a non-zero exit code.

The set of JS envs having executables which may not be able to signify
failure with a non-zero exit code.
raw docstring

valid-js-env?clj

(valid-js-env? js-env karma-custom-launchers)

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

× close