(all-distinct? xs)
(cached-core ns ext opts)
(checking-types?)
(cljs-files-in dir)
Return a sequence of all .cljs and .cljc files in the given directory.
Return a sequence of all .cljs and .cljc files in the given directory.
(compile-file src)
(compile-file src dest)
(compile-file src dest opts)
Compiles src to a file of the same name, but with a .js extension, in the src file's directory.
With dest argument, write file to provided location. If the dest argument is a file outside the source tree, missing parent directories will be created. The src file will only be compiled if the dest file has an older modification time.
Both src and dest may be either a String or a File.
Returns a map containing {:ns .. :provides .. :requires .. :file ..}. If the file was not compiled returns only {:file ...}
Compiles src to a file of the same name, but with a .js extension, in the src file's directory. With dest argument, write file to provided location. If the dest argument is a file outside the source tree, missing parent directories will be created. The src file will only be compiled if the dest file has an older modification time. Both src and dest may be either a String or a File. Returns a map containing {:ns .. :provides .. :requires .. :file ..}. If the file was not compiled returns only {:file ...}
(compile-file* src dest)
(compile-file* src dest opts)
(compile-root src-dir)
(compile-root src-dir target-dir)
(compile-root src-dir target-dir opts)
Looks recursively in src-dir for .cljs files and compiles them to .js files. If target-dir is provided, output will go into this directory mirroring the source directory structure. Returns a list of maps containing information about each file which was compiled in dependency order.
Looks recursively in src-dir for .cljs files and compiles them to .js files. If target-dir is provided, output will go into this directory mirroring the source directory structure. Returns a list of maps containing information about each file which was compiled in dependency order.
(compiled-by-string)
(compiled-by-string opts)
(distinct-constants? items)
(distinct-keys? keys)
(emit ast)
(emit-apply-to {:keys [name params env]})
(emit-arguments-to-array startslice)
Emit code that copies function arguments into an array starting at an index. Returns name of var holding the array.
Emit code that copies function arguments into an array starting at an index. Returns name of var holding the array.
(emit-cached-core src dest cached opts)
(emit-comment doc jsdoc)
(emit-comment env doc jsdoc)
Emit a nicely formatted comment string.
Emit a nicely formatted comment string.
(emit-constant v)
(emit-constant-no-meta x)
(emit-constants-comma-sep cs)
(emit-constants-table table)
(emit-constants-table-to-file table dest)
(emit-dot {:keys [target field method args env]})
(emit-externs externs)
(emit-externs prefix externs top-level known-externs)
(emit-fn-method {expr :body :keys [type name params env recurs]})
(emit-fn-params params)
(emit-global-export ns-name global-exports lib)
(emit-inferred-externs-to-file externs dest)
(emit-js-array items comma-sep)
(emit-js-object items emit-js-object-val)
(emit-let {expr :body :keys [bindings env]} is-loop)
(emit-list items comma-sep)
(emit-map keys vals comma-sep distinct-keys?)
(emit-record-value ns name items)
(emit-set items comma-sep distinct-constants?)
(emit-source src dest ext opts)
(emit-source-map src dest sm-data opts)
(emit-str expr)
(emit-var {:keys [info env form] :as ast})
(emit-variadic-fn-method {expr :body
max-fixed-arity :fixed-arity
variadic :variadic?
:keys [type name params env recurs]
:as f})
(emit-vector items comma-sep)
(emit-with-meta expr meta)
(emit-wrap env & body)
(emitln)
(emitln a)
(emitln a b)
(emitln a b c)
(emitln a b c d)
(emitln a b c d e)
(emitln a b c d e & xs)
(emits)
(emits a)
(emits a b)
(emits a b c)
(emits a b c d)
(emits a b c d e)
(emits a b c d e & xs)
(emits-keyword kw)
(emits-symbol sym)
(falsey-constant? expr)
(find-ns-starts-with needle)
(find-root-sources src-dir)
(find-source file)
(fn-self-name {:keys [name info] :as name-var})
(get-define mname jsdoc)
(get-first-ns-segment ns)
Gets the part up to the first .
of a namespace.
Returns the empty string for nil.
Returns the entire string if no .
in namespace
Gets the part up to the first `.` of a namespace. Returns the empty string for nil. Returns the entire string if no `.` in namespace
(hash-scope s)
(load-libs libs seen reloads deps ns-name)
(macro-ns? ns ext opts)
(munge s)
(munge s reserved)
(munge-param-return env line)
(munge-reserved reserved)
(protocol-prefix psym)
(rename-to-js file-str)
Change the file extension from .cljs to .js. Takes a File or a String. Always returns a String.
Change the file extension from .cljs to .js. Takes a File or a String. Always returns a String.
(requires-compilation? src dest)
(requires-compilation? src dest opts)
Return true if the src file requires compilation.
Return true if the src file requires compilation.
(resolve-type env t)
(resolve-types env ts)
(safe-test? env e)
(shadow-depth s)
(truthy-constant? expr)
(url-path f)
(valid-define-value? x)
(with-core-cljs)
(with-core-cljs opts)
(with-core-cljs opts body)
Ensure that core.cljs has been loaded.
Ensure that core.cljs has been loaded.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close