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

blowdryerInline #6

Open
nedtwigg opened this issue Dec 18, 2019 · 0 comments
Open

blowdryerInline #6

nedtwigg opened this issue Dec 18, 2019 · 0 comments
Labels
enhancement New feature or request pr-welcome Extra attention is needed

Comments

@nedtwigg
Copy link
Member

nedtwigg commented Dec 18, 2019

After using blowdryer for a bit, it's made our build files much easier to read, since all of our common patterns have been refactored into one repository and it's only the high-entropy stuff that's left to view. My biggest worry is that other people will have a hard time reading them, since they are now obfuscated a bit.

Here is a proposed enhancement. It's fine to implement only for groovy or only for kotlin - people who want the other would benefit hugely from the existing as a guide.

Viewing a blowdryer-enhanced project

If you are working with a project that uses blowdryer, especially someone else's project, it can be confusing to track down the build scripts they are calling out to. To address this, you can use gradlew blowdryerInline and it will do the following:

  • for every gradle file (foo.gradle) which uses blowdryer.file()
  • write out a new temp gradle file (foo.blowdryer-inline.gradle)
  • where each call to blowdryer.file() has been recursively copy-pasted into the expanded file for easy viewing

You can limit this to just one file with gradlew blowdryerInline --file someFile.gradle

@nedtwigg nedtwigg added the enhancement New feature or request label Dec 18, 2019
@nedtwigg nedtwigg added the pr-welcome Extra attention is needed label Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pr-welcome Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant