File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { SitespeedioPlugin } from '@sitespeed.io/plugin' ;
2
+ import { getLogger } from '@sitespeed.io/log' ;
2
3
import { readFileSync } from 'node:fs' ;
3
4
import path from 'node:path' ;
4
5
import { fileURLToPath } from 'node:url' ;
5
6
import fs from 'node:fs' ;
6
7
import { Score } from './score.js' ;
7
8
const fsp = fs . promises ;
8
-
9
9
const pluginname = 'plugin-webperf-core'
10
+ const log = getLogger ( pluginname ) ;
10
11
11
12
export default class WebPerfPlugin extends SitespeedioPlugin {
12
13
// Requires
@@ -203,6 +204,7 @@ export default class WebPerfPlugin extends SitespeedioPlugin {
203
204
group
204
205
} ) ;
205
206
}
207
+ log . info ( 'webperf-core.json stored in: %s' , path . join ( this . storageManager . getBaseDir ( ) , 'data' ) )
206
208
break ;
207
209
}
208
210
}
Original file line number Diff line number Diff line change 52
52
"typescript" : " 5.7.2"
53
53
},
54
54
"dependencies" : {
55
- "@sitespeed.io/plugin" : " 1.0.0"
55
+ "@sitespeed.io/plugin" : " 1.0.0" ,
56
+ "@sitespeed.io/log" : " 0.2.6"
56
57
},
57
58
"scripts" : {
58
59
"test" : " ava" ,
You can’t perform that action at this time.
0 commit comments