From 36f3d161fe59e0721259d01e73c70fbb75f8a0db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AF=B8=E5=B2=B3?= Date: Sun, 30 Sep 2018 15:05:50 +0800 Subject: [PATCH] feat: Upgrade atool-monitor and report extra data --- bin/roadhog.js | 8 +++++++- package.json | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/bin/roadhog.js b/bin/roadhog.js index d9298f8..a9af47a 100755 --- a/bin/roadhog.js +++ b/bin/roadhog.js @@ -36,7 +36,13 @@ switch (script) { case 'buildDll': case 'server': case 'test': - require('atool-monitor').emit(); + if (script === 'server') { + const appData = { + reportFrom: 'roadhog', + roadhogVersion: require('../package.json').version, + }; + require('atool-monitor').reportData({ appData }); + } result = spawn.sync( 'node', [require.resolve(`../lib/${script}`)].concat(args), diff --git a/package.json b/package.json index 2a8d6e4..2e897e6 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "instrument": false }, "dependencies": { - "atool-monitor": "^0.4.3", + "atool-monitor": "^1.0.9", "autoprefixer": "^7.1.1", "awesome-typescript-loader": "^3.1.3", "babel-core": "^6.20.0",