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

feature request: bart plugins #179

Open
dimitrilw opened this issue Sep 24, 2023 · 1 comment
Open

feature request: bart plugins #179

dimitrilw opened this issue Sep 24, 2023 · 1 comment

Comments

@dimitrilw
Copy link

Is your feature request related to a problem? Please describe.
This is not a problem report; just a pure feature request.

As a user of the tool, I would really like to be able to create plugins.

For example, after tinkering through a portion of the Bartholomew guide, I think it would be really helpful to have commands like:

  • bart add-robots-txt to generate the initial content/robots.md and templates/robots.hbs files.
  • bart add-sitemap to generate the initial content/sitemap.md, scripts/sitemap.rhai, and templates/sitemap.hbs files.
  • bart prod-check to run bart check content/* and a bunch of other sanity checks: linting, test-suite, lighthouse, etc. Could be paired with a prod-check.toml config file. Then this could be config'd as part of a CI/CD pipeline. ...just brainstorming out loud, so to say.

And I am entirely positive that others might come up with some really ingenious plugins to augment the bart ecosystem. While I'm thinking of generators & checkers, others gonna come in here inventing bart world-peace or something. 😂

Describe the solution you'd like
A plugin system. Like what spin has implemented.

...or perhaps even along the lines of other dev-tools, like git. With git, I can add my own commands via having git-MY_COMMAND as an executable file found in my PATH. Then, if I do git MY_COMMAND, it executes the git-MY_COMMAND file (pic below). Neither spin nor bart currently support this style of plugin (pics below).

Describe alternatives you've considered
I guess anybody could make some unofficial bartAssist stand-alone utility or something, but that just feels icky.

Additional context
Pic of my git-find shell script existing as an executable that is in the PATH (i.e., which git-find finds the file) & a quick run via git find. This tool is just a personal "quick scan for git repos & remind me if I own it", which is a regular part of my workflow.

image

Pics re spin hellooo and bart hellooo not triggering execution of the corresponding -hellooo file.

image image

Just one more item: an entirely relevant image...

image

😄

@dimitrilw
Copy link
Author

I should have included a pic showing the spin|bart-hellooo files can be called & execute.

image

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

No branches or pull requests

1 participant