Created
September 15, 2013 00:55
-
-
Save bcherny/6567138 to your computer and use it in GitHub Desktop.
CoffeeScript UMD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
umd = (factory) -> | |
if typeof exports is 'object' | |
module.exports = factory() | |
else if typeof define is 'function' and define.amd | |
define([], factory) | |
else | |
@MODULE_NAME = factory() | |
umd | |
# module body goes here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment