Skip to content

Commit

Permalink
Convert rocketchat-slashcommands-inviteall to main module structure (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosSpessatto authored and rodrigok committed Dec 4, 2018
1 parent 5109638 commit 685d164
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-inviteall/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('invite-all-to', undefined, {
description: 'Invite_user_to_join_channel_all_to',
params: '#room',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './client';
9 changes: 3 additions & 6 deletions packages/rocketchat-slashcommands-inviteall/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');
});
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './server';
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,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';

function inviteAll(type) {
return function inviteAll(command, params, item) {
Expand Down

0 comments on commit 685d164

Please sign in to comment.