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
(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-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?
(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?
(install! js-envs compiler-opts opts)
Installs a karma server
Installs a karma server
(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.
(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 {}) => []
(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"}}
(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.
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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close