1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 17:34:25 +04:00

changelog update

This commit is contained in:
codecalm
2022-01-22 01:21:32 +01:00
parent 6cddaa60d5
commit 9fc3435a52
6 changed files with 170 additions and 7 deletions

View File

@@ -99,6 +99,34 @@ gulp.task('svg-icons', (cb) => {
cb()
})
/**
* Generate CHANGELOG.md
*/
gulp.task('changelog', (cb) => {
const content = YAML.parse(fs.readFileSync('./src/pages/_data/changelog.yml', 'utf8'))
let readme = `# Changelog
All notable changes to this project will be documented in this file.\n`
content.forEach((change) => {
readme += `\n\n## \`${change.version}\` - ${change.date}\n\n`
if(change.description) {
readme += `**${change.description}**\n\n`
}
change.changes.forEach((line) => {
readme += `- ${line}\n`
})
console.log(change.version);
})
fs.writeFileSync('CHANGELOG.md', readme)
cb()
})
/**
* Check unused Jekyll partials
*/