forked from external-repos/squoosh
Compare commits
3 Commits
no-inline-
...
lighthouse
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ce8c2eb20e | ||
|
|
42ae3451be | ||
|
|
1e3ad773d9 |
10
.travis.yml
10
.travis.yml
@@ -1,4 +1,12 @@
|
|||||||
|
sudo: required
|
||||||
|
dist: xenial
|
||||||
language: node_js
|
language: node_js
|
||||||
|
node_js:
|
||||||
|
- '10'
|
||||||
|
addons:
|
||||||
|
chrome: stable
|
||||||
cache: npm
|
cache: npm
|
||||||
script: npm run build
|
script:
|
||||||
|
- npm run build
|
||||||
|
- ./run_lighthouse.sh
|
||||||
after_success: npm run sizereport
|
after_success: npm run sizereport
|
||||||
|
|||||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -12861,7 +12861,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"minimist": {
|
"minimist": {
|
||||||
"version": "1.2.0",
|
"version": "1.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
|
"resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
|
||||||
"integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
|
"integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
|
||||||
"dev": true
|
"dev": true
|
||||||
}
|
}
|
||||||
|
|||||||
13
run_lighthouse.sh
Executable file
13
run_lighthouse.sh
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
npx http-server -c0 -p 9000 build &
|
||||||
|
|
||||||
|
npm install -g @lhci/cli@next
|
||||||
|
|
||||||
|
lhci collect --url=http://localhost:9000/
|
||||||
|
|
||||||
|
lhci assert --preset="lighthouse:recommended"
|
||||||
|
|
||||||
|
EXIT_CODE=$?
|
||||||
|
kill $!
|
||||||
|
exit $EXIT_CODE
|
||||||
Reference in New Issue
Block a user