Skip to content

Commit 8fac1cf

Browse files
author
alireza sharifi
committed
Update documents
1 parent 66a8edf commit 8fac1cf

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.2.0] - 2023-06-29
8+
## changed
9+
- All modules receive timings as input
10+
- The raw output can be saved in a preferred format, either json, html, or both
11+
- The demo has been updated
12+
713
## [1.1.0] - 2023-06-29
814
## changed
915
- Old syntax fixed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 Adam Cupiał
3+
Copyright (c) 2023 Adam Cupiał & alireza sharifi
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@ pip install lighthouse-python-plus
2222
```python
2323
from lighthouse import LighthouseRunner
2424

25-
report = LighthouseRunner('https://github.com/adamcupial', form_factor='desktop', quiet=False).report
25+
TIMINGS = [
26+
'speed-index'
27+
]
28+
29+
report = LighthouseRunner('https://github.com/adamcupial', form_factor='desktop', quiet=False, timings=TIMINGS).report
2630
assert report.score['performance'] > 0.5
27-
print(report.audits['performance'].failed)
31+
print(report.audits(0.5)['performance'].failed)
2832
```
2933

3034
report has 3 properties:

0 commit comments

Comments
 (0)