UNPKG

generator-beez

Version:
36 lines (29 loc) 993 B
/** * @name index.js<beez-mymodule/s> * @author Octo Cat <octo@example.com> * @overview awesome module * @license MIT */ var BEEZ_MYMODULE_VERSION = '0.0.0'; if (typeof module !== 'undefined' && module.exports) { // node.js: main exports.VERSION = BEEZ_MYMODULE_VERSION; } else { (function (global) { define(function (require, exports, module) { 'use strict'; var beez = require('beez'); var logger = beez.getLogger('beez.mymodule'); if (beez.mymodule) { logger.warn('beez.mymodule is already loaded.'); return beez.mymodule; } // make it available beez.mymodule = { View: require('beez-mymodule/view/index'), Model: require('beez-mymodule/model/index').Model, Collection: require('beez-mymodule/model/index').Collection }; return beez.mymodule; }); })(this); }