1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-22 05:20:56 +01:00
phorge-phorge/support/aphlict/server/lib/javelin.js
epriestley 260eb5344b Allow Aphlict to load Javelin and use Javelin class definitions
Summary:
Ref T4324. The server code is probably going to get a fair amount more complicated, so allow it to load Javelin classes in a mostly-reasonable way.

This integration has a few warts, but should be good enough to let us manage complexity through the next iteration of the server.

(Mostly I just want the concicse Javelin mechanism for defining new classes.)

Version bump is just so I can figure stuff out if this creates any issues for users based on which version of things they're running.

Test Plan: Started server, posted some messages through it.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T4324

Differential Revision: https://secure.phabricator.com/D8253
2014-02-17 16:00:01 -08:00

13 lines
403 B
JavaScript

var javelin_root = '../../../../webroot/rsrc/externals/javelin/';
var JX = require(javelin_root + 'core/init_node.js').JX;
JX.require('core/util');
JX.require('core/install');
// NOTE: This is faking out a piece of code in JX.install which waits for
// Stratcom before running static initializers.
JX.Stratcom = {ready : true};
JX.require('core/Event');
JX.require('core/Stratcom');
exports.JX = JX;