hbstack / hb Goto Github PK
View Code? Open in Web Editor NEWThe core module of HB framework, which automatically load and compile module's TypeScript and SCSS.
Home Page: https://hbstack.dev/
License: MIT License
The core module of HB framework, which automatically load and compile module's TypeScript and SCSS.
Home Page: https://hbstack.dev/
License: MIT License
Hard to get the module name with current naming convention unless check the configurations or docs of module.
For some reason, I can't preview my site locally. Since it says 'Build failed', I think building site will also fail.
ERROR js.Build failed: "%LocalAppData%\hugo_cache\modules\filecache\modules\pkg\mod\github.com\hbstack\[email protected]\assets\hb\js\index.tmpl.ts:20:19": Could not resolve "hb/modules//js/button"
ERROR JSBUILD: failed to transform "hb/js/index.ts" (text/typescript): "%LocalAppData%\hugo_cache\modules\filecache\modules\pkg\mod\github.com\hbstack\[email protected]\assets\hb\js\index.tmpl.ts:3:9": Could not resolve "index.ts"
ERROR render of "page" failed: "%LocalAppData%\hugo_cache\modules\filecache\modules\pkg\mod\github.com\hbstack\[email protected]\layouts\_default\baseof.html:20:8": execute of template failed: template: _default/single.html:20:8: executing "_default/single.html" at <partial "hugopress/body-end" .>: error calling partial: "%LocalAppData%\hugo_cache\modules\filecache\modules\pkg\mod\github.com\hugomods\[email protected]\layouts\partials\hugopress\body-end.html:1:4": execute of template failed: template: partials/hugopress/body-end.html:1:4: executing "partials/hugopress/body-end.html" at <partial "hugopress/functions/render-hooks" (dict "Name" "body-end" "Page" .)>: error calling partial: "%LocalAppData%\hugo_cache\modules\filecache\modules\pkg\mod\github.com\hugomods\[email protected]\layouts\partials\hugopress\functions\render-hooks.html:18:8": execute of template failed: template: partials/hugopress/functions/render-hooks.html:18:8: executing "partials/hugopress/functions/render-hooks.html" at <partialCached .partial $ctx>: error calling partialCached: "%LocalAppData%\hugo_cache\modules\filecache\modules\pkg\mod\github.com\hbstack\[email protected]\layouts\partials\hugopress\modules\hb\hooks\body-end.html:1:4": execute of template failed: template: partials/hugopress/modules/hb/hooks/body-end.html:1:4: executing "partials/hugopress/modules/hb/hooks/body-end.html" at <partialCached "hb/assets/js" .Page>: error calling partialCached: "%LocalAppData%\hugo_cache\modules\filecache\modules\pkg\mod\github.com\hbstack\[email protected]\layouts\partials\hb\assets\js.html:28:25": execute of template failed: template: partials/hb/assets/js.html:28:25: executing "partials/hb/assets/js.html" at <resources.Concat>: error calling Concat: resources in Concat must be of the same Media Type, got "text/javascript" and "text/typescript"
Built in 16292 ms
Error: error building site: TOCSS: failed to transform "hb/scss/index.scss" (text/x-scss): "%LocalAppData%\hugo_cache\modules\filecache\modules\pkg\mod\github.com\hbstack\[email protected]\assets\hb\scss\index.tmpl.scss:117:1": File to import not found or unreadable: index.scss.
I updated every dependencies with these:
hugo mod get -u ./...
npx --yes npm-check-updates
I'm posting this issue in here because I can see a lot of hbstack\hb
in error message.
Maybe I updated Hugo too early... 🤷 ¯_(ツ)_/¯
JS event handlers will be invoked in registered order, it's necessary to have a mechanism controls the imports sequences of modules.
TBD, lack of solutions in mind.
This error occurs on local development when changes detected.
ERROR Rebuild failed: render: render of "404" failed: "C:\Users\razon\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\hbstack\[email protected]\layouts\_default\baseof.html:6:32": execute of template failed at <partial "base/title" .>: error calling partial: "C:\Users\razon\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\hugomods\[email protected]\layouts\partials\base\title.html:13:19": execute of template failed at <partial "base/functions/sections-titles" .>: "C:\Users\razon\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\hugomods\[email protected]\layouts\partials\base\functions\sections-titles.html:6:19": execute of template failed at <$section.IsHome>: error calling IsHome: runtime error: invalid memory address or nil pointer dereference
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are pending. To force PRs open, click the checkbox below.
@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
).github/workflows/lint.yml
actions/checkout v4
actions/setup-node v4
.github/workflows/release-please.yml
google-github-actions/release-please-action v4
go.mod
go 1.18
github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20200
github.com/gohugoio/hugo-mod-jslibs-dist/popperjs/v2 v2.21100.20000
github.com/hugomods/base v0.7.2
github.com/hugomods/hugopress v0.5.0
github.com/twbs/bootstrap v5.3.3+incompatible
package.json
stylelint-scss ^6.0.0
@typescript-eslint/eslint-plugin ^7.0.0
@typescript-eslint/parser ^7.0.0
eslint ^9.0.0
prettier ^3.0.0
prettier-plugin-go-template ^0.0.15
stylelint ^16.0.0
stylelint-config-standard-scss ^13.0.0
typescript ^5.0.0
To simplify JS components importing.
hugo mod get -u
doesn't update all latest version for modules if the upstream modules haven't been updated.
Let's say the github.com/hbstack/breadcrumb
module latest version is v0.2.1
.
$ hugo mod get -u
$ hugo mod graph | grep breadcrumb
github.com/hbstack/meta/[email protected] github.com/hbstack/docs/modules/[email protected]
github.com/hbstack/docs/modules/[email protected] github.com/hbstack/[email protected]
But after executing hugo mod get -u
, the github.com/hbstack/breadcrumb
wasn't be updated, since it was imported by github.com/hbstack/docs/modules/breadcrumb
as an old version, with this, it makes hard to maintain, which requires to release a new version on github.com/hbstack/docs/modules/breadcrumb
and github.com/hbstack/meta/recommended
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.