mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-20 10:44:20 +00:00
releaser: Prepare repository for 0.79.0-DEV
[ci skip]
This commit is contained in:
parent
fd62817bba
commit
cf6131dc18
3 changed files with 4 additions and 46 deletions
|
@ -16,7 +16,7 @@ package hugo
|
||||||
// CurrentVersion represents the current build version.
|
// CurrentVersion represents the current build version.
|
||||||
// This should be the only one.
|
// This should be the only one.
|
||||||
var CurrentVersion = Version{
|
var CurrentVersion = Version{
|
||||||
Number: 0.78,
|
Number: 0.79,
|
||||||
PatchLevel: 0,
|
PatchLevel: 0,
|
||||||
Suffix: "",
|
Suffix: "-DEV",
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
name: hugo
|
name: hugo
|
||||||
version: "0.78.0"
|
version: "0.79.0-DEV"
|
||||||
summary: Fast and Flexible Static Site Generator
|
summary: Fast and Flexible Static Site Generator
|
||||||
description: |
|
description: |
|
||||||
Hugo is a static HTML and CSS website generator written in Go. It is
|
Hugo is a static HTML and CSS website generator written in Go. It is
|
||||||
optimized for speed, easy use and configurability. Hugo takes a directory
|
optimized for speed, easy use and configurability. Hugo takes a directory
|
||||||
with content and templates and renders them into a full HTML website.
|
with content and templates and renders them into a full HTML website.
|
||||||
confinement: strict
|
confinement: strict
|
||||||
grade: stable # "devel" or "stable"
|
grade: devel # "devel" or "stable"
|
||||||
|
|
||||||
apps:
|
apps:
|
||||||
hugo:
|
hugo:
|
||||||
|
|
|
@ -1,42 +0,0 @@
|
||||||
This release finally brings full [Hugo Modules](https://gohugo.io/hugo-modules/) support to [js.Build](https://gohugo.io/hugo-pipes/js/), curtsy of he new plugin API in the really, really fast [ESBuild](https://github.com/evanw/esbuild) by [@evanw](https://github.com/evanw).
|
|
||||||
|
|
||||||
Some notes on the improvements in this release:
|
|
||||||
|
|
||||||
* Now `js.Build` fully supports the virtual union file system in [Hugo Modules](https://gohugo.io/hugo-modules/). Any import inside your JavaScript components will resolve starting from the top component mount inside `/assets` with a fallback to the traditional "JS way" (`node_modules` etc.)
|
|
||||||
* You can now pass configuration data from the templates to your scripts via a new `params` option.
|
|
||||||
* Hugo now writes a `jsconfig.js` file inside `/assets` (you can turn it off) with import mappings to help editors such as VS Code with intellisense/navigation, which is especially useful when there is no common root and the source lives inside some temporary directory.
|
|
||||||
* We have also improved the build errors you get from `js.Build`. In server mode you will get a preview of the failing lines and in the console you will get a link to the location.
|
|
||||||
|
|
||||||
Read more about this in [the documentation](https://gohugo.io/hugo-pipes/js/), but a short usage example would look like:
|
|
||||||
|
|
||||||
In the template:
|
|
||||||
|
|
||||||
```go-html-template
|
|
||||||
{{ $js := resources.Get "js/main.js" | js.Build (dict "params" (dict "api" "https://example.org/api" ) }}
|
|
||||||
```
|
|
||||||
|
|
||||||
And then in a JavaScript component:
|
|
||||||
|
|
||||||
```js
|
|
||||||
import * as params from '@params';
|
|
||||||
|
|
||||||
// Wil resolve to one of `hello.{js,ts,tsx,jsx}` inside `assets/my/module`.
|
|
||||||
import { hello } from 'my/module/hello';
|
|
||||||
|
|
||||||
var api = params.api;
|
|
||||||
|
|
||||||
hello();
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
## Changes
|
|
||||||
|
|
||||||
* Add avoidTDZ option [3b2fe3cd](https://github.com/gohugoio/hugo/commit/3b2fe3cd33b74166c3debec9826826f2b5a54fd9) [@bep](https://github.com/bep) [#7865](https://github.com/gohugoio/hugo/issues/7865)
|
|
||||||
* Make js.Build fully support modules [85e4dd73](https://github.com/gohugoio/hugo/commit/85e4dd7370eae97ae367e596aa6a10ba42fd4b7c) [@bep](https://github.com/bep) [#7816](https://github.com/gohugoio/hugo/issues/7816)[#7777](https://github.com/gohugoio/hugo/issues/7777)[#7916](https://github.com/gohugoio/hugo/issues/7916)
|
|
||||||
* Generate tsconfig files [3089fc0b](https://github.com/gohugoio/hugo/commit/3089fc0ba171be14670b19439bc2eab6b077b6c3) [@richtera](https://github.com/richtera) [#7777](https://github.com/gohugoio/hugo/issues/7777)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue