diff --git a/.gitignore b/.gitignore index 5706f473..7b2b1e95 100644 --- a/.gitignore +++ b/.gitignore @@ -144,3 +144,4 @@ hugo.linux exampleSite/public/ TODO +.lighthouseci diff --git a/lighthouserc.js b/lighthouserc.js new file mode 100644 index 00000000..4aff39ca --- /dev/null +++ b/lighthouserc.js @@ -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", + }, + }, +}; diff --git a/package.json b/package.json index 6b51cdf2..27575223 100644 --- a/package.json +++ b/package.json @@ -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",