updated approach to deps, mod loading, main entrypoints
This commit is contained in:
parent
70f9146a96
commit
19522665b2
21 changed files with 299 additions and 321 deletions
|
|
@ -2,13 +2,10 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
(function() {
|
||||
gapp.register("moto.broker", [], (root, exports) => {
|
||||
|
||||
if (gapp.broker) return;
|
||||
class Broker {
|
||||
|
||||
gapp.register('moto.broker');
|
||||
|
||||
gapp.broker = new class Broker {
|
||||
constructor() {
|
||||
this.topics = {};
|
||||
this.used = {};
|
||||
|
|
@ -137,4 +134,7 @@ gapp.broker = new class Broker {
|
|||
|
||||
}
|
||||
|
||||
})();
|
||||
const { moto } = root;
|
||||
gapp.broker = moto.broker = new Broker();
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue