Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimal plugin system #137

Open
ramboz opened this issue Oct 19, 2022 · 2 comments
Open

Minimal plugin system #137

ramboz opened this issue Oct 19, 2022 · 2 comments

Comments

@ramboz
Copy link
Collaborator

ramboz commented Oct 19, 2022

Use case

As a developer, I'd like to have a minimal plugin system so that I can organize common features into individual opt-in plugins that I can re-use across projects, so that my scripts.js is easier to maintain, my code more portable and re-usable, and so that I only load what is really needed for my use case.

In particular, I'd like to:

  • have a simple instrumentation of my scripts.js for the plugins I use
  • have the capability to pass down configuration settings to the plugin to tailor it for my project
  • be able to define various "hooks" in my plugin so it automatically runs in the eager/lazy/delayed phases
  • be able to reference another plugin from my plugin so I can re-use features
@ramboz
Copy link
Collaborator Author

ramboz commented Oct 20, 2022

Hre is a first proposal on this idea:
#135

@ramboz
Copy link
Collaborator Author

ramboz commented Jan 16, 2023

Proposal was merged in the forked repo at https://github.com/ramboz/helix-project-boilerplate/ with a bit of documentation at https://github.com/ramboz/helix-project-boilerplate/wiki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant