- ./src/walkable.js - Patroon allows one to define deeply nested patterns. To implement these features succinctly we use an abstraction which allows the traversing of a tree. This is an area of computer science named tree traversal.
- ./src/index.js - We now take the walkable utility and implement patroon's functionality.
- ./src/helpers.js - You might have noticed that both the patroon and walkable modules have common helper functions.
Standard is good enough.
npx standardWe generate the contributors list using node and store it in woven.
require('./package.json').contributors.reduce((acc, {name, url, email}) =>
`${acc}- **${name}** *${url}*\n`, '')We also generate the table of contents and store it in woven.
npx markdown-toc --no-firsth1 --maxdepth 4 README.mzFor the tests in the README.mz to work we also need to install patroon.
npm link
npm link patroon
up to date, audited 3 packages in 587ms
found 0 vulnerabilities
added 1 package, and audited 127 packages in 794ms
85 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
We then use woven to template the README. Then we run markatzea to run the examples and show the output of those.
woven < README.mz | markatzea > README.md
echo 'Documentation generated successfully.' 1>&2The changelog is generated using the useful auto-changelog project.
npx auto-changelog -p