Skip to content

Commit

Permalink
Use rollup to build the javascript into ESM and UMD
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Oct 13, 2023
1 parent 6cffb2e commit 514ad8e
Show file tree
Hide file tree
Showing 15 changed files with 1,144 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ Gemfile.lock
/jetty
/pkg
/tmp
/node_modules
/.bundle
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@ bundle exec rspec spec/features/blacklight_range_limit_spec.rb

Once you are done iterating on your test you will need to stop the application server with `Ctrl-C`.

# Build Javascript

```
npm run prepare
```

# Publishing Javascript

run `npm publish` to push the javascript package to https://npmjs.org/package/blacklight-range-limit
Expand Down
5 changes: 1 addition & 4 deletions app/assets/javascripts/blacklight_range_limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,4 @@
//= require 'bootstrap-slider'

// Ensure that range_limit_shared is loaded first
//= require 'blacklight_range_limit/range_limit_shared'
//= require 'blacklight_range_limit/range_limit_plotting'
//= require 'blacklight_range_limit/range_limit_slider'
//= require 'blacklight_range_limit/range_limit_distro_facets'
//= require 'blacklight_range_limit/range_limit.umd'
Loading

0 comments on commit 514ad8e

Please sign in to comment.