I recently added a Rails generator to my gem, serviceworker-rails
, to make it easier to add the assets and configuration files needed to turn your Rails app into a Progressive Web App. I’ve written a few Rails generators before, but have usually skipped the part about writing tests because––no excuse.