Liking cljdoc? Tell your friends :D

shadow.build.npm


asset-extsclj


asset-require?clj

(asset-require? require)

CLOSURE-TIMESTAMPclj


empty-rcclj


find-fileclj

(find-file npm require-from require)

find-packageclj

(find-package {:keys [index-ref node-modules-dir] :as npm} package-name)

find-package*clj

(find-package* {:keys [node-modules-dir] :as npm} package-name)

find-package-for-fileclj

(find-package-for-file npm file)

find-package-jsonclj

(find-package-json file)

find-package-requireclj

(find-package-require npm require)

find-package-resourceclj

(find-package-resource npm require)

find-relativeclj

(find-relative npm relative-to require)

find-resourceclj

(find-resource npm require-from require require-ctx)

get-file-infoclj

(get-file-info {:keys [index-ref] :as npm} file)

get-file-info*clj

(get-file-info* {:keys [compiler node-modules-dir project-dir] :as npm} file)

extract some basic information from a given file, does not resolve dependencies

extract some basic information from a given file, does not resolve dependencies
raw docstring

js-resource-for-fileclj

(js-resource-for-file npm
                      require
                      {:keys [file file-min] :as cfg}
                      {:keys [mode] :as require-ctx})

if we want to include something that is not on npm or we want a custom thing {"react" {:type :file :file "path/to/my/react.js"}}

if we want to include something that is not on npm or we want a custom thing
{"react" {:type :file :file "path/to/my/react.js"}}
raw docstring

js-resource-for-globalclj

(js-resource-for-global require {:keys [global] :as pkg})

a dependency might come from something already included in the page by other means

a config like: {"react" {:type :global :global "React"}}

means require("react") returns the global React instance

a dependency might come from something already included in the page by other means

a config like:
{"react" {:type :global :global "React"}}

means require("react") returns the global React instance
raw docstring

maybe-convert-googclj

(maybe-convert-goog dep)

node-libs-browserclj


NPM-TIMESTAMPclj


read-package-jsonclj

(read-package-json {:keys [index-ref] :as state} file)

this caches the contents package.json files since we may access them quite often when resolving deps

this caches the contents package.json files since we may access them quite often when resolving deps
raw docstring

service?clj

(service? x)

shadow-js-requireclj

(shadow-js-require {:keys [ns resource-config] :as rc})

split-package-requireclj

(split-package-require entry)

@scoped/thing -> [@scoped/thing nil] @scoped/thing/foo -> [@scoped/thing foo] unscoped -> [unscoped nil] unscoped/foo -> [unscoped foo]

@scoped/thing -> [@scoped/thing nil]
@scoped/thing/foo -> [@scoped/thing foo]
unscoped -> [unscoped nil]
unscoped/foo -> [unscoped foo]
raw docstring

startclj

(start {:keys [node-modules-dir] :as config})

stopclj

(stop npm)

test-fileclj

(test-file dir name)

test-file-extsclj

(test-file-exts {:keys [extensions] :as npm} dir name)

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

× close