cljs.js-deps
(-foreign? this)
Whether the Javascript represents a foreign
library (a js file that not have any goog.provide statement
(build-index deps)
Index a list of dependencies by namespace and file name. There can
be zero or more namespaces provided per file. Upstream foreign libraies
will have their options merged with local foreign libraries to support
fine-grained overriding.
(find-classpath-lib lib)
Given [lib], a string or symbol naming a goog-style JavaScript library
(i.e. one that uses goog.provide and goog.require), look for a resource on the
classpath corresponding to [lib] and return a map via `library-graph-node`
that contains its relevant metadata. The library found on the classpath
_must_ contain a `goog.provide` that matches [lib], or this fn will return nil
and print a warning.
(find-url path-or-url)
Given a string, returns a URL. Attempts to resolve as a classpath-relative
path, then as a path relative to the working directory or a URL string
(load-library* path)
Given a path to a JavaScript library, which is a directory
containing Javascript files, return a list of maps
containing :provides, :requires, :file and :url.
(parse-js-ns lines)
Given the lines from a JavaScript source file, parse the provide
and require statements and return them in a map. Assumes that all
provide and require statements appear before the first function
definition.