@sw-core/maestrotid
v0.1.0
Published
RN testID generator and verifier (Go binary wrapper)
Readme
maestrotid (npm)
A thin Node wrapper that dispatches to the platform-specific prebuilt Go binary.
Usage
npx maestrotid emit --schema ./tests/ids --out ./src/types/maestrotid.d.ts --format union
npx maestrotid verify --schema ./tests/ids --src ./src --jsonConfiguration
Place a .maestrotid.yml in your repo to avoid repeating flags:
schema: ./tests/ids
src: ./app/src
require:
- Pressable
- FlatListThe CLI will search upward from the current directory to find it. Flags still override config values.
# Uses config defaults
maestrotid verify --json
# Add extra required tags on top of config
maestrotid missing --require Switch,ImageThat's it
Build & try:
make go.build
./bin/maestrotid verify --json # uses .maestrotid.yml if present
./bin/maestrotid missing # emits just missing IDs as JSON