Add local Lighthouse CI script

This commit is contained in:
Marvin Hagemeister 2021-03-28 22:52:08 +02:00
parent 7e569dd23d
commit ea62d7fa53
3 changed files with 1043 additions and 37 deletions

1
.gitignore vendored
View File

@ -9,3 +9,4 @@ package-lock.json
!packages/wmr/test/fixtures/exports/node_modules
.DS_Store
.vscode
.lighthouseci

View File

@ -10,7 +10,8 @@
"start:prod": "cross-env DEBUG=true wmr",
"build:prod": "wmr build --prerender",
"serve:prod": "wmr serve",
"dev": "cross-env PROFILE=true nodemon -w src --exec \"yarn start\""
"dev": "cross-env PROFILE=true nodemon -w src --exec \"yarn start\"",
"check:lhci": "yarn build && lhci autorun --collect.url='http://localhost:8080' --collect.startServerCommand='yarn serve --port 8080' --collect.startServerReadyPattern='server running at'"
},
"alias": {
"react": "preact/compat"
@ -18,7 +19,8 @@
"devDependencies": {
"wmr": "*",
"nodemon": "^2.0.7",
"cross-env": "^7.0.3"
"cross-env": "^7.0.3",
"@lhci/cli": "^0.7.0"
},
"dependencies": {
"preact": "^10.5.13",

1073
yarn.lock

File diff suppressed because it is too large Load Diff