-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
54 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.lighthouserc.js | ||
.lighthouserc.cjs | ||
.lighthouserc.mjs | ||
lighthouse-plugin-ecoindex | ||
!.lighthouseci/.gitkeep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/** | ||
* @license | ||
* Copyright 2018 Google LLC | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
const path = require('path'); | ||
function getLighthouseConfig(){ | ||
return path.join( | ||
require.resolve('lighthouse-plugin-ecoindex'), | ||
'../helpers/lhci/custom-config.cjs' | ||
) | ||
} | ||
function getPuppeteerConfig(){ | ||
return 'node_modules/lighthouse-plugin-ecoindex/helpers/.puppeteerrc.cjs' | ||
} | ||
module.exports = { | ||
ci: { | ||
collect: { | ||
url: [ | ||
'https://www.ecoindex.fr/', | ||
'https://www.ecoindex.fr/comment-ca-marche/', | ||
], | ||
numberOfRuns: 1, | ||
settings: { | ||
// must adapte the path to the custom-config.js file, it must be an absolute path | ||
configPath: getLighthouseConfig(), | ||
}, | ||
puppeteerLaunchOptions: { | ||
headless: 'new', | ||
args: [ | ||
'--disable-gpu', | ||
'--disable-dev-shm-usage', | ||
'--disable-setuid-sandbox', | ||
'--no-sandbox', | ||
], | ||
}, | ||
puppeteerScript: | ||
getPuppeteerConfig(), | ||
}, | ||
assert: { | ||
preset: 'lighthouse:default', | ||
}, | ||
upload: { | ||
target: 'lhci', | ||
serverBaseUrl: 'http://localhost:9001', // The Lighthouse CI server URL | ||
token: 'xxx', // The Lighthouse CI server build token for the project | ||
ignoreDuplicateBuildFailure: true, | ||
}, | ||
}, | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters