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:
- the editor hooks are registered in a JS entry point
(
import {hooks as Elementorex} from "elementorex_cms") - esbuild resolves the package from
deps/(NODE_PATHinconfig.exs) - the CSS that renders documents scans the blocks
(
@source "../../deps/elementorex_cms/lib") - optionally, the public runtime (countdown) is registered
Options: --js and --css to point to other entry points (globs).