djlint 1.36.3 → 1.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -51,12 +51,18 @@ HTML templates were left out there on their own, in the cold, unformatted and un
|
|
|
51
51
|
|
|
52
52
|
## ✨ How?
|
|
53
53
|
|
|
54
|
-
Grab it with `pip`
|
|
54
|
+
Grab it from PyPI with `pip`
|
|
55
55
|
|
|
56
56
|
```bash
|
|
57
57
|
pip install djlint
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
+
Or with the community-maintained [Homebrew formula](https://formulae.brew.sh/formula/djlint) on macOS or Linux
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
brew install djlint
|
|
64
|
+
```
|
|
65
|
+
|
|
60
66
|
_Or with the npm experimental install - Note, this requires python and pip to be on your system path._
|
|
61
67
|
|
|
62
68
|
```bash
|
|
@@ -81,6 +87,17 @@ Fix my format!
|
|
|
81
87
|
djlint . --extension=html.j2 --reformat
|
|
82
88
|
```
|
|
83
89
|
|
|
90
|
+
Or use `pre-commit` to reformat, then lint!
|
|
91
|
+
|
|
92
|
+
```yaml
|
|
93
|
+
repos:
|
|
94
|
+
- repo: https://github.com/djlint/djLint
|
|
95
|
+
rev: v1.36.4 # use latest version instead
|
|
96
|
+
hooks:
|
|
97
|
+
- id: djlint-reformat
|
|
98
|
+
- id: djlint
|
|
99
|
+
```
|
|
100
|
+
|
|
84
101
|
## 💙 Like it?
|
|
85
102
|
|
|
86
103
|
Add a badge to your projects `readme.md`:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "djlint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.38.0",
|
|
4
4
|
"description": "HTML Template Linter and Formatter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"html template linter",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
},
|
|
36
36
|
"files": [],
|
|
37
37
|
"scripts": {
|
|
38
|
-
"postinstall": "python3 -m pip install --upgrade djlint==1.
|
|
38
|
+
"postinstall": "python3 -m pip install --upgrade djlint==1.38.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@ianvs/prettier-plugin-sort-imports": "4.
|
|
42
|
-
"prettier": "3.
|
|
43
|
-
"prettier-plugin-packagejson": "
|
|
41
|
+
"@ianvs/prettier-plugin-sort-imports": "4.7.1",
|
|
42
|
+
"prettier": "3.8.3",
|
|
43
|
+
"prettier-plugin-packagejson": "3.0.2"
|
|
44
44
|
}
|
|
45
45
|
}
|