Skip to content

Commit

Permalink
turbo: Upgrade to v8.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Apr 15, 2024
1 parent a13ccec commit f4f7349
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions turbo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ First, add the module import to your site or theme component's configuration's m
```toml
[module]
[[imports]]
path = "github.com/gohugoio/hugo-mod-jslibs/turbo/v7"
path = "github.com/gohugoio/hugo-mod-jslibs/turbo/v8"
```

Then add the script source in the head section of your template (typically in the `baseof.html`):
Expand All @@ -21,4 +21,4 @@ Then add the script source in the head section of your template (typically in th
</head>
```

Note that the target `src` folder gets mounted to `assets/jslibs/turbo/v7`.
Note that the target `src` folder gets mounted to `assets/jslibs/turbo/v8`.
10 changes: 8 additions & 2 deletions turbo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ target = "layouts"
source = "assets"
target = "assets"
[[module.imports]]
path = "github.com/bep/turbo/v7"
path = "github.com/hotwired/turbo"
[[module.imports.mounts]]
source = "src"
target = "assets/jslibs/turbo/v7"
target = "assets/jslibs/turbo/v8"
[[module.imports]]
path = "github.com/bigskysoftware/idiomorph"
[[module.imports.mounts]]
source = "dist"
target = "assets/idiomorph/dist"

9 changes: 6 additions & 3 deletions turbo/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
module github.com/gohugoio/hugo-mod-jslibs/turbo/v7
module github.com/gohugoio/hugo-mod-jslibs/turbo/v8

go 1.17
go 1.20

require github.com/bep/turbo/v7 v7.20300.20000 // indirect
require (
github.com/bigskysoftware/idiomorph v0.3.0 // indirect
github.com/hotwired/turbo v8.0.4+incompatible // indirect
)
20 changes: 4 additions & 16 deletions turbo/go.sum
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
github.com/bep/turbo v0.0.0-20220913134225-9e6e0b9992f0 h1:eiYsjNInbhM9/TaqmIO9Yvz0q68zcQHblHz+IAlNyHA=
github.com/bep/turbo v0.0.0-20220913134225-9e6e0b9992f0/go.mod h1:cP3jeD6JT0LTNRVRBdnX+az2AO54Ll4tAPENx79xJ4A=
github.com/bep/turbo/v7 v7.0.0-20220913153645-98562c503dfe h1:PAu0ycvdlA4tfUdtfxQla1J/IrIykRFUvZRRidyukP0=
github.com/bep/turbo/v7 v7.0.0-20220913153645-98562c503dfe/go.mod h1:CIoAv+QVJtkr+kXn2ZmfJ/V4r3TPLR6CNMGvWjWqdSc=
github.com/bep/turbo/v7 v7.0.0-20220913155955-177360504ded h1:/TZH/L4QD4FOsm+uXMASOWiU7csZfEMpgf+TCeCpOec=
github.com/bep/turbo/v7 v7.0.0-20220913155955-177360504ded/go.mod h1:CIoAv+QVJtkr+kXn2ZmfJ/V4r3TPLR6CNMGvWjWqdSc=
github.com/bep/turbo/v7 v7.0.1-patch1 h1:2tMyUXhp/MGakNggqIfhc2cMEyMc2z9epZXzj9WdKwU=
github.com/bep/turbo/v7 v7.0.1-patch1/go.mod h1:CIoAv+QVJtkr+kXn2ZmfJ/V4r3TPLR6CNMGvWjWqdSc=
github.com/bep/turbo/v7 v7.20001.20100 h1:k/exSUTpju2RnS5A9fVGkw2ipYsS12kPi9xwmnhf+3Q=
github.com/bep/turbo/v7 v7.20001.20100/go.mod h1:CIoAv+QVJtkr+kXn2ZmfJ/V4r3TPLR6CNMGvWjWqdSc=
github.com/bep/turbo/v7 v7.20300.20000 h1:omrI4cPRwnLufr8S7jCo9JG95FVTM8hIEvJCtgbnhuc=
github.com/bep/turbo/v7 v7.20300.20000/go.mod h1:CIoAv+QVJtkr+kXn2ZmfJ/V4r3TPLR6CNMGvWjWqdSc=
github.com/hotwired/turbo v7.0.1+incompatible h1:DvY56vNgcvH0vkw4VqlAc/hfsTeMdcoOKTGgnoGH6ok=
github.com/hotwired/turbo v7.0.1+incompatible/go.mod h1:6XcpYEC+j8xb7URpSYwhlq4iq98M5F5T/jaLWNHVbZs=
github.com/turbolinks/turbolinks-source-gem v5.2.0+incompatible h1:UNx8t3fYB51UyUv3gOXpTPT7Q6u9LCdcXQd2iW1EClA=
github.com/turbolinks/turbolinks-source-gem v5.2.0+incompatible/go.mod h1:Cl0Br9tUXkQvxumVNGTvyaa7dqpFC2kPMrsS0Ttc94U=
github.com/bigskysoftware/idiomorph v0.3.0 h1:oBY+wmTfvMOFmzPhmutv2JQJGl/hO/wLABF3+Y9R9ZE=
github.com/bigskysoftware/idiomorph v0.3.0/go.mod h1:rS0FeLewyCnz7kx5cj1r1oMY3FvN/nj6x8x6jW0Fmt8=
github.com/hotwired/turbo v8.0.4+incompatible h1:5kl0vGFKE9TUidGu0kQjbCU8mTuEg/Jugf0rtSA6OEk=
github.com/hotwired/turbo v8.0.4+incompatible/go.mod h1:6XcpYEC+j8xb7URpSYwhlq4iq98M5F5T/jaLWNHVbZs=
7 changes: 5 additions & 2 deletions turbo/layouts/partials/jslibs/turbo/script-src.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{{ $sourceMap := cond hugo.IsProduction "" "inline" }}
{{ $opts := dict "sourceMap" $sourceMap "minify" hugo.IsProduction "target" "es2016" }}
{{- $js := resources.Get "jslibs/turbo/v7/index.ts" | js.Build $opts -}}
{{- $js := resources.Get "jslibs/turbo/v8/index.js" | js.Build $opts -}}
{{- if hugo.IsProduction }}
{{ $js = $js | fingerprint }}
{{ end -}}
<script src="{{ $js.RelPermalink }}" {{ if hugo.IsProduction }} integrity="{{ $js.Data.Integrity }}" {{ end }} defer></script>
<script
src="{{ $js.RelPermalink }}"
{{ if hugo.IsProduction }}integrity="{{ $js.Data.Integrity }}"{{ end }}
defer></script>

0 comments on commit f4f7349

Please sign in to comment.