Compare commits

...

3 Commits

Author SHA1 Message Date
ce8c2eb20e nope switching back 2019-10-17 10:47:57 +01:00
42ae3451be Use webpack-dev-server 2019-10-17 10:41:38 +01:00
1e3ad773d9 Add Lighthouse CI script 2019-10-17 10:32:55 +01:00
3 changed files with 23 additions and 2 deletions

View File

@ -1,4 +1,12 @@
sudo: required
dist: xenial
language: node_js
node_js:
- '10'
addons:
chrome: stable
cache: npm
script: npm run build
script:
- npm run build
- ./run_lighthouse.sh
after_success: npm run sizereport

2
package-lock.json generated
View File

@ -12861,7 +12861,7 @@
"dependencies": {
"minimist": {
"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=",
"dev": true
}

13
run_lighthouse.sh Executable file
View 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