From 748b8b8a7da09f1c67d202edbfd5127734bbf8b7 Mon Sep 17 00:00:00 2001 From: Restioson Date: Fri, 18 Oct 2024 16:12:08 +0200 Subject: [PATCH] fixup! chore(ci): set up Lighthouse auditing in CI --- app/lighthouserc.js | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/app/lighthouserc.js b/app/lighthouserc.js index c773d0f..73bbcc8 100644 --- a/app/lighthouserc.js +++ b/app/lighthouserc.js @@ -1,16 +1,18 @@ module.exports = { + scripts: { + "lchi:server": "python manage.py runserver localhost:3000" + }, ci: { collect: { - startServerCommand: "python manage.py runserver localhost:3000", - url: [ - "http://localhost:3000", - "http://localhost:3000/search/", - "http://localhost:3000/institutions/", - "http://localhost:3000/projects/", - "http://localhost:3000/documents/", - "http://localhost:3000/languages/", - "http://localhost:3000/subjects/" - ] + url: [ + "http://localhost:3000", + "http://localhost:3000/search/", + "http://localhost:3000/institutions/", + "http://localhost:3000/projects/", + "http://localhost:3000/documents/", + "http://localhost:3000/languages/", + "http://localhost:3000/subjects/" + ] }, assert: { "preset": "lighthouse:recommended",