Skip to content

Commit

Permalink
Convert rocketchat-wordpress to main module structure (#12887)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosSpessatto authored and rodrigok committed Dec 10, 2018
1 parent c9c1956 commit e5b1a0d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
1 change: 1 addition & 0 deletions packages/rocketchat-wordpress/client/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '../lib/common';
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/* globals CustomOAuth */
import { Meteor } from 'meteor/meteor';
import { Tracker } from 'meteor/tracker';
import { RocketChat } from 'meteor/rocketchat:lib';
import { ServiceConfiguration } from 'meteor/service-configuration';
import { CustomOAuth } from 'meteor/rocketchat:custom-oauth';
import _ from 'underscore';

const config = {
Expand Down
16 changes: 8 additions & 8 deletions packages/rocketchat-wordpress/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ Package.describe({
});

Package.onUse(function(api) {
api.use('ecmascript');
api.use('rocketchat:lib');
api.use('rocketchat:custom-oauth');

api.use('templating', 'client');

api.addFiles('common.js');
api.use([
'ecmascript',
'rocketchat:lib',
'rocketchat:custom-oauth',
'templating',
]);
api.addFiles('client/wordpress-login-button.css', 'client');
api.addFiles('startup.js', 'server');
api.mainModule('client/index.js', 'client');
api.mainModule('server/index.js', 'server');
});
2 changes: 2 additions & 0 deletions packages/rocketchat-wordpress/server/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import '../lib/common';
import './startup';
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { RocketChat } from 'meteor/rocketchat:lib';

RocketChat.settings.addGroup('OAuth', function() {
return this.section('WordPress', function() {

Expand Down

0 comments on commit e5b1a0d

Please sign in to comment.