diff --git a/.arcconfig b/.arcconfig new file mode 100644 index 000000000..00ab68a97 --- /dev/null +++ b/.arcconfig @@ -0,0 +1,4 @@ +{ + "project_id" : "K2", + "conduit_uri" : "https://phab.nylas.com/" +} diff --git a/packages/local-sync/nylas-api/app.js b/packages/local-sync/nylas-api/app.js index f4979eb95..beb86a6b6 100644 --- a/packages/local-sync/nylas-api/app.js +++ b/packages/local-sync/nylas-api/app.js @@ -1,4 +1,4 @@ -const Metrics = require(`nylas-metrics`) +const Metrics = require(`../nylas-metrics`) Metrics.startCapturing('nylas-k2-api') const Hapi = require('hapi'); diff --git a/packages/local-sync/nylas-api/package.json b/packages/local-sync/nylas-api/package.json deleted file mode 100644 index 7789e464f..000000000 --- a/packages/local-sync/nylas-api/package.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "nylas-api", - "version": "0.0.1", - "description": "Nylas API", - "scripts": { - "start": "node app.js" - }, - "author": "Nylas", - "license": "ISC", - "dependencies": { - "googleapis": "9.0.0", - "hapi": "13.4.1", - "hapi-auth-basic": "4.2.0", - "hapi-boom-decorators": "1.1.3", - "hapi-swagger": "6.1.0", - "inert": "4.0.0", - "joi": "8.4.2", - "nodemailer": "2.5.0", - "nylas-core": "0.x.x", - "nylas-metrics": "0.x.x", - "nylas-sync": "0.x.x", - "vision": "4.1.0" - } -} diff --git a/packages/local-sync/nylas-dashboard/app.js b/packages/local-sync/nylas-dashboard/app.js index dbe069770..9fb2cbc97 100644 --- a/packages/local-sync/nylas-dashboard/app.js +++ b/packages/local-sync/nylas-dashboard/app.js @@ -1,4 +1,4 @@ -const Metrics = require(`nylas-metrics`) +const Metrics = require(`../nylas-metrics`) Metrics.startCapturing('nylas-k2-dashboard') const fs = require('fs'); diff --git a/packages/local-sync/nylas-dashboard/package.json b/packages/local-sync/nylas-dashboard/package.json deleted file mode 100644 index c1d2bc8e0..000000000 --- a/packages/local-sync/nylas-dashboard/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "nylas-dashboard", - "version": "1.0.0", - "description": "", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "", - "license": "ISC", - "dependencies": { - "hapi": "13.4.1", - "hapi-plugin-websocket": "0.9.2", - "inert": "4.0.0", - "nylas-core": "0.x.x", - "nylas-metrics": "0.x.x" - } -} diff --git a/packages/local-sync/nylas-message-processor/app.js b/packages/local-sync/nylas-message-processor/app.js index b2ff487d0..d22770f99 100644 --- a/packages/local-sync/nylas-message-processor/app.js +++ b/packages/local-sync/nylas-message-processor/app.js @@ -1,4 +1,4 @@ -const Metrics = require(`nylas-metrics`) +const Metrics = require(`../nylas-metrics`) Metrics.startCapturing('nylas-k2-message-processor') const {PubsubConnector, DatabaseConnector, Logger} = require(`nylas-core`) diff --git a/packages/local-sync/nylas-message-processor/package.json b/packages/local-sync/nylas-message-processor/package.json deleted file mode 100644 index a50b1ccf3..000000000 --- a/packages/local-sync/nylas-message-processor/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "nylas-message-processor", - "version": "0.0.1", - "description": "Message processing pipeline", - "main": "index.js", - "author": "Nylas", - "license": "ISC", - "scripts": { - "test": "babel-node spec/run.js" - }, - "dependencies": { - "babel-cli": "6.10.1", - "babel-preset-es2015": "6.9.0", - "jasmine": "2.4.1", - "mailparser": "0.6.0", - "mimelib": "0.2.19", - "nylas-core": "0.x.x", - "nylas-metrics": "0.x.x" - }, - "devDependencies": { - "babel-cli": "^6.10.1", - "babel-preset-es2015": "^6.9.0", - "jasmine": "^2.4.1" - }, - "babel": { - "presets": [ - "es2015" - ] - } -} diff --git a/packages/local-sync/nylas-metrics/package.json b/packages/local-sync/nylas-metrics/package.json deleted file mode 100644 index c355ee8e5..000000000 --- a/packages/local-sync/nylas-metrics/package.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "nylas-metrics", - "version": "0.0.1", - "description": "Metrics package", - "main": "index.js", - "dependencies": { - "newrelic": "1.34.0", - "signalfx": "3.0.1" - }, - "author": "Nylas", - "license": "ISC" -} diff --git a/packages/local-sync/nylas-sync/app.js b/packages/local-sync/nylas-sync/app.js index 7f32ad355..3ad1201a7 100644 --- a/packages/local-sync/nylas-sync/app.js +++ b/packages/local-sync/nylas-sync/app.js @@ -1,4 +1,4 @@ -const Metrics = require('nylas-metrics') +const Metrics = require('../nylas-metrics') Metrics.startCapturing('nylas-k2-sync') const {DatabaseConnector, Logger} = require('nylas-core') diff --git a/packages/local-sync/nylas-sync/package.json b/packages/local-sync/nylas-sync/package.json deleted file mode 100644 index 1ac52b60b..000000000 --- a/packages/local-sync/nylas-sync/package.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "nylas-sync", - "version": "0.0.1", - "description": "Nylas Sync Engine", - "dependencies": { - "nylas-core": "0.x.x", - "nylas-message-processor": "0.x.x", - "nylas-metrics": "0.x.x", - "xoauth2": "1.1.0" - }, - "scripts": { - "start": "node app.js" - }, - "author": "Nylas", - "license": "ISC" -} diff --git a/packages/local-sync/package.json b/packages/local-sync/package.json index f89baeb28..f1cf828fe 100644 --- a/packages/local-sync/package.json +++ b/packages/local-sync/package.json @@ -19,8 +19,29 @@ "rx": "4.x.x", "sequelize": "3.x.x", "underscore": "1.x.x", - "utf7": "https://github.com/truebit/utf7/archive/1f753bac59b99d93b17a5ef11681e232465e2558.tar.gz" - "sqlite3": "https://github.com/bengotow/node-sqlite3/archive/bengotow/usleep-v3.1.4.tar.gz" + "utf7": "https://github.com/truebit/utf7/archive/1f753bac59b99d93b17a5ef11681e232465e2558.tar.gz", + "sqlite3": "https://github.com/bengotow/node-sqlite3/archive/bengotow/usleep-v3.1.4.tar.gz", + "nylas-core": "0.x.x", + "xoauth2": "1.1.0", + "newrelic": "1.34.0", + "signalfx": "3.0.1", + "babel-cli": "6.10.1", + "babel-preset-es2015": "6.9.0", + "jasmine": "2.4.1", + "mailparser": "0.6.0", + "mimelib": "0.2.19", + "hapi": "13.4.1", + "hapi-plugin-websocket": "0.9.2", + "inert": "4.0.0", + "googleapis": "9.0.0", + "hapi": "13.4.1", + "hapi-auth-basic": "4.2.0", + "hapi-boom-decorators": "1.1.3", + "hapi-swagger": "6.1.0", + "inert": "4.0.0", + "joi": "8.4.2", + "nodemailer": "2.5.0", + "vision": "4.1.0" }, "repository": { "type": "git", @@ -37,5 +58,5 @@ "windowTypes": { "sync": true }, - "homepage": "https://github.com/nylas/K2#readme", + "homepage": "https://github.com/nylas/K2#readme" }