Interface commands
Turn a Paper layout into an interface object.
A Paper layout becomes an interface object. Read Import for the other sources.
puni interfaceTurn a Paper layout into an interface object.
#interface import
Read a Paper .tsx file and write the commands that add it as an interface module, with a list of anything it could not keep.
puni interface import --file paper.tsx --output edits.json [--name Interface]
| Flag | Type | Default | Values | What it does |
|---|---|---|---|---|
--file required | string | The Paper source file. | ||
--output required | string | Where to write the command JSON. | ||
--name | string | The module's name. | ||
--overwrite | boolean | false | Replace the output file if it already exists. | |
--json | boolean | false | Answer with one JSON envelope instead of the shell view. Exception: agent serve streams raw lifecycle JSON lines before its final envelope. | |
--help -h | boolean | Print the command list. |
#Run interface import
puni interface import --file card.tsx --output edits.json --name Card --jsonBack to the command line index for every group.
Was this useful?