0.01
No commit activity in last 3 years
No release in over 3 years
A Sprockets directive for hassle-free UMD-style JavaScript module definitions.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

Sprockets Export

A Sprockets directive for hassle-free UMD-style JavaScript module definitions.

Using

# Gemfile

gem 'sprockets', '>= 3.0.0'
gem 'sprockets-export'
/* widget.js */

//= export Widget
//= require_self

this.Widget = { name: "gizmo" }

Consuming

widget = require("widget")
widget.name // gizmo

Licensed under the MIT License

© 2016 Javan Makhmali