Skip to content

Commit

Permalink
docs: overhaul doc structure and add more info
Browse files Browse the repository at this point in the history
  • Loading branch information
janbiasi committed Nov 22, 2023
1 parent 426f2db commit 4e4d9a3
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 47 deletions.
65 changes: 27 additions & 38 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -1,40 +1,29 @@
{
"files": [
"README.md"
],
"imageSize": 100,
"commit": false,
"commitType": "docs",
"commitConvention": "angular",
"contributors": [
{
"login": "boostvolt",
"name": "Jan Kott",
"avatar_url": "https://avatars.githubusercontent.com/u/51777660?v=4",
"profile": "https://github.com/boostvolt",
"contributions": [
"code",
"ideas",
"content"
]
},
{
"login": "janbiasi",
"name": "Jan R. Biasi",
"avatar_url": "https://avatars.githubusercontent.com/u/4563751?v=4",
"profile": "https://github.com/janbiasi",
"contributions": [
"business",
"code",
"ideas",
"content"
]
}
],
"contributorsPerLine": 7,
"skipCi": true,
"repoType": "github",
"repoHost": "https://github.com",
"projectName": "rollup-plugin-sbom",
"projectOwner": "janbiasi"
"files": ["README.md"],
"imageSize": 100,
"commit": false,
"commitType": "docs",
"commitConvention": "angular",
"contributors": [
{
"login": "janbiasi",
"name": "Jan R. Biasi",
"avatar_url": "https://avatars.githubusercontent.com/u/4563751?v=4",
"profile": "https://github.com/janbiasi",
"contributions": ["business", "question", "mentoring", "code"]
},
{
"login": "boostvolt",
"name": "Jan Kott",
"avatar_url": "https://avatars.githubusercontent.com/u/51777660?v=4",
"profile": "https://github.com/boostvolt",
"contributions": ["code", "ideas", "content"]
}
],
"contributorsPerLine": 7,
"skipCi": true,
"repoType": "github",
"repoHost": "https://github.com",
"projectName": "rollup-plugin-sbom",
"projectOwner": "janbiasi"
}
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pnpm-lock.yaml
.all-contributorsrc
test
52 changes: 43 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,50 @@
> This plugin is still in early development and not production ready just yet. Use with caution!
> You can check the current progress via [Milestone - V1](https://github.com/janbiasi/rollup-plugin-sbom/milestone/1).
![npm](https://img.shields.io/npm/v/rollup-plugin-sbom)
[![CI](https://github.com/janbiasi/rollup-plugin-sbom/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/janbiasi/rollup-plugin-sbom/actions/workflows/ci.yml) ![npm](https://img.shields.io/npm/v/rollup-plugin-sbom)
![npm type definitions](https://img.shields.io/npm/types/rollup-plugin-sbom)
![npm peer dependency version (scoped)](https://img.shields.io/npm/dependency-version/rollup-plugin-sbom/peer/rollup?logo=rollupdotjs&color=%23EA483F)

# rollup-plugin-sbom

Create SBOMs for your Vite or Rollup projects.
Create [SBOMs]() _(Software Bill of Materials)_ in [CycloneDX](https://cyclonedx.org/) format for your [Vite](https://vitejs.dev/) and [Rollup](https://rollupjs.org/) projects, including only the software you're really shipping to production.

### Compatibility
> A “software bill of materials” (SBOM) has emerged as a key building block in software security and software supply chain risk management. A SBOM is a nested inventory, a list of ingredients that make up software components.
>
> [CISA (.gov)](https://www.cisa.gov) [[full article](https://www.cisa.gov/sbom)]
| Plugin | Vite | Rollup |
| ------ | ------ | ------ |
| v1 | v4, v5 | v3, v4 |
##### Content

### Installation and usage
- [Requirements and Compatibility](#requirements-and-compatibility)
- [Installation](#installation)
- [Usage](#usage)
- [Usage with Vite](#usage-with-vite)
- [Usage with Rollup](#usage-with-rollup)
- [Configuration Options](#configuration-options)
- [Contributors](#contributors)

---

### Requirements and Compatibility

| Plugin | Vite | Rollup | Node |
| ------ | ------ | ------ | ------ |
| v1 | v4, v5 | v3, v4 | 18, 20 |

We're always supporting LTS Node.js versions and versions which still have security support. Plugin support will be dropped once a Node.js version reaches its final EOL.

### Installation

```sh
npm install --save-dev rollup-plugin-sbom
pnpm install -D rollup-plugin-sbom
yarn add --dev rollup-plugin-sbom
```

### Usage

#### Usage with [Vite](https://vitejs.dev/)

```ts
import { defineConfig } from "vite";
import sbom from "rollup-plugin-sbom";
Expand All @@ -31,7 +55,17 @@ export default defineConfig({
});
```

### Options
#### Usage with [Rollup](https://rollupjs.org/)

```js
import sbom from "rollup-plugin-sbom";

export default {
plugins: [sbom()],
};
```

#### Configuration Options

| Name | Default | Description |
| ------------------- | ----------------- | ---------------------------------------------------------- |
Expand All @@ -55,8 +89,8 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<table>
<tbody>
<tr>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/janbiasi"><img src="https://avatars.githubusercontent.com/u/4563751?v=4?s=100" width="100px;" alt="Jan R. Biasi"/><br /><sub><b>Jan R. Biasi</b></sub></a><br /><a href="#business-janbiasi" title="Business development">💼</a> <a href="#question-janbiasi" title="Answering Questions">💬</a> <a href="#mentoring-janbiasi" title="Mentoring">🧑‍🏫</a> <a href="https://github.com/janbiasi/rollup-plugin-sbom/commits?author=janbiasi" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/boostvolt"><img src="https://avatars.githubusercontent.com/u/51777660?v=4?s=100" width="100px;" alt="Jan Kott"/><br /><sub><b>Jan Kott</b></sub></a><br /><a href="https://github.com/janbiasi/rollup-plugin-sbom/commits?author=boostvolt" title="Code">💻</a> <a href="#ideas-boostvolt" title="Ideas, Planning, & Feedback">🤔</a> <a href="#content-boostvolt" title="Content">🖋</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/janbiasi"><img src="https://avatars.githubusercontent.com/u/4563751?v=4?s=100" width="100px;" alt="Jan R. Biasi"/><br /><sub><b>Jan R. Biasi</b></sub></a><br /><a href="#business-janbiasi" title="Business development">💼</a> <a href="https://github.com/janbiasi/rollup-plugin-sbom/commits?author=janbiasi" title="Code">💻</a> <a href="#ideas-janbiasi" title="Ideas, Planning, & Feedback">🤔</a> <a href="#content-janbiasi" title="Content">🖋</a></td>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit 4e4d9a3

Please sign in to comment.