From 3e7a9ba7c5ea66f8c6997ab0f66702332f51f3f8 Mon Sep 17 00:00:00 2001 From: Henk Verlinde Date: Thu, 16 Apr 2020 08:38:41 +0200 Subject: [PATCH] Remove alpinejs --- config/_default/config.toml | 3 --- config/production/config.toml | 2 +- config/staging/config.toml | 2 +- layouts/partials/footer/script-footer.html | 6 ++---- package.json | 1 - yarn.lock | 23 +++++++++------------- 6 files changed, 13 insertions(+), 24 deletions(-) diff --git a/config/_default/config.toml b/config/_default/config.toml index 2123f6a..51cce44 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -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" diff --git a/config/production/config.toml b/config/production/config.toml index f1285c4..0a9e67b 100644 --- a/config/production/config.toml +++ b/config/production/config.toml @@ -1,2 +1,2 @@ -baseurl = "https://doks.gethyas.com/" +baseurl = "https://doks.netlify.app/" canonifyURLs = false diff --git a/config/staging/config.toml b/config/staging/config.toml index ab3bb7b..14e8022 100644 --- a/config/staging/config.toml +++ b/config/staging/config.toml @@ -1,2 +1,2 @@ -baseurl = "https://doks-staging.gethyas.com/" +baseurl = "https://doks-staging.netlify.app/" canonifyURLs = false diff --git a/layouts/partials/footer/script-footer.html b/layouts/partials/footer/script-footer.html index 739a7ae..b61fe0b 100644 --- a/layouts/partials/footer/script-footer.html +++ b/layouts/partials/footer/script-footer.html @@ -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" -}} {{ 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" -}} {{ end -}} \ No newline at end of file diff --git a/package.json b/package.json index 4d7f302..21a8cb6 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,6 @@ "stylelint-config-standard": "^20.0" }, "dependencies": { - "alpinejs": "^2.2.5", "bootstrap": "^4.4", "lazysizes": "^5.2" } diff --git a/yarn.lock b/yarn.lock index b98e26c..1b16102 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"