buildkite / frontend

🌏 The front-end application code for https://buildkite.com
MIT License
137 stars 27 forks source link

Added and exposed the `rails/ujs` package #782

Closed keithpitt closed 5 years ago

keithpitt commented 5 years ago

We use a bunch of rails ujs helpers in the app to do various things. They're provided to use by jquery_ujs.

First step in removing jQuery is removing the things that depend on jQuery, and a big part of that is jquery_ujs. Lucky for us, Rails make available the same helpers without the jQuery dependency via npm - so this change just includes the package and makes it available to the app.

It's not used on any SPA pages (that would break many things) so it's just used on pages managed by Rails.