@stats-forge/github-stats-forge-cli 0.2.0 → 0.3.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/build/cards.d.ts +2 -0
- package/build/cards.d.ts.map +1 -1
- package/build/cards.js +1 -1
- package/package.json +6 -2
- package/src/cards.ts +1 -1
package/build/cards.d.ts
CHANGED
|
@@ -32,6 +32,8 @@ export interface CardKind {
|
|
|
32
32
|
/** @returns The rendered card, or the rendered error. */
|
|
33
33
|
render: (query: Record<string, string>, config: CardConfig) => Promise<ApiResult>;
|
|
34
34
|
}
|
|
35
|
+
/** Colors and the theme, which every card accepts. */
|
|
36
|
+
export declare const COMMON_OPTIONS: ReadonlyArray<CardOption>;
|
|
35
37
|
/** Every card, with the options every card shares appended to its own. */
|
|
36
38
|
export declare const cards: ReadonlyArray<CardKind>;
|
|
37
39
|
/**
|
package/build/cards.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cards.d.ts","sourceRoot":"","sources":["../src/cards.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AAEtF;;;;;GAKG;AAEH,iFAAiF;AACjF,KAAK,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEpE,6BAA6B;AAC7B,MAAM,WAAW,UAAU;IACzB,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,UAAU,CAAC;IACjB,wFAAwF;IACxF,OAAO,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAChC,iEAAiE;IACjE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,gEAAgE;AAChE,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE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M,CAAC,EAAE,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC;CACnF;AAID,sDAAsD;AACtD,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC,UAAU,CA8BpD,CAAC;AAkTF,0EAA0E;AAC1E,eAAO,MAAM,KAAK,EAAE,aAAa,CAAC,QAAQ,CAGvC,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,QAAQ,OAAQ,MAAM,KAAG,QAAQ,GAAG,SAAiD,CAAC"}
|
package/build/cards.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { contributedTo, gist, pin, stats, themes, topLangs, wakatime, } from '@stats-forge/github-stats-forge-core/api';
|
|
2
2
|
const THEME_NAMES = Object.keys(themes);
|
|
3
3
|
/** Colors and the theme, which every card accepts. */
|
|
4
|
-
const COMMON_OPTIONS = [
|
|
4
|
+
export const COMMON_OPTIONS = [
|
|
5
5
|
{
|
|
6
6
|
name: 'theme',
|
|
7
7
|
label: 'Theme',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stats-forge/github-stats-forge-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Render a GitHub stats card to a local SVG file, one prompt at a time",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -34,6 +34,10 @@
|
|
|
34
34
|
".": {
|
|
35
35
|
"@stats/source": "./src/index.ts",
|
|
36
36
|
"default": "./build/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./cards": {
|
|
39
|
+
"@stats/source": "./src/cards.ts",
|
|
40
|
+
"default": "./build/cards.js"
|
|
37
41
|
}
|
|
38
42
|
},
|
|
39
43
|
"publishConfig": {
|
|
@@ -41,7 +45,7 @@
|
|
|
41
45
|
},
|
|
42
46
|
"dependencies": {
|
|
43
47
|
"@inquirer/prompts": "8.7.0",
|
|
44
|
-
"@stats-forge/github-stats-forge-core": "^0.
|
|
48
|
+
"@stats-forge/github-stats-forge-core": "^0.3.0"
|
|
45
49
|
},
|
|
46
50
|
"devDependencies": {
|
|
47
51
|
"vitest": "4.1.11"
|
package/src/cards.ts
CHANGED
|
@@ -49,7 +49,7 @@ export interface CardKind {
|
|
|
49
49
|
const THEME_NAMES = Object.keys(themes);
|
|
50
50
|
|
|
51
51
|
/** Colors and the theme, which every card accepts. */
|
|
52
|
-
const COMMON_OPTIONS: ReadonlyArray<CardOption> = [
|
|
52
|
+
export const COMMON_OPTIONS: ReadonlyArray<CardOption> = [
|
|
53
53
|
{
|
|
54
54
|
name: 'theme',
|
|
55
55
|
label: 'Theme',
|