mirror of
https://github.com/Hopiu/djLint.git
synced 2026-03-16 21:40:24 +00:00
updated release and gitignore
This commit is contained in:
parent
efec955de5
commit
9736050740
4 changed files with 16 additions and 4 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
13
docs/src/lib/generateContentHash.js
Normal file
13
docs/src/lib/generateContentHash.js
Normal 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;
|
||||
|
|
@ -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>"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue