@modernpoacher/nunjucks 3.1.25 → 3.1.27
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/.gitattributes +26 -0
- package/.husky/post-commit +15 -1
- package/package.json +3 -3
package/.gitattributes
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Default behavior
|
|
2
|
+
* text=auto
|
|
3
|
+
|
|
4
|
+
# LF line endings
|
|
5
|
+
*.yaml text eol=lf
|
|
6
|
+
*.yml text eol=lf
|
|
7
|
+
*.json text eol=lf
|
|
8
|
+
*.js text eol=lf
|
|
9
|
+
*.mjs text eol=lf
|
|
10
|
+
*.cjs text eol=lf
|
|
11
|
+
*.jsx text eol=lf
|
|
12
|
+
*.ts text eol=lf
|
|
13
|
+
*.mts text eol=lf
|
|
14
|
+
*.cts text eol=lf
|
|
15
|
+
*.sh text eol=lf
|
|
16
|
+
.depsrc text eol=lf
|
|
17
|
+
.editorconfig text eol=lf
|
|
18
|
+
.eslintignore text eol=lf
|
|
19
|
+
.eslintrc text eol=lf
|
|
20
|
+
.gitattributes text eol=lf
|
|
21
|
+
.gitignore text eol=lf
|
|
22
|
+
.npmignore text eol=lf
|
|
23
|
+
.npmrc text eol=lf
|
|
24
|
+
.nvmrc text eol=lf
|
|
25
|
+
.babelrc text eol=lf
|
|
26
|
+
.husky/* text eol=lf
|
package/.husky/post-commit
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
. "$(dirname "$0")/_/husky.sh"
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
get_package_changes () {
|
|
5
|
+
local CURRENT_BRANCH
|
|
6
|
+
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
|
7
|
+
|
|
8
|
+
git diff HEAD~1..HEAD~0 -- "origin/$CURRENT_BRANCH" package.json
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
has_package_changes () {
|
|
12
|
+
[ ! -z "$(get_package_changes)" ]
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
if has_package_changes;
|
|
16
|
+
then
|
|
17
|
+
npx cross-env DEBUG=@modernpoacher/hooks* node .husky/post-commit.mjs
|
|
18
|
+
fi
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modernpoacher/nunjucks",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.27",
|
|
4
4
|
"description": "Nunjucks for Hapi",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hapi",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"@babel/core": "^7.22.1",
|
|
29
29
|
"@babel/eslint-parser": "^7.21.8",
|
|
30
30
|
"@babel/preset-env": "^7.22.4",
|
|
31
|
-
"@modernpoacher/hooks": "^1.0.
|
|
31
|
+
"@modernpoacher/hooks": "^1.0.416",
|
|
32
32
|
"core-js": "^3.30.2",
|
|
33
|
-
"eslint": "^8.
|
|
33
|
+
"eslint": "^8.42.0",
|
|
34
34
|
"eslint-config-standard": "^17.1.0",
|
|
35
35
|
"eslint-plugin-import": "^2.27.5",
|
|
36
36
|
"eslint-plugin-node": "^11.1.0",
|