Mailspring/packages/client-sync/main.es6

20 lines
575 B
Text
Raw Normal View History

/* eslint global-require: 0 */
import Sequelize from 'sequelize'; // eslint-disable-line
import {ComponentRegistry} from 'nylas-exports'
import {createLogger} from './src/shared/logger'
import shimSequelize from './src/shared/shim-sequelize'
2016-11-23 07:13:28 +08:00
2016-11-23 04:25:27 +08:00
export function activate() {
shimSequelize(Sequelize);
global.Logger = createLogger()
require('./src/local-api');
require('./src/local-sync-worker');
const Root = require('./src/local-sync-dashboard/root').default;
ComponentRegistry.register(Root, {role: 'Developer:LocalSyncUI'});
2016-11-23 04:25:27 +08:00
}
export function deactivate() {
}