mirror of
https://github.com/preactjs/wmr.git
synced 2026-01-18 14:59:31 +00:00
Add local Lighthouse CI script
This commit is contained in:
parent
7e569dd23d
commit
ea62d7fa53
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,3 +9,4 @@ package-lock.json
|
||||
!packages/wmr/test/fixtures/exports/node_modules
|
||||
.DS_Store
|
||||
.vscode
|
||||
.lighthouseci
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user