Skip to content

Commit

Permalink
Convert rocketchat-channel-settings-mail-messages to main module stru…
Browse files Browse the repository at this point in the history
…cture (#12537)
  • Loading branch information
MarcosSpessatto authored and rodrigok committed Nov 6, 2018
1 parent dbcae36 commit cb5eb20
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import './lib/startup';
import './views/mailMessagesInstructions.html';
import './views/mailMessagesInstructions';
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// import resetSelection from '../resetSelection';
import { Meteor } from 'meteor/meteor';
import { RocketChat } from 'meteor/rocketchat:lib';

Meteor.startup(() => {
RocketChat.TabBar.addButton({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/* global Deps */
import { Meteor } from 'meteor/meteor';
import { ReactiveVar } from 'meteor/reactive-var';
import { Blaze } from 'meteor/blaze';
import { Session } from 'meteor/session';
import { Template } from 'meteor/templating';
import { AutoComplete } from 'meteor/mizzao:autocomplete';
import { RocketChat, handleError } from 'meteor/rocketchat:lib';
import { t, ChatRoom } from 'meteor/rocketchat:ui';
import { Deps } from 'meteor/deps';
import toastr from 'toastr';
import resetSelection from '../resetSelection';

Expand Down
14 changes: 2 additions & 12 deletions packages/rocketchat-channel-settings-mail-messages/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@ Package.onUse(function(api) {
'mizzao:autocomplete',
'mongo',
]);

api.addFiles([
'client/lib/startup.js',
'client/views/mailMessagesInstructions.html',
'client/views/mailMessagesInstructions.js',
], 'client');


api.addFiles([
'server/lib/startup.js',
'server/methods/mailMessages.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,2 @@
import './lib/startup';
import './methods/mailMessages';
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Meteor } from 'meteor/meteor';
import { RocketChat } from 'meteor/rocketchat:lib';

Meteor.startup(function() {
const permission = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Meteor } from 'meteor/meteor';
import { Match, check } from 'meteor/check';
import { RocketChat } from 'meteor/rocketchat:lib';
import _ from 'underscore';
import moment from 'moment';
import * as Mailer from 'meteor/rocketchat:mailer';
Expand Down

0 comments on commit cb5eb20

Please sign in to comment.