mix corex.tableau.new (corex_new v0.2.0)

Copy Markdown View Source

Creates a new Tableau static site with Corex installed.

Install archives:

mix archive.install hex tableau_new
mix archive.install hex corex_new

mix corex.tableau.new PATH runs mix tableau.new PATH --template heex --js esbuild --css tailwind, then writes Corex-owned files and patches into that app.

Corex-only options

  • --no-design - skip the corex_design dependency and live design build. Ships a static neo/light assets/corex/ export (all components) you can edit or delete. Cannot combine with --mode, --theme, or --a11y. Default is --design (design on).
  • --mode - theme/mode toggle head scripts for light/dark. Implies --design.
  • --theme - themes (Neo/Uno/Duo/Leo), theme toggle, layout bridge. Implies --design.
  • --a11y - preference axes, head script, panel UI. Default off. Implies --design.
  • --lang - Gettext, Localize, per-locale pages (en / fr / ar), language <.select>. Implies --design.
  • --mcp / --no-mcp - when --mcp (default), a Bandit MCP server starts in dev on port 4004, and .cursor/mcp.json is written for http://localhost:4004/corex/mcp. Use --no-mcp to skip. Never enable remote access casually.
  • --usage-rules / --no-usage-rules - when --usage-rules (default), adds {:usage_rules, "~> 1.1", only: :dev} and skills sync config.
  • --dev PATH - {:corex, path: PATH}, {:corex_design, path: PATH/design}, and relative corex.mjs import when building JS.
  • --install / --no-install - whether Corex runs mix deps.get in the new project after generation (prompt if omitted).

Examples

mix corex.tableau.new my_blog
mix corex.tableau.new my_blog --mode --theme
mix corex.tableau.new my_blog --mode --theme --a11y
mix corex.tableau.new my_blog --lang
mix corex.tableau.new my_blog --no-design
mix corex.tableau.new my_blog --dev ../corex

To update the generator before creating a project:

mix local.corex
mix corex.tableau.new my_blog