jquery-creditcardvalidator icon indicating copy to clipboard operation
jquery-creditcardvalidator copied to clipboard

Add support to javascript module patterns

Open rafaellyra opened this issue 10 years ago • 4 comments

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

rafaellyra avatar Sep 12 '14 16:09 rafaellyra

Looks interesting. I’ll check it out when I have time.

Thanks.

PawelDecowski avatar Oct 21 '14 10:10 PawelDecowski

@rafaellyra So all I need to do is wrap the plugin in this: https://github.com/umdjs/umd/blob/master/templates/jqueryPlugin.js?

PawelDecowski avatar Oct 17 '16 20:10 PawelDecowski

@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 avatar Dec 06 '17 19:12 truemed

@truemed It’ll be added in v1.2.

PawelDecowski avatar Dec 06 '17 19:12 PawelDecowski