Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert rocketchat-token-login to main module structure #12837

Merged
merged 1 commit into from
Dec 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/rocketchat-token-login/client/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './login_token_client';
26 changes: 10 additions & 16 deletions packages/rocketchat-token-login/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,14 @@ Package.describe({
});

Package.onUse(function(api) {

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

api.use('kadira:flow-router', 'client');
api.use('kadira:blaze-layout', 'client');

api.use('rocketchat:lib');
api.use('accounts-base');
api.use('ecmascript');

// Server files
api.addFiles('server/login_token_server.js', 'server');

// Client files
api.addFiles('client/login_token_client.js', 'client');
api.use([
'ecmascript',
'accounts-base',
'kadira:flow-router',
'kadira:blaze-layout',
'rocketchat:lib',
'rocketchat:logger',
]);
api.mainModule('client/index.js', 'client');
api.mainModule('server/index.js', 'server');
});
1 change: 1 addition & 0 deletions packages/rocketchat-token-login/server/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './login_token_server';
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* globals Accounts */
import { Meteor } from 'meteor/meteor';
import { Accounts } from 'meteor/accounts-base';

Accounts.registerLoginHandler('login-token', function(result) {
if (!result.loginToken) {
Expand Down