rehome loaders as module
This commit is contained in:
parent
a16986ef9d
commit
d769111380
20 changed files with 699 additions and 690 deletions
22
src/moto/license.js
Normal file
22
src/moto/license.js
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
(function() {
|
||||
|
||||
let terms = {
|
||||
COPYRIGHT: "Copyright (C) Stewart Allen <sa@grid.space> - All Rights Reserved",
|
||||
LICENSE: "See the license.md file included with the source distribution",
|
||||
VERSION: "3.1.D10"
|
||||
};
|
||||
|
||||
if (typeof(module) === 'object') {
|
||||
module.exports = terms;
|
||||
}
|
||||
|
||||
if (typeof(self) !== 'undefined' && self.gapp) {
|
||||
let app = self.gapp;
|
||||
app.license = terms.LICENSE;
|
||||
app.version = terms.VERSION;
|
||||
app.copyright = terms.COPYRIGHT;
|
||||
// for earcut and other modules
|
||||
self.module = { exports: terms };
|
||||
}
|
||||
|
||||
})();
|
||||
Loading…
Reference in a new issue