badgesmith 0.0.1 → 1.1.0
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/LICENSE +48 -0
- package/README.md +280 -0
- package/dist/index.d.mts +160 -0
- package/dist/index.mjs +5372 -0
- package/package.json +71 -9
package/package.json
CHANGED
|
@@ -1,15 +1,77 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "badgesmith",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
"
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Renders several icon/value pairs as a single SVG badge",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"badge",
|
|
7
|
+
"svg",
|
|
8
|
+
"octicons",
|
|
9
|
+
"simple-icons",
|
|
10
|
+
"shields",
|
|
11
|
+
"cloudflare-workers"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://github.com/bvandrc/badgesmith",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/bvandrc/badgesmith/issues"
|
|
8
16
|
},
|
|
9
|
-
"keywords": [],
|
|
10
|
-
"type": "commonjs",
|
|
11
17
|
"repository": {
|
|
18
|
+
"type": "git",
|
|
12
19
|
"url": "git+https://github.com/bvandrc/badgesmith.git"
|
|
13
20
|
},
|
|
14
|
-
"
|
|
15
|
-
|
|
21
|
+
"author": "Blake Vandercar",
|
|
22
|
+
"license": "ISC",
|
|
23
|
+
"type": "module",
|
|
24
|
+
"exports": {
|
|
25
|
+
".": {
|
|
26
|
+
"types": "./dist/index.d.mts",
|
|
27
|
+
"default": "./dist/index.mjs"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"dist"
|
|
32
|
+
],
|
|
33
|
+
"sideEffects": false,
|
|
34
|
+
"engines": {
|
|
35
|
+
"node": ">=20"
|
|
36
|
+
},
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public",
|
|
39
|
+
"provenance": true
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@biomejs/biome": "^2.6",
|
|
43
|
+
"@cloudflare/workers-types": "^4",
|
|
44
|
+
"@primer/octicons": "^19",
|
|
45
|
+
"@types/node": "^26",
|
|
46
|
+
"anafanafo": "^2",
|
|
47
|
+
"es-toolkit": "^1",
|
|
48
|
+
"fontkit": "^2",
|
|
49
|
+
"preact": "^11",
|
|
50
|
+
"preact-render-to-string": "^6",
|
|
51
|
+
"simple-icons": "^16",
|
|
52
|
+
"tsdown": "^0.23",
|
|
53
|
+
"tsx": "^4",
|
|
54
|
+
"type-fest": "^5",
|
|
55
|
+
"typescript": "^7",
|
|
56
|
+
"wrangler": "^4",
|
|
57
|
+
"zod": "^4"
|
|
58
|
+
},
|
|
59
|
+
"scripts": {
|
|
60
|
+
"__c0": "====================[ Build & Development ]======================",
|
|
61
|
+
"build": "tsdown",
|
|
62
|
+
"dev": "wrangler dev",
|
|
63
|
+
"deploy": "wrangler deploy",
|
|
64
|
+
"gen:all": "pnpm gen:icons && pnpm gen:widths && pnpm gen:svg && pnpm gen:pages",
|
|
65
|
+
"gen:icons": "node --experimental-strip-types scripts/generate-icons.ts",
|
|
66
|
+
"gen:widths": "node --experimental-strip-types scripts/generate-text-widths.ts",
|
|
67
|
+
"gen:svg": "node --experimental-strip-types scripts/generate-svg.ts",
|
|
68
|
+
"gen:pages": "tsx --tsconfig tsconfig.test.json scripts/generate-pages.ts",
|
|
69
|
+
"__c1": "====================[ Linting & Type Checking ]==================",
|
|
70
|
+
"check": "biome check . && pnpm ts:check",
|
|
71
|
+
"format": "biome check . --fix",
|
|
72
|
+
"ts:check": "tsc && tsc --project tsconfig.test.json",
|
|
73
|
+
"__c2": "====================[ Unit Testing ]=============================",
|
|
74
|
+
"test": "node --experimental-strip-types --test \"src/**/*.test.ts\"",
|
|
75
|
+
"e2e": "node --experimental-strip-types scripts/e2e.ts"
|
|
76
|
+
}
|
|
77
|
+
}
|