Skip to content

Commit

Permalink
Convert rocketchat-spotify to main module structure (#12832)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosSpessatto authored and rodrigok committed Dec 4, 2018
1 parent 48aa933 commit 97632a8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 3 additions & 0 deletions packages/rocketchat-spotify/client/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import '../lib/client/widget';
import '../lib/client/oembedSpotifyWidget.html';
import '../lib/spotify';
1 change: 1 addition & 0 deletions packages/rocketchat-spotify/lib/spotify.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* Spotify a named function that will process Spotify links or syntaxes (ex: spotify:track:1q6IK1l4qpYykOaWaLJkWG)
* @param {Object} message - The message object
*/
import { RocketChat } from 'meteor/rocketchat:lib';
import _ from 'underscore';
import s from 'underscore.string';

Expand Down
7 changes: 2 additions & 5 deletions packages/rocketchat-spotify/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ Package.onUse(function(api) {
'rocketchat:oembed',
'rocketchat:lib',
]);

api.addFiles('lib/client/widget.js', 'client');
api.addFiles('lib/client/oembedSpotifyWidget.html', 'client');

api.addFiles('lib/spotify.js', ['server', 'client']);
api.mainModule('client/index.js', 'client');
api.mainModule('server/index.js', 'server');
});
1 change: 1 addition & 0 deletions packages/rocketchat-spotify/server/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '../lib/spotify';

0 comments on commit 97632a8

Please sign in to comment.