A React-based component for viewing SARIF files.
Перейти к файлу
Jeff King ed329aba6c Level none, kind pass = green check. 2020-05-14 10:58:53 -07:00
components Level none, kind pass = green check. 2020-05-14 10:58:53 -07:00
docs Level none, kind pass = green check. 2020-05-14 10:58:53 -07:00
docs-components Docs/demo: update demoLog. 2020-03-16 18:14:20 -07:00
resources Level none, kind pass = green check. 2020-05-14 10:58:53 -07: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 demo url. 2020-03-18 17:37:12 -07:00
babel.config.js Full rewrite, migrate to azure-devops-ui. 2019-12-17 17:14:33 -08:00
index.d.ts Add manually maintained index.d.ts. 2020-03-18 11:28:53 -07: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 Add props/options comments. 2020-03-18 16:33:40 -07:00
jest.config.js Full rewrite, migrate to azure-devops-ui. 2019-12-17 17:14:33 -08:00
package.json Split npm and docs webpack configs. 2020-03-18 16:10:22 -07:00
tsconfig.json Full rewrite, migrate to azure-devops-ui. 2019-12-17 17:14:33 -08:00
webpack.config.common.js Webpack stats minimal. 2020-03-18 16:16:28 -07:00
webpack.config.docs.js Split npm and docs webpack configs. 2020-03-18 16:10:22 -07: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 npm and docs webpack configs. 2020-03-18 16:10:22 -07: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 {Viewer} 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.

npm install
npx webpack --config ./webpack.config.npm.js
npm login
npm publish

For a scoped non-paid accounts (such as for personal testing), publish would require: npm publish --access public. For a dry-run publish: npm publish --dry-run. Careful: the typo --dryrun results in a real publish.

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.