@mcptoolshop/brand 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/dist/cli.js +1 -0
- package/dist/commands/audit.d.ts +1 -0
- package/dist/commands/audit.js +2 -2
- package/dist/commands/migrate.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<a href="README.ja.md">日本語</a> | <a href="README.zh.md">中文</a> | <a href="README.es.md">Español</a> | <a href="README.fr.md">Français</a> | <a href="README.hi.md">हिन्दी</a> | <a href="README.it.md">Italiano</a> | <a href="README.pt-BR.md">Português (BR)</a>
|
|
3
|
-
</p>
|
|
4
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="README.ja.md">日本語</a> | <a href="README.zh.md">中文</a> | <a href="README.es.md">Español</a> | <a href="README.fr.md">Français</a> | <a href="README.hi.md">हिन्दी</a> | <a href="README.it.md">Italiano</a> | <a href="README.pt-BR.md">Português (BR)</a>
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
5
|
<p align="center">
|
|
6
6
|
<img src="assets/logo.jpg" alt="Brand" width="400">
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
10
|
<a href="https://github.com/mcp-tool-shop-org/brand/actions/workflows/ci.yml"><img src="https://github.com/mcp-tool-shop-org/brand/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
11
|
+
<a href="https://www.npmjs.com/package/@mcptoolshop/brand"><img src="https://img.shields.io/npm/v/@mcptoolshop/brand" alt="npm"></a>
|
|
11
12
|
<a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow" alt="License: MIT"></a>
|
|
12
13
|
<a href="https://mcp-tool-shop-org.github.io/brand/"><img src="https://img.shields.io/badge/Landing_Page-live-blue" alt="Landing Page"></a>
|
|
13
14
|
</p>
|
package/dist/cli.js
CHANGED
|
@@ -52,6 +52,7 @@ program
|
|
|
52
52
|
.command('audit')
|
|
53
53
|
.description('Scan org repos for broken logo refs, badge collisions, indentation traps')
|
|
54
54
|
.option('--repos <path>', 'Parent directory containing repo clones', '.')
|
|
55
|
+
.option('--logos <path>', 'Path to logos directory', 'logos')
|
|
55
56
|
.option('--brand-base <url>', 'Base URL for brand assets', 'https://raw.githubusercontent.com/mcp-tool-shop-org/brand/main')
|
|
56
57
|
.action(async (opts) => {
|
|
57
58
|
const { runAudit } = await import('./commands/audit.js');
|
package/dist/commands/audit.d.ts
CHANGED
package/dist/commands/audit.js
CHANGED
|
@@ -4,12 +4,12 @@ import { join } from 'node:path';
|
|
|
4
4
|
import { globSync } from 'glob';
|
|
5
5
|
import { findLogoImgTags } from '../utils/readme-parser.js';
|
|
6
6
|
export async function runAudit(opts) {
|
|
7
|
-
const logosDir =
|
|
7
|
+
const logosDir = opts.logos;
|
|
8
8
|
const issues = [];
|
|
9
9
|
// Get all logo slugs
|
|
10
10
|
const slugDirs = globSync('*/', { cwd: logosDir }).map(d => d.replace(/\/$/, ''));
|
|
11
11
|
for (const slug of slugDirs) {
|
|
12
|
-
const repoDir = join(opts.repos,
|
|
12
|
+
const repoDir = join(opts.repos, slug);
|
|
13
13
|
if (!existsSync(repoDir))
|
|
14
14
|
continue;
|
|
15
15
|
// Find README files
|
package/dist/commands/migrate.js
CHANGED
|
@@ -13,7 +13,7 @@ export async function runMigrate(opts) {
|
|
|
13
13
|
console.log(chalk.cyan('\n DRY RUN — no files will be modified.\n'));
|
|
14
14
|
}
|
|
15
15
|
for (const slug of slugDirs) {
|
|
16
|
-
const repoDir = join(opts.repos,
|
|
16
|
+
const repoDir = join(opts.repos, slug);
|
|
17
17
|
if (!existsSync(repoDir)) {
|
|
18
18
|
skipped++;
|
|
19
19
|
continue;
|