User story
Our setup wizard should be able to configure a basic working version of each of our official plugins. Each plugin may prompt for its own specific configuration options and infer smart defaults from the user's repo. The resulting configuration code adds the plugin to the user's config and sets up some basic categories.
This issue is about @code-pushup/lighthouse-plugin specifically.
Output example
importlighthousePlugin,{lighthouseGroupRefs}from'@code-pushup/lighthouse-plugin';importtype{CoreConfig}from'@code-pushup/models';constlhPlugin=awaitlighthousePlugin('http://localhost:4200');constconfig: CoreConfig={plugins: [lhPlugin],categories: [{slug: 'performance',title: 'Performance',description: 'Measure performance and find opportunities to speed up page loads.',refs: lighthouseGroupRefs(lhPlugin,'performance'),},{slug: 'a11y',title: 'Accessibility',description: 'Determine if all users access content and navigate your site effectively.',refs: lighthouseGroupRefs(lhPlugin,'accessibility'),},{slug: 'best-practices',title: 'Best Practices',description: 'Improve code health of your web page following these best practices.',refs: lighthouseGroupRefs(lhPlugin,'best-practices'),},{slug: 'seo',title: 'SEO',description: 'Ensure that your page is optimized for search engine results ranking.',refs: lighthouseGroupRefs(lhPlugin,'seo'),},],};exportdefaultconfig;Acceptance criteria
User story
Our setup wizard should be able to configure a basic working version of each of our official plugins. Each plugin may prompt for its own specific configuration options and infer smart defaults from the user's repo. The resulting configuration code adds the plugin to the user's config and sets up some basic categories.
This issue is about
@code-pushup/lighthouse-pluginspecifically.Output example
Acceptance criteria
@code-pushup/lighthouse-plugin. The core of the setup wizard in@code-pushup/create-cliorchestrates plugin selection and generation, but doesn't know any specifics about individual plugins.@code-pushup/create-cli- the refs are merged into 1 category.