apps/rxjs.dev/tools/transforms/rxjs-decision-tree-generator/README.md
Manage a decision tree in YAML for choosing an operator and generate JSON to be consumed by the docs web app.
Version 1 was in the old docs site and used YAML, snabbdom, RxJS, and hyperscript-helpers. The YAML for version 1 version was ported into the new version with minor tweaks.
Generating the JSON requires:
/srcapi-list.json, which can be generated by running yarn docs at the root level of the apps/rxjs.devnpm i && yarn build
Any changes to the YAML tree or any of the TypeScript scripts will generate a new JSON tree
yarn watch
After a yarn build the JSON is output to apps/rxjs.dev/src/generated/app/decision-tree-data.json to be consumed by the web application.
There's also an npm script at the root level of the apps/rxjs.dev to generate the JSON tree: docs-decision-tree.
Run a watch task when writing tests
yarn test:watch
Full test
yarn test
Run coverage
yarn test:coverage
yarn test:watch:coverage