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

Script configuration #328

Open
markehammons opened this issue Jun 10, 2023 · 1 comment
Open

Script configuration #328

markehammons opened this issue Jun 10, 2023 · 1 comment

Comments

@markehammons
Copy link

Right now, scripts in bleep are configured via Scala code, objects and such added as part of the build. For example, a publishLocal script you wrote for bleep uses a config object to determine if a project should be published or not.

I think a better option might end up being something similar to what is currently being done for test projects, a set of free-form config for each project. That would let scripts to be shared.

The yaml example for this might be something like this:

projects:
  my-project:
    options: 
      publishable: true

As a use-case, I want to write a script that generates code for jmh and runs jmh benchmarks. It would be cool to make said script shareable with other projects. In my own project, such a script would take a similar approach to your publishLocal script, having an object that tells whether a project is a benchmark project or not. With the proposed options field, I'd write:

project:
  my-bench-project:
    options:
      is-benchmark: true
@oyvindberg
Copy link
Owner

This is effectively #272. I think it's a good idea

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

2 participants