mirror of https://github.com/jpanther/congo.git
👷 Add Lighthouse CI configuration
parent
4832b0900a
commit
ccfd369c67
|
@ -144,3 +144,4 @@ hugo.linux
|
|||
|
||||
exampleSite/public/
|
||||
TODO
|
||||
.lighthouseci
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
module.exports = {
|
||||
ci: {
|
||||
collect: {
|
||||
startServerCommand: "npm run example",
|
||||
startServerReadyPattern: "Web Server is available",
|
||||
url: ["http://localhost:8008/congo/samples/markdown/"],
|
||||
},
|
||||
upload: {
|
||||
target: "temporary-public-storage",
|
||||
},
|
||||
},
|
||||
};
|
|
@ -9,7 +9,8 @@
|
|||
"assets": "rimraf assets/vendor && vendor-copy",
|
||||
"dev": "NODE_ENV=development ./node_modules/tailwindcss/lib/cli.js -i ./assets/css/main.css -o ./assets/css/compiled/main.css --jit -w",
|
||||
"build": "NODE_ENV=production ./node_modules/tailwindcss/lib/cli.js -i ./assets/css/main.css -o ./assets/css/compiled/main.css --jit",
|
||||
"example": "hugo server --source exampleSite --themesDir ../.. --buildDrafts -b http://localhost/congo/ -p 8008"
|
||||
"example": "hugo server --source exampleSite --themesDir ../.. --buildDrafts -b http://localhost/congo/ -p 8008",
|
||||
"lighthouse": "lhci autorun"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
Loading…
Reference in New Issue