write-changelog.js 515 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env node
  2. var pkg = require('../composer.json');
  3. var fs = require('fs');
  4. var changelog = require('elgg-conventional-changelog');
  5. changelog({
  6. version: pkg.version,
  7. repository: 'https://github.com/Elgg/Elgg',
  8. types: {
  9. feature: 'Features',
  10. perf: 'Performance',
  11. docs: 'Documentation',
  12. fix: 'Bug Fixes',
  13. deprecate: 'Deprecations',
  14. breaks: 'Breaking Changes',
  15. }
  16. }, function(err, log) {
  17. if (err) throw new Error(err);
  18. fs.writeFileSync('CHANGELOG.md', log);
  19. });