2016-11-29 10:02:39 +08:00
|
|
|
/* eslint global-require: 0 */
|
2017-03-11 04:06:23 +08:00
|
|
|
import Sequelize from 'sequelize'; // eslint-disable-line
|
2016-11-29 10:02:39 +08:00
|
|
|
import {ComponentRegistry} from 'nylas-exports'
|
2016-11-23 11:58:44 +08:00
|
|
|
import {createLogger} from './src/shared/logger'
|
2017-03-11 04:06:23 +08:00
|
|
|
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() {
|
2017-03-11 04:06:23 +08:00
|
|
|
shimSequelize(Sequelize);
|
2017-02-08 03:03:07 +08:00
|
|
|
global.Logger = createLogger()
|
2017-01-14 03:48:14 +08:00
|
|
|
require('./src/local-api');
|
|
|
|
require('./src/local-sync-worker');
|
2016-11-29 10:02:39 +08:00
|
|
|
|
|
|
|
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() {
|
|
|
|
|
|
|
|
}
|