Skip to content

Commit

Permalink
Convert rocketchat-slashcommands-join to main module structure (#12816)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosSpessatto authored and rodrigok committed Dec 4, 2018
1 parent 685d164 commit 9f1dc30
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions packages/rocketchat-slashcommands-join/client/client.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { RocketChat } from 'meteor/rocketchat:lib';

RocketChat.slashCommands.add('join', undefined, {
description: 'Join_the_given_channel',
params: '#channel',
Expand Down
1 change: 1 addition & 0 deletions packages/rocketchat-slashcommands-join/client/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './client';
9 changes: 3 additions & 6 deletions packages/rocketchat-slashcommands-join/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@ Package.describe({
});

Package.onUse(function(api) {

api.use([
'ecmascript',
'check',
'rocketchat:lib',
'templating',
]);

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

api.addFiles('client/client.js', 'client');
api.addFiles('server/server.js', 'server');
api.mainModule('client/index.js', 'client');
api.mainModule('server/index.js', 'server');
});
1 change: 1 addition & 0 deletions packages/rocketchat-slashcommands-join/server/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './server';
1 change: 1 addition & 0 deletions packages/rocketchat-slashcommands-join/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Meteor } from 'meteor/meteor';
import { Match } from 'meteor/check';
import { Random } from 'meteor/random';
import { TAPi18n } from 'meteor/tap:i18n';
import { RocketChat } from 'meteor/rocketchat:lib';

RocketChat.slashCommands.add('join', function Join(command, params, item) {

Expand Down

0 comments on commit 9f1dc30

Please sign in to comment.