webhintio / webhint-ado-extension

ADO extension to run webhint in your pipeline
Apache License 2.0
4 stars 4 forks source link

Create tabs using newer SDK #14

Open molant opened 5 years ago

molant commented 5 years ago

Looks like the UI of Azure DevOps has migrated to react and the advice is to use azure-devops-extension-sdk.

Plan is to still use the generated HTML instead of using their components but we need to see how everything works with this SDK.

There are examples in https://github.com/Microsoft/azure-devops-extension-sample

EddyHaigh commented 4 years ago

Its quite simple to add an attachment to the build summary (task.uploadsummary) but the build summary requires the attachment to be a markdown file to be displayed. There is a feature request for allowing HTML reports, but it's far behind in votes and does not look to be on the Azure Pipelines roadmap.

It actually might be beneficial to look at creating a Markdown formatter for Webhint in times when we can't provide HTML for the output.

molant commented 4 years ago

@EddyHaigh creating a markdown formatter should relatively easy. Do you mind opening an issue in the main project? If you could add your ideas about how it should look like it would be great.

I quickly look at the commands page you've linked and it looks like we will have to use a special formatting for ADO, right? Maybe we could have a general markdown formatter and then a transformation step if needed in the extension?