diff --git a/app/lighthouserc.js b/app/lighthouserc.js new file mode 100644 index 0000000..c773d0f --- /dev/null +++ b/app/lighthouserc.js @@ -0,0 +1,23 @@ +module.exports = { + 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/" + ] + }, + assert: { + "preset": "lighthouse:recommended", + "assertions": { + // We are running this against a Django testing server + "is-on-https": false, + } + } + } +} diff --git a/app/lighthouserc.json b/app/lighthouserc.json deleted file mode 100644 index 7b6de37..0000000 --- a/app/lighthouserc.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "scripts": { - "serve:lhci": "python manage.py runserver localhost:3000" - }, - "ci": { - "collect": { - "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/" - ] - } - } -}