MishkaCmsCore.Runtime.Resources.Validations.HookPackages (Mishka CMS Core v0.0.1)

Copy Markdown View Source

A JS hook's npm packages and modules are what the JavaScript compiler fetches and writes to disk, so a hook is refused unless each package is one MishkaCmsCore.Runtime.Compilers.NpmPackages can fetch, and each module a plain name.js with its content — written beside the hook, and nowhere else.

Summary

Functions

Whether module is a file the compiler may write beside a hook.

Functions

module?(module)

@spec module?(term()) :: boolean()

Whether module is a file the compiler may write beside a hook.