mix elementorex.install (ElementorexCms v0.1.0)

Copy Markdown View Source

Checks the steps that connect ElementorexCms to a Phoenix app and prints the snippet for any missing one. It does not modify files.

$ mix elementorex.install

What it checks:

  1. the editor hooks are registered in a JS entry point (import {hooks as Elementorex} from "elementorex_cms")
  2. esbuild resolves the package from deps/ (NODE_PATH in config.exs)
  3. the CSS that renders documents scans the blocks (@source "../../deps/elementorex_cms/lib")
  4. optionally, the public runtime (countdown) is registered

Options: --js and --css to point to other entry points (globs).