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

Provide an easy way to bundle up changes to projects #372

Closed
soenkehahn opened this issue Nov 7, 2023 · 0 comments · Fixed by #400
Closed

Provide an easy way to bundle up changes to projects #372

soenkehahn opened this issue Nov 7, 2023 · 0 comments · Fixed by #400

Comments

@soenkehahn
Copy link
Contributor

For example I would like to be able to provide a library (or helper function in the garn ts library) that:

  1. calls .addCheck("prettier-check", "prettier --check *.ts"), and
  2. calls .addExecutable("prettier", "prettier --write *.ts")

on a given project.

One way of using such a helper I could imagine is this

export const myProject = garn.mkNpmProject(...).add(garn.javascript.prettier())

What probably should also be allowed is:

export const myProject = garn.mkNpmProject(...).add(garn.javascript.prettier("*.ts"))
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