0.0.12 • Published 4 years ago

remark-smcat v0.0.12

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

remark-smcat Build Status

Remark State Machine Cat

Simple remark plugin wrapper around state-machine-cat for rendering diagrams inline.

Installation

npm install remark-smcat

Usage

Plug in transforms remark ASTs as follows:

const unified = require('unified')
const createStream = require('unified-stream')
const remarkparse = require("remark-parse");
const remark2rehype = require('remark-rehype');
const smcat = require('remark-smcat');
const html = require('rehype-stringify');

const processor = unified()
	.use(remarkparse, { gfm: true, commonmark: true, footnotes: true })
	.use(smcat)
	.use(remark2rehype)
	.use(html);

process.stdin.pipe(createStream(processor)).pipe(process.stdout);
​```smcat
initial,
backlog,
doing:
  entry/ create branch
  exit/ submit PR,
review:
  exit/ merge PR to develop,
QA,
done,
final;

initial -> backlog;
backlog -> doing: pull;

doing -> review: functionality built;

review -> doing: [code quality not ok];
review -> QA: [code quality ok];
review -> QA: [code has minor issues]/
  create tech debt item;

QA -> doing: [not acceptable];
QA -> done: [ok but issue(s) found]/
  create bug(s);
QA -> done: [okie dokie];

done -> final;
​```

turns into

example

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago