jquery-creditcardvalidator
jquery-creditcardvalidator copied to clipboard
Add support to javascript module patterns
I think it would be good to add support to universal module patterns such as amd and commonjs
more info about at: https://github.com/umdjs/umd
Looks interesting. I’ll check it out when I have time.
Thanks.
@rafaellyra So all I need to do is wrap the plugin in this: https://github.com/umdjs/umd/blob/master/templates/jqueryPlugin.js?
@PawelDecowski I am using amd/requirejs with my project and would like to use your plugin. If you had this universal module pattern, it would be great. It might be as simple as using this gulp utility to wrap the plugin https://github.com/yivo/gulp-umd-wrap or wrap the coffeescript code with this template https://gist.github.com/dra1n/6433619
@truemed It’ll be added in v1.2.