@vanenshi/expo-plugins 0.1.1 → 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 +7 -24
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,6 +17,7 @@ display name on both iOS and Android — without touching the internal root `nam
|
|
|
17
17
|
(which drives bundle structure and forces slow clean rebuilds when changed).
|
|
18
18
|
|
|
19
19
|
**Underneath:**
|
|
20
|
+
|
|
20
21
|
- **iOS** — sets `CFBundleDisplayName` in `Info.plist` via `withInfoPlist`.
|
|
21
22
|
- **Android** — sets `app_name` in `strings.xml` via `withStringsXml`.
|
|
22
23
|
|
|
@@ -47,6 +48,7 @@ file paths, and delegates to `expo-font` — so you only declare _which_ font
|
|
|
47
48
|
families and weights you want.
|
|
48
49
|
|
|
49
50
|
**Underneath:**
|
|
51
|
+
|
|
50
52
|
- **Discovery** — walks `@expo-google-fonts/<name>` package folders, parses
|
|
51
53
|
folder names like `400Regular` / `700Bold_Italic`, and collects `.ttf` paths.
|
|
52
54
|
- **Delegation** — passes the resolved font manifest to `expo-font/app.plugin`
|
|
@@ -64,7 +66,11 @@ npx expo install expo-font @expo-google-fonts/roboto @expo-google-fonts/inter
|
|
|
64
66
|
"@vanenshi/expo-plugins/google-fonts",
|
|
65
67
|
{
|
|
66
68
|
"fonts": [
|
|
67
|
-
{
|
|
69
|
+
{
|
|
70
|
+
"packageName": "roboto",
|
|
71
|
+
"weights": [400, 500, 700],
|
|
72
|
+
"importItalic": true
|
|
73
|
+
},
|
|
68
74
|
{ "packageName": "inter", "weights": [400, 600] }
|
|
69
75
|
]
|
|
70
76
|
}
|
|
@@ -118,26 +124,3 @@ grep "CFBundleDisplayName" ios/*/Info.plist
|
|
|
118
124
|
```
|
|
119
125
|
|
|
120
126
|
See [`apps/app/README.md`](apps/app/README.md) for details.
|
|
121
|
-
|
|
122
|
-
### Publishing
|
|
123
|
-
|
|
124
|
-
CI publishes to npm on every **GitHub Release** ([`.github/workflows/publish.yml`](.github/workflows/publish.yml)).
|
|
125
|
-
Add an `NPM_TOKEN` repo secret (npm Automation token), then:
|
|
126
|
-
|
|
127
|
-
```sh
|
|
128
|
-
pnpm version <patch|minor|major>
|
|
129
|
-
git push --follow-tags
|
|
130
|
-
# create a GitHub Release from the new tag — CI builds, tests, and publishes
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
---
|
|
134
|
-
|
|
135
|
-
## Architecture decisions
|
|
136
|
-
|
|
137
|
-
See [`docs/adr/`](docs/adr/) for the recorded decisions behind this package's design:
|
|
138
|
-
package structure ([ADR-0001](docs/adr/0001-single-package.md)),
|
|
139
|
-
toolchain ([ADR-0002](docs/adr/0002-expo-module-scripts.md)),
|
|
140
|
-
logging ([ADR-0003](docs/adr/0003-warning-aggregator-logger.md)),
|
|
141
|
-
font discovery ([ADR-0004](docs/adr/0004-google-fonts-auto-discovery.md)),
|
|
142
|
-
folder-per-plugin layout ([ADR-0005](docs/adr/0005-folder-per-plugin-layout.md)),
|
|
143
|
-
and cross-platform display name ([ADR-0006](docs/adr/0006-cross-platform-display-name.md)).
|