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)
source

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?
sourceraw 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?
sourceraw docstring

clojure-jar?clj

(clojure-jar? jar-name)
source

clojurescript-jar?clj

(clojurescript-jar? jar-name)
source

cmd-not-foundclj

source

command-tableclj

(command-table js-env opts)
source

default-aliasesclj

source

default-command-tableclj

source

default-optsclj

source

doo-envsclj

source

doo-self-hosted-envsclj

source

install!clj

(install! js-envs compiler-opts opts)

Installs a karma server

Installs a karma server
sourceraw docstring

js->commandclj

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

js->command*cljmultimethod

source

js-envsclj

source

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.
sourceraw docstring

(print-envs & js-envs)
source

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 {}) => []
sourceraw 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"}}
sourceraw 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.
sourceraw docstring

self-hosted-classpathclj

(self-hosted-classpath)
source

self-hosted?clj

(self-hosted? js-env)
source

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.
sourceraw docstring

valid-js-env?clj

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

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

× close