Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- cascading test failures caused when no application.js file found during install generator. Because javascript convention changes between major rails versions, generating new sample app no longer reliably places a file at app/assets/javascripts/application.js. Now the install generator will touch that location if detect_js_format falls through, though there may be a better way to do this.
- Loading branch information
5f69067
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be an undertaking, but the best option would probably be to refactor detect_js_format to look for Rails 6 webpacker and Rails 7 importmap style javascript setups.
5f69067
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we save some initial effort here by making this step manual to start? I’m thinking we drop the step of trying to find the right place to require/import serviceworker-companion and add a step in the README and/or instructions in the output of the generator. What do you think?
5f69067
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this change, I’ve cherry-picked it onto #128
5f69067
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That seems like a very reasonable way to handle it to me.
5f69067
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
something like this?