@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.md
to install Penrose. - Run
roger trio packages/examples/src/set-theory-domain/tree-venn.trio.json
from the repo root. The output SVG will appear in the console.
roger
for local development
Using - If you are developing a module in
core
, you can runyarn start
in the project root direcory, which will continuously watch your changes incore
and update your build. - Check the console before you run
roger
to make sure your changes incore
are not causing any errors. - If the build is successful,
roger
will now be using the most recent version ofcore
when batch-processing Penrose programs.