UNPKG

cram

Version:

An AMD-compatible build tool.

43 lines (39 loc) 912 B
## What kinds of things can a grokker return? 1. curl configuration - inside html - inside runjs 2. boot script - html grokker can discover url - runjs grokker can get text - is this a form of config? config.prepend - extra.scripts? 3. module ids - calls to curl([...]) - is this a form of config? config.includes = [...] 4. url of the loader (is this a prepend?) - html can find data-curl-run - extra.scripts? 5. info messages, warnings, errors - all the grokkers 6. inline defined module ids - runjs: defines that could be alongside run script - extra.excludes? config needs to be strictly curl config? or can we mix cram config with curl config? - includes - excludes - scripts - we merge the json config already result = { config: { /* curl config */ includes (ids) excludes (ids) scripts (urls) }, extra: { infos (strings) warnings (strings) errors (Error objects) } }