Skip to content

Commit 80c8fe9

Browse files
authored
Merge pull request #35 from Webperf-se/terminal
Added webperf-core.json path to terminal
2 parents 154d2ca + b71c91b commit 80c8fe9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import { SitespeedioPlugin } from '@sitespeed.io/plugin';
2+
import { getLogger } from '@sitespeed.io/log';
23
import { readFileSync } from 'node:fs';
34
import path from 'node:path';
45
import { fileURLToPath } from 'node:url';
56
import fs from 'node:fs';
67
import { Score } from './score.js';
78
const fsp = fs.promises;
8-
99
const pluginname = 'plugin-webperf-core'
10+
const log = getLogger(pluginname);
1011

1112
export default class WebPerfPlugin extends SitespeedioPlugin {
1213
// Requires
@@ -203,6 +204,7 @@ export default class WebPerfPlugin extends SitespeedioPlugin {
203204
group
204205
});
205206
}
207+
log.info('webperf-core.json stored in: %s', path.join(this.storageManager.getBaseDir(), 'data'))
206208
break;
207209
}
208210
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
"typescript": "5.7.2"
5353
},
5454
"dependencies": {
55-
"@sitespeed.io/plugin": "1.0.0"
55+
"@sitespeed.io/plugin": "1.0.0",
56+
"@sitespeed.io/log": "0.2.6"
5657
},
5758
"scripts": {
5859
"test": "ava",

0 commit comments

Comments
 (0)