Skip to content

Commit 8a85a27

Browse files
committed
Update
1 parent 78b9082 commit 8a85a27

6 files changed

Lines changed: 240 additions & 120 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,11 @@ jobs:
4545
node-version: 24
4646
registry-url: https://registry.npmjs.org/
4747
- run: npm ci
48+
- name: Extract version from tag
49+
id: version
50+
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
51+
- name: Update package.json version
52+
run: npm version --no-git-tag-version ${{ steps.version.outputs.VERSION }}
4853
- run: npm publish
54+
env:
55+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

fontkit.config.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,21 @@
1616
"weight": "400",
1717
"style": "normal"
1818
}
19-
]
19+
],
20+
"legacy": {
21+
"google": [
22+
"Aleo:ital,wght@0,100..900;1,100..900",
23+
"Zen+Old+Mincho:wght@400;700",
24+
"Fira+Code:wght@300..700",
25+
"Noto+Serif+SC:wght@200..900"
26+
],
27+
"offline": [
28+
{
29+
"file": "FZXSSJW.TTF",
30+
"family": "FZNewShuSong",
31+
"weight": "400",
32+
"style": "normal"
33+
}
34+
]
35+
}
2036
}

package-lock.json

Lines changed: 50 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
{
22
"name": "@raineblog/mkdocs-fontkit",
3-
"version": "1.0.2",
3+
"version": "1.0.0",
44
"description": "A static analysis font kit builder. Host Adobe Fonts (Typekit), Google Fonts, and custom fonts locally with single-command build and minification.",
55
"main": "scripts/build.js",
66
"bin": {
77
"fontkit": "scripts/build.js"
88
},
99
"scripts": {
10-
"build": "node scripts/build.js",
11-
"test": "echo \"Error: no test specified\" && exit 1",
12-
"prepublishOnly": "npm run build"
10+
"build": "node scripts/build.js"
1311
},
1412
"repository": {
1513
"type": "git",
@@ -23,14 +21,16 @@
2321
"font-optimizer",
2422
"self-hosted"
2523
],
26-
"author": "PPR21",
24+
"author": "RainPPR",
2725
"license": "MIT",
2826
"dependencies": {
29-
"axios": "^1.13.2",
27+
"axios": "^1.13.6",
28+
"chalk": "^5.6.2",
3029
"clean-css": "^5.3.3",
3130
"cn-font-split": "^7.4.1",
3231
"css": "^3.0.0",
33-
"fs-extra": "^11.3.3"
32+
"fs-extra": "^11.3.3",
33+
"p-limit": "^7.3.0"
3434
},
3535
"publishConfig": {
3636
"access": "public"

0 commit comments

Comments
 (0)