[style] format

Signed-off-by: Jithen Shriyan <shriyanjithen@gmail.com>
This commit is contained in:
Jithen Shriyan
2024-01-21 10:33:43 -05:00
parent a29a9f1f6c
commit d53ff7c1b6
2 changed files with 49 additions and 47 deletions
@@ -37,4 +37,4 @@ jobs:
run: |
yarn dlx @lhci/cli@0.11.x --config=microsite/lighthouserc.js autorun
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+48 -46
View File
@@ -14,53 +14,55 @@
* limitations under the License.
*/
var sidebars = require('./sidebars.json')
var sidebars = require('./sidebars.json');
module.exports = {
ci: {
collect: {
url: [
/** Home */
'http://localhost:3000',
/** Docs - Getting Started */
'http://localhost:3000/docs/getting-started',
/** Docs - Software Catalog */
'http://localhost:3000/docs/features/software-catalog',
/** Docs - Create a Plugin */
'http://localhost:3000/docs/plugins/create-a-plugin',
/** Docs - Designing for Backstage */
'http://localhost:3000/docs/dls/design',
/** Blog */
'http://localhost:3000/blog',
/** Plugins */
'http://localhost:3000/plugins',
/** Demos */
'http://localhost:3000/demos',
/** Community */
'http://localhost:3000/community',
/** Releases */
...(sidebars.releases['Release Notes'].map((path) => `http://localhost:3000/docs/${path}`)),
],
settings: {
onlyCategories: ['accessibility'],
output: ['html', 'json'],
outputPath: './.lighthouseci/reports',
preset: 'desktop',
},
// refers to root package scripts
startServerCommand: 'yarn run start:microsite',
startServerReadyPattern: 'compiled successfully',
startServerReadyTimeout: 600000,
numberOfRuns: 1,
},
assert: {
assertions: {
'categories:performance': 'off',
'categories:pwa': 'off',
'categories:best-practices': 'off',
'categories:seo': 'off',
'categories:accessibility': ['error', { minScore: 0.95 }],
},
},
ci: {
collect: {
url: [
/** Home */
'http://localhost:3000',
/** Docs - Getting Started */
'http://localhost:3000/docs/getting-started',
/** Docs - Software Catalog */
'http://localhost:3000/docs/features/software-catalog',
/** Docs - Create a Plugin */
'http://localhost:3000/docs/plugins/create-a-plugin',
/** Docs - Designing for Backstage */
'http://localhost:3000/docs/dls/design',
/** Blog */
'http://localhost:3000/blog',
/** Plugins */
'http://localhost:3000/plugins',
/** Demos */
'http://localhost:3000/demos',
/** Community */
'http://localhost:3000/community',
/** Releases */
...sidebars.releases['Release Notes'].map(
path => `http://localhost:3000/docs/${path}`,
),
],
settings: {
onlyCategories: ['accessibility'],
output: ['html', 'json'],
outputPath: './.lighthouseci/reports',
preset: 'desktop',
},
// refers to root package scripts
startServerCommand: 'yarn run start:microsite',
startServerReadyPattern: 'compiled successfully',
startServerReadyTimeout: 600000,
numberOfRuns: 1,
},
assert: {
assertions: {
'categories:performance': 'off',
'categories:pwa': 'off',
'categories:best-practices': 'off',
'categories:seo': 'off',
'categories:accessibility': ['error', { minScore: 0.95 }],
},
},
},
};