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/typescript-plugin specifically.
Output example
importtypescriptPluginfrom'@code-pushup/typescript-plugin';importtype{CoreConfig}from'@code-pushup/models';constconfig: CoreConfig={plugins: [typescriptPlugin({tsconfig: 'tsconfig.json'}),],categories: [{slug: 'bug-prevention',title: 'Bug prevention',description: 'Type checks that find **potential bugs** in your code.',refs: [{type: 'group',plugin: 'typescript',slug: 'problems',weight: 1},],},],};exportdefaultconfig;Category merging
importeslintPluginfrom'@code-pushup/eslint-plugin';importtypescriptPluginfrom'@code-pushup/typescript-plugin';importtype{CoreConfig}from'@code-pushup/models';constconfig: CoreConfig={plugins: [awaiteslintPlugin(),typescriptPlugin(),],categories: [{slug: 'bug-prevention',title: 'Bug prevention',description: 'Type checks and lint rules that find **potential bugs** in your code.',refs: [{type: 'group',plugin: 'typescript',slug: 'problems',weight: 1},{type: 'group',plugin: 'eslint',slug: 'problems',weight: 1},],},],};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/typescript-pluginspecifically.Output example
Category merging
Acceptance criteria
tsconfig.jsonortsconfig.base.jsonfile exists in the root directory. Otherwise, it is unselected by default.tsconfig.jsonfile in the project directory is suggested as the default option.problemsgroup).@code-pushup/typescript-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.