Liking cljdoc? Tell your friends :D

shadow.build.npm


asset-extsclj

source

asset-require?clj

(asset-require? require)
source

CLOSURE-TIMESTAMPclj

source

empty-rcclj

source

find-fileclj

(find-file npm require-from require)
source

find-packageclj

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

find-package*clj

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

find-package-for-fileclj

(find-package-for-file npm file)
source

find-package-jsonclj

(find-package-json file)
source

find-package-requireclj

(find-package-require npm require)
source

find-package-resourceclj

(find-package-resource npm require)
source

find-relativeclj

(find-relative npm relative-to require)
source

find-resourceclj

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

get-file-infoclj

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

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
sourceraw 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"}}
sourceraw 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
sourceraw docstring

maybe-convert-googclj

(maybe-convert-goog dep)
source

node-libs-browserclj

source

NPM-TIMESTAMPclj

source

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

service?clj

(service? x)
source

shadow-js-requireclj

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

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

startclj

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

stopclj

(stop npm)
source

test-fileclj

(test-file dir name)
source

test-file-extsclj

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

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

× close