Remove alpinejs

This commit is contained in:
Henk Verlinde 2020-04-16 08:38:41 +02:00
parent d7479bef23
commit 3e7a9ba7c5
6 changed files with 13 additions and 24 deletions

View File

@ -60,9 +60,6 @@ notAlternative = true
[[module.mounts]]
source = "static"
target = "static"
[[module.mounts]]
source = "node_modules/alpinejs/dist"
target = "assets/js/vendor/alpinejs"
[[module.mounts]]
source = "node_modules/lazysizes"
target = "assets/js/vendor/lazysizes"

View File

@ -1,2 +1,2 @@
baseurl = "https://doks.gethyas.com/"
baseurl = "https://doks.netlify.app/"
canonifyURLs = false

View File

@ -1,2 +1,2 @@
baseurl = "https://doks-staging.gethyas.com/"
baseurl = "https://doks-staging.netlify.app/"
canonifyURLs = false

View File

@ -1,13 +1,11 @@
{{ $lazysizes := resources.Get "js/vendor/lazysizes/lazysizes.min.js" -}}
{{ if eq (hugo.Environment) "development" -}}
{{ $alpinejs := resources.Get "js/vendor/alpinejs/alpine.js" -}}
{{ $app := resources.Get "js/app.js" -}}
{{ $js := slice $alpinejs $lazysizes $app | resources.Concat "main.js" -}}
{{ $js := slice $lazysizes $app | resources.Concat "main.js" -}}
<script src="{{ $js.Permalink }}" defer></script>
{{ else -}}
{{ $alpinejs := resources.Get "js/vendor/alpinejs/alpine.js" | minify -}}
{{ $app := resources.Get "js/app.js" | minify -}}
{{ $js := slice $alpinejs $lazysizes $app | resources.Concat "main.js" -}}
{{ $js := slice $lazysizes $app | resources.Concat "main.js" -}}
{{ $secureJS := $js | resources.Fingerprint "sha512" -}}
<script src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}" crossorigin="anonymous" defer></script>
{{ end -}}

View File

@ -30,7 +30,6 @@
"stylelint-config-standard": "^20.0"
},
"dependencies": {
"alpinejs": "^2.2.5",
"bootstrap": "^4.4",
"lazysizes": "^5.2"
}

View File

@ -1066,11 +1066,6 @@ ajv@^6.1.0, ajv@^6.10.0, ajv@^6.10.2, ajv@^6.12.0:
json-schema-traverse "^0.4.1"
uri-js "^4.2.2"
alpinejs@^2.2.5:
version "2.2.5"
resolved "https://registry.yarnpkg.com/alpinejs/-/alpinejs-2.2.5.tgz#bb61ddeaef62fd844e2c0cb0c8c6c56c3d6a1c0f"
integrity sha512-/mhw+yQRNM5opwGcYbEIFxTi8ZDBSMpYksA0pPia1V9UpKwjwfTfO6xndNinJirHDe7QS3pke4tpnNPSAsjbWQ==
ansi-escapes@^4.2.1:
version "4.3.1"
resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.1.tgz#a5c47cc43181f1f38ffd7076837700d395522a61"
@ -2126,9 +2121,9 @@ ee-first@1.1.1:
integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=
electron-to-chromium@^1.3.390:
version "1.3.408"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.408.tgz#e6a3a2b8f87c875dfd6e16501abe7a28f079bbb3"
integrity sha512-vn1zWIxIdyl0MR72lr81/7kHYTRlDRjJT4ocp8dtb85VhH46J3lNqDMEBljAKPKgguqjK0+WAbf3IL6ZKw72kQ==
version "1.3.409"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.409.tgz#c9a4380ff0ad3e26cd1b4b4cef800d17c46aec7e"
integrity sha512-CB2HUXiMsaVYY5VvcpELhDShiTRhI2FfN7CuacEZ5mDmMFuSG/ZVm8HoSya0+S61RvUd3TjIjFSKywqHZpRPzQ==
elliptic@^6.0.0:
version "6.5.2"
@ -2318,9 +2313,9 @@ estraverse@^4.1.0, estraverse@^4.1.1:
integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==
estraverse@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.0.0.tgz#ac81750b482c11cca26e4b07e83ed8f75fbcdc22"
integrity sha512-j3acdrMzqrxmJTNj5dbr1YbjacrYgAxVMeF0gK16E3j494mOe7xygM/ZLIguEQ0ETwAg2hlJCtHRGav+y0Ny5A==
version "5.1.0"
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.1.0.tgz#374309d39fd935ae500e7b92e8a6b4c720e59642"
integrity sha512-FyohXK+R0vE+y1nHLoBM7ZTyqRpqAlhdZHCWIWEviFLiGB8b04H6bQs8G+XTthacvT8VuwvteiP7RJSxMs8UEw==
esutils@^2.0.2:
version "2.0.3"
@ -4872,9 +4867,9 @@ resolve-url@^0.2.1:
integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=
resolve@^1.10.0, resolve@^1.3.2:
version "1.15.1"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.15.1.tgz#27bdcdeffeaf2d6244b95bb0f9f4b4653451f3e8"
integrity sha512-84oo6ZTtoTUpjgNEr5SJyzQhzL72gaRodsSfyxC/AXRvwu0Yse9H8eF9IpGo7b8YetZhlI6v7ZQ6bKBFV/6S7w==
version "1.16.0"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.16.0.tgz#063dc704fa3413e13ac1d0d1756a7cbfe95dd1a7"
integrity sha512-LarL/PIKJvc09k1jaeT4kQb/8/7P+qV4qSnN2K80AES+OHdfZELAKVOBjxsvtToT/uLOfFbvYvKfZmV8cee7nA==
dependencies:
path-parse "^1.0.6"