A simple NodeJS script to create & update a CHANGELOG.md
npm install --save-dev shelljs-changelogNow, add a script to package.json like so:
"scripts": {
"test": "... whatever you had here before ...",
"changelog": "shelljs-changelog"
},You'll need to have curl installed in order to use this script.
Also, make sure you have internet access when running this.
To update the changelog, run:
npm run changelogFor best results, try to run this after every time you publish.
By default, this script verifies that the changelog diff contains no more than
5 deletions. With --force enabled, this step is skipped.