rails_event_store
rails_event_store copied to clipboard
POC: Browser working from git source
It was never possible to use rails_event_store from git source and have a functioning browser:
#583.
gem 'rails_event_store', github: 'RailsEventStore/rails_event_store', branch: 'store-ci-assets'
We only version sources. Assets are bundled and baked into released browser gem.
Yet, with little help of:
- CI building assets out of every pushed commit
- S3 storing each of built assets and making them addressable by sha/name
- Cloudfront CDN making fetching assets quick
- Bundler letting us know that activated gem comes from git
we're finally able to make this surprise thing of a past. Also unblock some early adopters 😀
That's mostly proof of concept. It works but needs rewrite, and actually building assets of all pushed commits, not only the last one.
Seeing is believing:
$LOAD_PATH.select { |x| x.end_with? "ruby_event_store-browser/lib" }
=> ["/Users/mostlyobvious/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/bundler/gems/rails_event_store-151d0dfbec24/ruby_event_store-browser/lib"]
http://d3iay4bmfswobf.cloudfront.net/151d0dfbec24/ruby_event_store_browser.css
What do you think?
What's stopping us here?
What's stopping us here?
Probably one more rebase since I had to resurrect separate CSS assets for [#1346] 🙃
I'd love to have it to experiment with some browser ideas on more production-like data!
not to myself: alias CDN domain