Skip to content

Commit

Permalink
Convert rocketchat-graphql to main module structure (#12658)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosSpessatto authored and rodrigok committed Nov 19, 2018
1 parent f11cd69 commit 36d6424
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions packages/rocketchat-graphql/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ Package.onUse(function(api) {
'rocketchat:accounts',
'swydo:graphql',
]);
api.addFiles('server/settings.js', 'server');
api.mainModule('server/api.js', 'server');
api.mainModule('server/index.js', 'server');
});

Npm.depends({
Expand Down
1 change: 1 addition & 0 deletions packages/rocketchat-graphql/server/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { SubscriptionServer } from 'subscriptions-transport-ws';
import { execute, subscribe } from 'graphql';
import { Meteor } from 'meteor/meteor';
import { WebApp } from 'meteor/webapp';
import { RocketChat } from 'meteor/rocketchat:lib';
import bodyParser from 'body-parser';
import express from 'express';
import cors from 'cors';
Expand Down
2 changes: 2 additions & 0 deletions packages/rocketchat-graphql/server/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import './settings';
import './api';
2 changes: 2 additions & 0 deletions packages/rocketchat-graphql/server/settings.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { RocketChat } from 'meteor/rocketchat:lib';

RocketChat.settings.addGroup('General', function() {
this.section('GraphQL API', function() {
this.add('Graphql_Enabled', false, { type: 'boolean', public: false });
Expand Down

0 comments on commit 36d6424

Please sign in to comment.