feat: add yarn setup:oss for open-source contributors - #53
Merged
Conversation
Adds a setup path that needs no Artsy/S3 access, so OSS contributors don't have to source the private assets/fonts/Unica77LL-*.otf fonts. scripts/setup-oss: - writes empty placeholder Unica77LL fonts into assets/fonts so expo prebuild / the expo-font plugin resolve them (app falls back to system fonts; drop real .otf files to override). Font list mirrors app.json. - creates keys.json from keys.example.json if missing (react-native-keys). Idempotent. Wires up package.json 'setup:oss' and documents it in the README (OSS Contributors + template steps) and Getting Started. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KPWjhmaeq8DnsiiFD9Eg7A
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Open-source contributors currently can't run
yarn setup:artsy(it pulls the private Unica77LL fonts + env from Artsy S3), and without fontsexpo prebuildfails on the missingassets/fonts/Unica77LL-*.otf. This adds a no-private-access setup path.scripts/setup-oss(yarn setup:oss):Unica77LLfonts intoassets/fontssoexpo prebuild/ theexpo-fontplugin resolve them. The app falls back to the system font; drop real.otffiles inassets/fontsto use your own typefaces. The font list mirrors theexpo-fontfontsarray inapp.json.keys.jsonfromkeys.example.jsonif missing (react-native-keys).Also:
package.json— newsetup:ossscript.setup:oss.yarn setup:ossalongsidesetup:artsy.Verified the script runs and is idempotent (creates the 4 placeholder fonts +
keys.json).PR Checklist
🤖 Generated with Claude Code
Generated by Claude Code