Skip to content

Commit

Permalink
Convert rocketchat-importer-hipchat-enterprise to main module structu…
Browse files Browse the repository at this point in the history
…re (#12665)
  • Loading branch information
MarcosSpessatto authored and rodrigok committed Nov 20, 2018
1 parent abbe42d commit fff398a
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Importers } from 'meteor/rocketchat:importer';
import { HipChatEnterpriseImporterInfo } from '../info';
import { HipChatEnterpriseImporterInfo } from '../lib/info';

Importers.add(new HipChatEnterpriseImporterInfo());
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './adder';
12 changes: 1 addition & 11 deletions packages/rocketchat-importer-hipchat-enterprise/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,6 @@ Package.onUse(function(api) {
'ecmascript',
'rocketchat:lib',
'rocketchat:importer',
'rocketchat:logger',
]);

api.use('rocketchat:logger', 'server');

// Importer information to both server and client
api.addFiles('info.js');

// Server files
api.addFiles(['server/importer.js', 'server/adder.js'], 'server');

// Client files
api.addFiles('client/adder.js', 'client');
});
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Importers } from 'meteor/rocketchat:importer';
import { HipChatEnterpriseImporterInfo } from '../info';
import { HipChatEnterpriseImporterInfo } from '../lib/info';
import { HipChatEnterpriseImporter } from './importer';

Importers.add(new HipChatEnterpriseImporterInfo(), HipChatEnterpriseImporter);
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
SelectionChannel,
SelectionUser,
} from 'meteor/rocketchat:importer';
import { RocketChat } from 'meteor/rocketchat:lib';
import { Readable } from 'stream';
import path from 'path';
import s from 'underscore.string';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './adder';

0 comments on commit fff398a

Please sign in to comment.