Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/busy-baboons-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ehildt/depbadge": minor
---

Replace js-yaml with yaml and yargs with native parseArgs, add resolveYamlMergeKey for YAML 1.1 merge key support
2 changes: 1 addition & 1 deletion .depcruise.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const WHITELIST = {
noOrphans: [],
notToDevDep: ["src/config.yml.loader.ts"],
notToUnresolvable: [],
notToUnresolvable: ["src/depbadgerc/read-depbadgerc-with-defaults.ts"],
};

/** @type {import('dependency-cruiser').IConfiguration} */
Expand Down
24 changes: 12 additions & 12 deletions .wiki/status-badges/codecov-badges.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ Display code coverage from Codecov using shields.io.

### Configuration

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | string | Yes | Must be `"codecov"` |
| `user` | string | Yes | Codecov username or organization |
| `repo` | string | Yes | Repository name |
| `branch` | string | No | Branch name |
| `flag` | string | No | Specific coverage flag (e.g., `unit`, `integration`) |
| `token` | string | No | Codecov upload token (required for private repos) |
| `link` | string | No | Custom link URL |
| `style` | string | No | Badge style: `flat`, `flat-square`, `plastic`, `for-the-badge`, `social` |
| `color` | string | No | Badge color (hex or named color) |
| `labelColor` | string | No | Label background color |
| Property | Type | Required | Description |
| ------------ | ------ | -------- | ------------------------------------------------------------------------ |
| `name` | string | Yes | Must be `"codecov"` |
| `user` | string | Yes | Codecov username or organization |
| `repo` | string | Yes | Repository name |
| `branch` | string | No | Branch name |
| `flag` | string | No | Specific coverage flag (e.g., `unit`, `integration`) |
| `token` | string | No | Codecov upload token (required for private repos) |
| `link` | string | No | Custom link URL |
| `style` | string | No | Badge style: `flat`, `flat-square`, `plastic`, `for-the-badge`, `social` |
| `color` | string | No | Badge color (hex or named color) |
| `labelColor` | string | No | Label background color |

### Examples

Expand Down
32 changes: 16 additions & 16 deletions .wiki/status-badges/docker-badges.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@ Display Docker Hub metrics using shields.io.

### Configuration

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | string | Yes | Must be `"docker"` |
| `metric` | string | Yes | One of: `pulls`, `stars`, `v` |
| `user` | string | Yes | Docker Hub username or organization |
| `image` | string | Yes | Image name |
| `tag` | string | No | Image tag |
| `link` | string | No | Custom link URL |
| `style` | string | No | Badge style: `flat`, `flat-square`, `plastic`, `for-the-badge`, `social` |
| `color` | string | No | Badge color (hex or named color) |
| `labelColor` | string | No | Label background color |
| Property | Type | Required | Description |
| ------------ | ------ | -------- | ------------------------------------------------------------------------ |
| `name` | string | Yes | Must be `"docker"` |
| `metric` | string | Yes | One of: `pulls`, `stars`, `v` |
| `user` | string | Yes | Docker Hub username or organization |
| `image` | string | Yes | Image name |
| `tag` | string | No | Image tag |
| `link` | string | No | Custom link URL |
| `style` | string | No | Badge style: `flat`, `flat-square`, `plastic`, `for-the-badge`, `social` |
| `color` | string | No | Badge color (hex or named color) |
| `labelColor` | string | No | Label background color |

### Metrics

| Metric | Description |
|--------|-------------|
| `pulls` | Number of pulls |
| `stars` | Number of stars |
| `v` | Latest version/tag |
| Metric | Description |
| ------- | ------------------ |
| `pulls` | Number of pulls |
| `stars` | Number of stars |
| `v` | Latest version/tag |

### Examples

Expand Down
42 changes: 21 additions & 21 deletions .wiki/status-badges/github-badges.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,30 @@ Display GitHub metrics for repositories using shields.io.

### Configuration

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | string | Yes | Must be `"github"` |
| `metric` | string | Yes | One of: `stars`, `license`, `release`, `issues`, `forks`, `watchers`, `actions` |
| `user` | string | Yes | GitHub username or organization |
| `repo` | string | Yes | Repository name |
| `branch` | string | No | Branch name |
| `workflow` | string | Conditional | Required when `metric` is `actions` |
| `link` | string | No | Custom link URL |
| `style` | string | No | Badge style: `flat`, `flat-square`, `plastic`, `for-the-badge`, `social` |
| `color` | string | No | Badge color (hex or named color) |
| `labelColor` | string | No | Label background color |
| Property | Type | Required | Description |
| ------------ | ------ | ----------- | ------------------------------------------------------------------------------- |
| `name` | string | Yes | Must be `"github"` |
| `metric` | string | Yes | One of: `stars`, `license`, `release`, `issues`, `forks`, `watchers`, `actions` |
| `user` | string | Yes | GitHub username or organization |
| `repo` | string | Yes | Repository name |
| `branch` | string | No | Branch name |
| `workflow` | string | Conditional | Required when `metric` is `actions` |
| `link` | string | No | Custom link URL |
| `style` | string | No | Badge style: `flat`, `flat-square`, `plastic`, `for-the-badge`, `social` |
| `color` | string | No | Badge color (hex or named color) |
| `labelColor` | string | No | Label background color |

### Metrics

| Metric | Description |
|--------|-------------|
| `stars` | Number of stars |
| `forks` | Number of forks |
| `issues` | Number of open issues |
| `watchers` | Number of watchers |
| `license` | Repository license |
| `release` | Latest release version |
| `actions` | Workflow status |
| Metric | Description |
| ---------- | ---------------------- |
| `stars` | Number of stars |
| `forks` | Number of forks |
| `issues` | Number of open issues |
| `watchers` | Number of watchers |
| `license` | Repository license |
| `release` | Latest release version |
| `actions` | Workflow status |

### Examples

Expand Down
12 changes: 6 additions & 6 deletions .wiki/status-badges/socket-badges.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ Display supply chain security scores from [Socket.dev](https://socket.dev/) for

### Configuration

| Property | Type | Required | Default | Description |
|----------|------|----------|---------|-------------|
| `name` | string | Yes | - | Must be `"socket"` |
| `package` | string | Yes | - | npm package name (e.g., `"express"`, `"@babel/core"`) |
| `version` | string | No | `"*"` | Package version or `"*"` for latest |
| `link` | string | No | npm package URL | Custom link URL |
| Property | Type | Required | Default | Description |
| --------- | ------ | -------- | --------------- | ----------------------------------------------------- |
| `name` | string | Yes | - | Must be `"socket"` |
| `package` | string | Yes | - | npm package name (e.g., `"express"`, `"@babel/core"`) |
| `version` | string | No | `"*"` | Package version or `"*"` for latest |
| `link` | string | No | npm package URL | Custom link URL |

### What the Badge Shows

Expand Down
20 changes: 10 additions & 10 deletions .wiki/status-badges/tile-badges.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ Display custom static badges with arbitrary text using shields.io.

### Configuration

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | string | Yes | Must be `"tile"` |
| `label` | string | Yes | Left side text |
| `message` | string | Yes | Right side text |
| `color` | string | No | Badge color (hex or named color like `brightgreen`, `orange`, `red`) |
| `labelColor` | string | No | Label background color |
| `isError` | boolean | No | Force error-style rendering |
| `link` | string | No | Custom link URL |
| `style` | string | No | Badge style: `flat`, `flat-square`, `plastic`, `for-the-badge`, `social` |
| Property | Type | Required | Description |
| ------------ | ------- | -------- | ------------------------------------------------------------------------ |
| `name` | string | Yes | Must be `"tile"` |
| `label` | string | Yes | Left side text |
| `message` | string | Yes | Right side text |
| `color` | string | No | Badge color (hex or named color like `brightgreen`, `orange`, `red`) |
| `labelColor` | string | No | Label background color |
| `isError` | boolean | No | Force error-style rendering |
| `link` | string | No | Custom link URL |
| `style` | string | No | Badge style: `flat`, `flat-square`, `plastic`, `for-the-badge`, `social` |

### Examples

Expand Down
Loading
Loading