12 Commits

Author SHA1 Message Date
Ryan
b39d563e77 chore: remove dummy bundled/js/critical.js (#533)
Update .gitignore to reflect the correct path before deletion.

Signed-off-by: Sped0n <hi@sped0n.com>
2025-11-25 12:07:21 +00:00
Sped0n
0e74655820 ci: update bundled artifacts [skip ci] 2025-11-25 11:59:43 +00:00
Sped0n
8926caed69 ci(build): add labels to Hugo matrix for better job names
Signed-off-by: Sped0n <hi@sped0n.com>
2025-11-25 19:59:06 +08:00
Sped0n
19f54640f9 build(deps-dev): bump various dev dependencies
Signed-off-by: Sped0n <hi@sped0n.com>
2025-11-25 19:59:06 +08:00
Sped0n
56b87d6393 fix(gallery): adjust image sizing to fit window height
Update gallery image styles to use max-height based on window minus nav,
max-width 100%, and auto width for proper scaling with contain fit.

Signed-off-by: Sped0n <hi@sped0n.com>
2025-11-25 19:59:06 +08:00
dependabot[bot]
75d8310953 build(deps-dev): bump vite from 7.2.2 to 7.2.4
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.2.2 to 7.2.4.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v7.2.4/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 7.2.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-25 19:28:09 +08:00
dependabot[bot]
a9f164f2af build(deps-dev): bump @typescript-eslint/parser from 8.47.0 to 8.48.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 8.47.0 to 8.48.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.48.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-version: 8.48.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-25 19:26:57 +08:00
dependabot[bot]
7773f184aa build(deps-dev): bump typescript-eslint from 8.47.0 to 8.48.0
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.47.0 to 8.48.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.48.0/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.48.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-25 19:24:50 +08:00
dependabot[bot]
bc501934ae build(deps-dev): bump typescript-eslint from 8.46.4 to 8.47.0
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.46.4 to 8.47.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.47.0/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.47.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-20 17:56:48 +08:00
dependabot[bot]
44b619e49b build(deps-dev): bump @types/node from 24.10.0 to 24.10.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.10.0 to 24.10.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 24.10.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-20 17:55:45 +08:00
dependabot[bot]
024d013219 build(deps-dev): bump @typescript-eslint/parser from 8.46.4 to 8.47.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 8.46.4 to 8.47.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.47.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-version: 8.47.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-20 17:53:41 +08:00
Sped0n
268159e7d2 refactor: unify bundled assets with subdirs and Hugo mounts
Move bundled outputs to dedicated css/js subdirs. Update Vite
config to output directly to bundled/ with simplified naming.
Add Hugo module mounts to expose as assets/bundled and
static/bundled. Adjust gitignore and partial accordingly.

Signed-off-by: Sped0n <hi@sped0n.com>
2025-11-14 18:15:24 +08:00
18 changed files with 277 additions and 336 deletions

View File

@@ -36,13 +36,18 @@ jobs:
build:
timeout-minutes: 30
runs-on: ubuntu-latest
name: Build (Hugo ${{ matrix.hugo-version }})
name: Build (Hugo ${{ matrix.hugo-label }})
needs: [filter]
if: |
github.event.repository.fork == false
strategy:
matrix:
hugo-version: ['latest', '0.114.0']
include:
- hugo-version: latest
hugo-label: Latest
- hugo-version: '0.114.0'
hugo-label: 'v0.114.0'
steps:
- name: Set current date as env variable
run: |

2
.gitignore vendored
View File

@@ -27,4 +27,4 @@ jsconfig.json
*.css.map
# dummmy file
assets/bundled/critical.js
bundled/js/critical.js

View File

@@ -3,5 +3,4 @@ static/
exmapleSite/
single.json
pnpm-lock.yaml
assets/bundled/
assets/bundled/
bundled/

View File

@@ -25,8 +25,9 @@
}
img {
width: 100%;
height: 100%;
max-height: calc(var(--window-height) - 2 * var(--nav-height));
max-width: 100%;
width: auto;
object-fit: contain;
}

1
bundled/css/main.css Normal file

File diff suppressed because one or more lines are too long

View File

@@ -12,13 +12,7 @@ export default defineConfig([
tseslint.configs.recommended,
importPlugin.flatConfigs.recommended,
solid,
globalIgnores([
'node_modules/',
'static/',
'exampleSite/',
'*.mjs',
'assets/bundled/'
]),
globalIgnores(['node_modules/', 'static/', 'exampleSite/', '*.mjs', 'bundled/']),
{
...love,
...prettier,

18
hugo.toml Normal file
View File

@@ -0,0 +1,18 @@
[[module.mounts]]
source = 'archetypes'
target = 'archetypes'
[[module.mounts]]
source = 'assets'
target = 'assets'
[[module.mounts]]
source = 'layouts'
target = 'layouts'
[[module.mounts]]
source = 'static'
target = 'static'
[[module.mounts]]
source = "bundled"
target = "assets/bundled"
[[module.mounts]]
source = "bundled"
target = "static/bundled"

View File

@@ -2,7 +2,7 @@
{{- $fingerprint := .Scratch.Get "fingerprint" | default "" -}}
{{- /* critical style */ -}}
{{- $style := dict "Source" "bundled/critical.css" "Fingerprint" $fingerprint -}}
{{- $style := dict "Source" "bundled/css/critical.css" "Fingerprint" $fingerprint -}}
{{- $options := dict "enableSourceMap" false -}}
{{- $style = dict "Context" . "ToCSS" $options "Inline" true "Template" true | merge $style -}}
{{- partial "plugin/style.html" $style -}}

View File

@@ -40,8 +40,8 @@
"homepage": "https://github.com/Sped0n/bridget#readme",
"devDependencies": {
"@eslint/js": "^9.39.1",
"@types/node": "^24.10.0",
"@typescript-eslint/parser": "^8.46.4",
"@types/node": "^24.10.1",
"@typescript-eslint/parser": "^8.48.0",
"eslint": "^9.39.1",
"eslint-config-love": "^133.0.0",
"eslint-config-prettier": "^10.1.8",
@@ -55,8 +55,8 @@
"prettier-plugin-organize-imports": "^4.3.0",
"sass-embedded": "^1.93.3",
"typescript": "^5.9.3",
"typescript-eslint": "^8.46.4",
"vite": "^7.2.2",
"typescript-eslint": "^8.48.0",
"vite": "^7.2.4",
"vite-plugin-solid": "^2.11.10"
},
"dependencies": {

544
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -4,7 +4,7 @@ import solidPlugin from 'vite-plugin-solid'
export default defineConfig({
plugins: [solidPlugin()],
build: {
outDir: './',
outDir: './bundled',
watch: process.env.DISABLE_WATCH
? null
: {
@@ -17,15 +17,9 @@ export default defineConfig({
},
output: {
format: 'es',
entryFileNames: (chunkInfo) =>
chunkInfo.name === 'critical'
? 'assets/bundled/[name].js'
: 'static/bundled/js/[name].js',
chunkFileNames: 'static/bundled/js/[hash:6].js',
assetFileNames: (assetInfo) =>
assetInfo.names[0]?.startsWith('critical')
? 'assets/bundled/[name].[ext]'
: 'static/bundled/[ext]/[name].[ext]',
entryFileNames: 'js/[name].js',
chunkFileNames: 'js/[hash:6].js',
assetFileNames: '[ext]/[name].[ext]',
compact: true
}
}