Skip to content

Instantly share code, notes, and snippets.

@dented
Created February 7, 2017 10:14
Show Gist options
  • Save dented/6d15c2bc7c5a25680ff9d8c8a879bcca to your computer and use it in GitHub Desktop.
Save dented/6d15c2bc7c5a25680ff9d8c8a879bcca to your computer and use it in GitHub Desktop.
UMD Library Template
/* ****************************************************************************
* libName v0.0.1
*
* libName is a set of functions to wrap libName info and
* Copyright (c) 2017 Gram <g@whub.io> (http://www.whub.io).
* Released under the MIT license. You may obtain a copy of the License
* at: http://www.opensource.org/licenses/mit-license.php).
* ****************************************************************************/
(function(root, factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define([], factory);
} else if (typeof exports === 'object') {
module.exports = factory();
} else {
root.libName = factory();
}
}(this, function() {
'use strict';
var VERSION = '0.0.1';
var exports = function() {};
exports = {};
exports.VERSION = VERSION;
return exports;
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment