Skip to content

Add --preload option to pin command #298

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

3v0k4
Copy link

@3v0k4 3v0k4 commented May 7, 2025

In the HotDocs installer, I'd like to specify the preload when pinning a package. Otherwise, I'd need to manually fiddle with the config/importmap.rb file.

This PR takes care of two things:

  • Fix the tests in the first commit
  • Add the --preload option to pin (e.g., bin/importmap pin --preload=true lunr, bin/importmap pin --preload=application --preload=alternate lunr) in the second commit; see the test for the specifics on the behavior

Thanks for your work on this gem!

@3v0k4 3v0k4 changed the title Add --preload option to pin command WIP: Add --preload option to pin command May 7, 2025
@3v0k4 3v0k4 changed the title WIP: Add --preload option to pin command Add --preload option to pin command May 8, 2025
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 this pull request may close these issues.

1 participant