talyssonoc/jsT9

View on GitHub
src/umdTemplate.js

Summary

Maintainability
A
0 mins
Test Coverage
(function(root, factory) {
  if (typeof define === 'function' && define.amd) {
    define(<%= amd %>, function(<%= param %>) {
        return (root.<%= namespace %> = factory(<%= param %>));
    });
  } else if (typeof exports === 'object') {
    module.exports = factory(<%= cjs %>);
  } else {
    root.<%= namespace %> = factory(<%= global %>);
  }
}(this, function(<%= param %>) {
'use strict';
<%= contents %>
return <%= exports %>;
}));