Mailspring/packages/local-sync/main.es6
Juan Tejada 1c37a8b788 [local-sync] Cleanup sync tasks to be more consistent with syncback tasks
Summary: While working on separating send out of the sync loop, I realized sync tasks could use some cleanup to be more consistent with how we implemented syncback tasks. I reorganized and renamed things a little bit. This will also help us move in the direction of the scheduler implementation under which everything is a task.

Test Plan: manual

Reviewers: evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D3660
2017-01-13 12:30:43 -08:00

17 lines
445 B
JavaScript

/* eslint global-require: 0 */
import {ComponentRegistry} from 'nylas-exports'
import {createLogger} from './src/shared/logger'
export function activate() {
global.Logger = createLogger('local-sync')
require('./src/local-api');
require('./src/local-sync-worker');
const Root = require('./src/local-sync-dashboard/root').default;
ComponentRegistry.register(Root, {role: 'Developer:LocalSyncUI'});
}
export function deactivate() {
}