modular-ujs
v2.1.1
Published
Rails UJS as JS Modules
Downloads
3,301
Maintainers
Readme
Rails UJS as Javascript modules without jQuery
Requires support for element.matches & CustomEvent. I didn't want to include polyfills because I think every npm module should not include its own polyfills, that will bloat projects. Polyfill as needed.
TODO
- Add back something to run the tests with
- Do this: https://codeburst.io/how-to-create-and-publish-your-first-node-js-module-444e7585b738
Install
npm install modular-ujs
Contribute
Clone repo
$ git clone https://github.com/sakamies/modular-ujs
$ cd modular-js/
Install dependencies
$ npm install
TODO: add webpack & babel so you can build this
Run tests
$ npm run test
Thanks to the original authors of Vanilla UJS
- Alex Tsokurov (@ximik)
- Matt Huggins (@mhuggins)
- Tasveer Singh (@tazsingh)
- Tim O'Sulg (@timgluz)
- Walter Lee Davis (@walterdavis)
License
MIT License, see LICENSE
file.