mix arc.gen.proxies (cratis_arc v0.1.0)

Copy Markdown View Source

Generates TypeScript proxies for the React frontend. Proxy generation is opt-in.

mix arc.gen.proxies
mix arc.gen.proxies --application MyApp.Arc --output assets/src/arc
mix arc.gen.proxies --check

Options

  • --application - the Arc.Application module; defaults to arc: [application: ...] in mix.exs
  • --output - the output directory; defaults to arc: [output: ...] in mix.exs
  • --layout - namespace (default) or colocated; defaults to arc: [layout: ...]
  • --check - write nothing; exit with an error when the proxies on disk are out of date. Use it in CI to keep committed proxies current.
  • --no-remove-stale - keep generated files of artifacts that no longer exist

See Arc.ProxyGenerator.