Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rake task to vendor guide javascript
The Rails guides were migrated from Turbolinks to Turbo in 0f6575a The PR discussion explains that the file was grabbed from unpkg, and a decision was made to not run it through a minifier. This commit adds a rake task to automate the process of grabbing the turbo js file using Importmap::Packager, which is what importmap-rails uses for `bin/importmap pin --download`. The extra Importmap module definition is necessary because the Importmap::Packager file uses the shorthand module syntax, meaning that an error is thrown if the Importmap module is not previously defined. `require "importmap-rails"` would normally define this module, but one of its dependent requires will not load outside of a Rails application. The turbo.css file was removed as it appears to be leftover from Turbolinks and Turbo does not provide any css files in its dist.
- Loading branch information