updated release and gitignore

This commit is contained in:
Christopher Pickering 2022-01-03 16:50:21 -06:00
parent efec955de5
commit 9736050740
No known key found for this signature in database
GPG key ID: E14DB3B0A0FACF84
4 changed files with 16 additions and 4 deletions

3
.gitignore vendored
View file

@ -177,5 +177,4 @@ dmypy.json
cython_debug/
# End of https://www.toptal.com/developers/gitignore/api/macos,python
!docs/lib
!docs_new/lib
!docs/src/lib

View file

@ -8,7 +8,7 @@ keywords: template linter, template formatter, djLint, HTML, templates, formatte
# Changelog
## Next Release
## 0.7.0
::: content
- Added config for custom HTML tags

View file

@ -0,0 +1,13 @@
const fs = require('fs');
const glob = require('fast-glob');
const md5 = require('md5');
function generateContentHash(dir) {
const sourceFiles = glob.sync([`${dir}`]);
const sourceContent = sourceFiles
.map((sourceFile) => fs.readFileSync(sourceFile))
.join('');
return md5(sourceContent).slice(0, 8);
}
module.exports = generateContentHash;

View file

@ -7,7 +7,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name="djlint"
version="0.6.9"
version="0.7.0"
description="HTML Template Linter and Formatter"
license="GPL-3.0-or-later"
authors=["Christopher Pickering <cpickering@rhc.net>"]