Skip to content

Commit

Permalink
Convert rocketchat-slashcommands-open to main module structure (#12825)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosSpessatto authored and rodrigok committed Dec 4, 2018
1 parent dc9dcdd commit 54a1b84
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions packages/rocketchat-slashcommands-open/client/client.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Meteor } from 'meteor/meteor';
import { Match } from 'meteor/check';
import { FlowRouter } from 'meteor/kadira:flow-router';
import { RocketChat } from 'meteor/rocketchat:lib';
import { ChatSubscription } from 'meteor/rocketchat:ui';

function Open(command, params /* , item*/) {
const dict = {
Expand Down
1 change: 1 addition & 0 deletions packages/rocketchat-slashcommands-open/client/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './client';
7 changes: 2 additions & 5 deletions packages/rocketchat-slashcommands-open/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',
'kadira:flow-router',
'templating',
]);

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

api.addFiles('client/client.js', 'client');
api.addFiles('client/index.js', 'client');
});

0 comments on commit 54a1b84

Please sign in to comment.