Skip to content

Latest commit

 

History

History
101 lines (67 loc) · 1.56 KB

File metadata and controls

101 lines (67 loc) · 1.56 KB

Transity Development

Getting Started

Install dependencies:

npm install
spago install

Build project:

spago build

Build and run:

spago run --node-args 'balance test/test.yaml'

Make transity executable available in your path:

npm link

All modifications to the source code (after building it) will now be available via the linked transity executable.

Test

spago test --watch

Documentation

Generate and serve the Pursuit documentation with:

spago docs
cd generated-docs/html
python3 -m http.server 1222

Then open localhost:1222.

Install markdown-toc with npm and run following command to update the table of contents in the readme:

markdown-toc -i readme.md

Generate Screenshots

Use asciinema to generate the terminal recording:

asciinema rec \
  --title 'Transity' \
  recording.json

Change the size of the terminal in the recording.json file to approximately

  "width": 80,
  "height": 18,

Then use svg-term to generate the SVG image:

svg-term \
  --no-cursor \
  --at 99999 \
  --window \
  --term iterm2 \
  --profile ../../dotfiles/terminal/adius.itermcolors \
  < recording.json \
  > recording.svg

And lastly convert all CSS styles to inline styles because of issue marionebl/svg-term-cli#5