Coder Social home page Coder Social logo

hbstack / hb Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 3.0 253 KB

The core module of HB framework, which automatically load and compile module's TypeScript and SCSS.

Home Page: https://hbstack.dev/

License: MIT License

JavaScript 13.96% TypeScript 5.42% SCSS 13.28% HTML 67.35%
bootstrap hb hb-framework hugo hugo-bootstrap

hb's People

Contributors

github-actions[bot] avatar razonyang avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hb's Issues

Modules naming convention

Hard to get the module name with current naming convention unless check the configurations or docs of module.

Site build failure with Hugo v0.123.8

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 version: v0.123.8
  • Hugo module updated via hugo mod get -u ./...
  • Node packages were updated with 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 import sequences

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.

runtime error: invalid memory address or nil pointer dereference

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

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Other Branches

These updates are pending. To force PRs open, click the checkbox below.

  • chore(deps): update dependency eslint to v9.5.0
  • chore(deps): update dependency prettier to v3.3.2
  • chore(deps): update dependency stylelint to v16.6.1
  • chore(deps): update dependency typescript to v5.5.2
  • chore(deps): update typescript-eslint monorepo to v7.13.1 (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • fix(deps): update dependency stylelint-scss to v6.3.2

Detected dependencies

github-actions
.github/workflows/lint.yml
  • actions/checkout v4
  • actions/setup-node v4
.github/workflows/release-please.yml
  • google-github-actions/release-please-action v4
gomod
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
npm
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

  • Check this box to trigger a request for Renovate to run again on this repository

Hard to maintain modules

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.