@penrose/roger
v3.3.0
Published
This package is a command-line application that depends on `@penrose/core` and processes Penrose diagrams. See [the docs on the Penrose website][website docs].
Keywords
Readme
@penrose/roger: a CLI for Penrose
This package is a command-line application that depends on @penrose/core and
processes Penrose diagrams. See the docs on the Penrose website.
Usage:
roger <command>
Commands:
roger trio [trio..] Generate a diagram from a Penrose trio.
roger trios [trios..] Create diagrams from multiple .trio.json files.
roger watch Watch the current folder for files & changes (must end
in .substance, .style, .domain)
roger shapedefs Generate a JSON file that contains all shape definition
s in the Penrose system.
Options:
--version Show version number [boolean]
--help Show help [boolean]Getting started
- Follow the instruction in
CONTRIBUTING.mdto install Penrose. - Run
roger trio packages/examples/src/set-theory-domain/tree-euler.trio.jsonfrom the repo root. The output SVG will appear in the console.
Using roger for local development
- If you are developing a module in
core, you can runyarn startin the project root direcory, which will continuously watch your changes incoreand update your build. - Check the console before you run
rogerto make sure your changes incoreare not causing any errors. - If the build is successful,
rogerwill now be using the most recent version ofcorewhen batch-processing Penrose programs.
