1 | const acquit = require('acquit');
|
2 | const fs = require('fs');
|
3 |
|
4 | require('acquit-ignore')();
|
5 | require('acquit-markdown')(null, { it: true });
|
6 |
|
7 | acquit.output(function(str) {
|
8 | return str.replace(/acquit:ignore:end\s+/g, '');
|
9 | });
|
10 |
|
11 | const header = fs.readFileSync('./HEADER.md', 'utf8');
|
12 | const markdown =
|
13 | acquit.parse(fs.readFileSync('./test/examples.test.js', 'utf8'));
|
14 |
|
15 | fs.writeFileSync('./README.md', `${header}\n\n${markdown}`);
|