-
-
Notifications
You must be signed in to change notification settings - Fork 169
Closed
Labels
Description
I find the current workflow of generating readme in post-commit sligtly cumbersome. 1. The commit docs: generate docs is noisy. 2. Somehow the post-commit script will fail if I am not in the branch master.
How about this workflow:
- Contributor do their work and run test.
- Test script generate README (without writing to disk), and check that the generated readme is identical to
/README.md. If the REAMDE is not up to date, fail test with the message:Please run "npm run create-readme" to update the docs.. - Contributor run
npm run create-readme. This script generate README and write it to disk.
This workflow has the benefit that updatedness of README is tested in CI.
What do yo think?