Skip to content

Commit

Permalink
Convert rocketchat-gitlab to main module structure (#12646)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosSpessatto authored and rodrigok committed Nov 16, 2018
1 parent 515a372 commit db6cb9d
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 deletions.
2 changes: 2 additions & 0 deletions packages/rocketchat-gitlab/client/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import './gitlab-login-button.css';
import '../lib/common';
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* global CustomOAuth */
import { Meteor } from 'meteor/meteor';
import { Tracker } from 'meteor/tracker';
import { RocketChat } from 'meteor/rocketchat:lib';
import { CustomOAuth } from 'meteor/rocketchat:custom-oauth';

const config = {
serverURL: 'https://gitlab.com',
Expand Down
17 changes: 8 additions & 9 deletions packages/rocketchat-gitlab/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ 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.addFiles('gitlab-login-button.css', 'client');
api.addFiles('startup.js', 'server');
api.use([
'ecmascript',
'rocketchat:lib',
'rocketchat:custom-oauth',
'templating',
]);
api.mainModule('client/index.js', 'client');
api.mainModule('server/index.js', 'server');
});
2 changes: 2 additions & 0 deletions packages/rocketchat-gitlab/server/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import './startup';
import '../lib/common';
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() {
this.section('GitLab', function() {
const enableQuery = {
Expand Down

0 comments on commit db6cb9d

Please sign in to comment.