A React-based component for viewing SARIF files.
Перейти к файлу
Jeff King eaf363c127 Docs/demo: update demoLog. 2020-03-16 18:14:20 -07:00
components Update filter level items order. 2020-03-16 17:58:50 -07:00
docs Docs/demo: update demoLog. 2020-03-16 18:14:20 -07:00
docs-components Docs/demo: update demoLog. 2020-03-16 18:14:20 -07:00
resources Add resources folder. 2019-12-18 14:54:54 -08:00
.gitignore Update gitignore. 2020-03-08 16:05:39 -07:00
.npmignore NPM and UMD compat. 2020-01-08 15:39:45 -08:00
LICENSE Initial commit 2018-12-06 11:01:13 -08:00
README.md Update publishing notes. 2020-03-08 16:15:05 -07:00
babel.config.js Full rewrite, migrate to azure-devops-ui. 2019-12-17 17:14:33 -08:00
index.html DevServer update for dist changes. 2020-01-09 16:00:03 -08:00
index.ts Full rewrite, migrate to azure-devops-ui. 2019-12-17 17:14:33 -08:00
index.tsx Split into two webpack.configs (dev vs prod/npm). 2020-03-03 16:22:13 -08:00
jest.config.js Full rewrite, migrate to azure-devops-ui. 2019-12-17 17:14:33 -08:00
package.json Fix: Enable runStores memoization. 2020-03-06 18:07:16 -08:00
tsconfig.json Full rewrite, migrate to azure-devops-ui. 2019-12-17 17:14:33 -08:00
webpack.config.common.js Split into two webpack.configs (dev vs prod/npm). 2020-03-03 16:22:13 -08:00
webpack.config.js Split into two webpack.configs (dev vs prod/npm). 2020-03-03 16:22:13 -08:00
webpack.config.npm.js Split into two webpack.configs (dev vs prod/npm). 2020-03-03 16:22:13 -08:00

README.md

SARIF Web Component

A React-based component for viewing SARIF files. Try it out.

Usage

npm install @microsoft/sarif-web-component
import * as React from 'react'
import * as ReactDOM from 'react-dom'
import {Log} from 'sarif-web-component'

ReactDOM.render(<Viewer logs={arrayOfLogs} />, document.body.firstChild)

Publishing

Verify package.json name in case it was modified for development purposes.

npx webpack
npm publish --access public

For a dry-run publish: npm publish --dry-run.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.