Skip to content

Commit c8c903d

Browse files
authored
chore: add README files to packages (#198)
* chore: copy and pack the README to the react-native-brownfield package upon pack * docs: list CLI in root README.md * docs: add READMEs to brownie & cli packages * docs: move the attached banner to source tree of repo; fix typo in twitter hashtag * docs: future-proof description for Brownie * fix(ci): add missing GITHUB_TOKEN to release workflow * chore: added changeset
1 parent af95d9c commit c8c903d

File tree

10 files changed

+148
-7
lines changed

10 files changed

+148
-7
lines changed

.changeset/social-coins-leave.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@callstack/react-native-brownfield': patch
3+
'@callstack/brownie': patch
4+
'@callstack/brownfield-cli': patch
5+
---
6+
7+
docs: added README files to all packages

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,5 @@ jobs:
3333
publish: yarn publish-packages
3434
commit: 'chore(release): version packages'
3535
title: 'chore(release): version packages'
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<a href="https://www.callstack.com/open-source?utm_campaign=generic&utm_source=github&utm_medium=referral&utm_content=react-native-brownfield" align="center">
2-
<img alt="React Native Brownfield" src="https://github.com/user-attachments/assets/55fcdff5-54f0-4081-adf6-55dfa5c29af2">
2+
<img alt="React Native Brownfield" src="https://github.com/callstack/react-native-brownfield/raw/refs/heads/main/img/brownfield-banner.jpg">
33
</a>
44

55
<p align="center">
@@ -30,6 +30,7 @@
3030
- Works well with **any native navigation** pattern, as well as any React Native JavaScript-based navigation
3131
- Compatible with all native languages **Objective-C**, **Swift**, **Java** and **Kotlin**
3232
- Supports UIKit and SwiftUI on iOS and Fragments and Jetpack Compose on Android
33+
- Out-of-the-box **CLI** that automates the build process
3334

3435
## Documentation
3536

@@ -74,7 +75,7 @@ This project follows the [all-contributors](https://github.com/kentcdodds/all-co
7475
[all-contributors-badge]: https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square
7576
[chat-badge]: https://img.shields.io/discord/613446453762719798.svg?style=flat-square&colorB=758ED3
7677
[chat]: https://discord.gg/2SR9Mua
77-
[tweet-badge]: https://img.shields.io/badge/tweet-%23reacnativebrownfield-blue.svg?style=flat-square&colorB=1DA1F2&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAUCAYAAACXtf2DAAAAAXNSR0IArs4c6QAAAaRJREFUOBGtlM8rBGEYx3cWtRHJRaKcuMtBSitxkCQ3LtzkP9iUUu5ODspRHLhRLtq0FxeicEBC2cOivcge%2FMgan3fNM8bbzL4zm6c%2BPT%2Fe7%2FO8887svrFYBWbbtgWzsAt3sAcpqJFxxF1QV8oJFqFPFst5dLWQAT87oTgPB7DtziFRT1EA4yZolsFkhwjGYFRO8Op0KD8HVe7unoB6PRTBZG8IctAmG1xrHcfkQ2B55sfI%2ByGMXSBqV71xZ8CWdxBxN6ThFuECDEAL%2Bc9HIzDYumVZ966GZnX0SzCZvEqTbkaGywkyFE6hKAsBPhFQ18uPUqh2ggJ%2BUor%2F4M%2F%2FzOC8g6YzR1i%2F8g4vvSI%2ByD7FFNjexQrjHd8%2BnjABI3AU4Wl16TuF1qANGll81jsi5qu%2Bw6XIsCn4ijhU5FmCJpkV6BGNw410hfSf6JKBQ%2FUFxHGYBnWnmOwDwYQ%2BwzdHqO75HtiAMJfaC7ph32FSRJCENUhDHsLaJkL%2FX4wMF4%2BwA5bgAcrZE4sr0Cu9Jq9fxyrvBHWbNkMD5CEHWTjjT2m6r5D92jfmbbKJEWuMMAAAAABJRU5ErkJggg%3D%3D
78+
[tweet-badge]: https://img.shields.io/badge/tweet-%23reactnativebrownfield-blue.svg?style=flat-square&colorB=1DA1F2&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAUCAYAAACXtf2DAAAAAXNSR0IArs4c6QAAAaRJREFUOBGtlM8rBGEYx3cWtRHJRaKcuMtBSitxkCQ3LtzkP9iUUu5ODspRHLhRLtq0FxeicEBC2cOivcge%2FMgan3fNM8bbzL4zm6c%2BPT%2Fe7%2FO8887svrFYBWbbtgWzsAt3sAcpqJFxxF1QV8oJFqFPFst5dLWQAT87oTgPB7DtziFRT1EA4yZolsFkhwjGYFRO8Op0KD8HVe7unoB6PRTBZG8IctAmG1xrHcfkQ2B55sfI%2ByGMXSBqV71xZ8CWdxBxN6ThFuECDEAL%2Bc9HIzDYumVZ966GZnX0SzCZvEqTbkaGywkyFE6hKAsBPhFQ18uPUqh2ggJ%2BUor%2F4M%2F%2FzOC8g6YzR1i%2F8g4vvSI%2ByD7FFNjexQrjHd8%2BnjABI3AU4Wl16TuF1qANGll81jsi5qu%2Bw6XIsCn4ijhU5FmCJpkV6BGNw410hfSf6JKBQ%2FUFxHGYBnWnmOwDwYQ%2BwzdHqO75HtiAMJfaC7ph32FSRJCENUhDHsLaJkL%2FX4wMF4%2BwA5bgAcrZE4sr0Cu9Jq9fxyrvBHWbNkMD5CEHWTjjT2m6r5D92jfmbbKJEWuMMAAAAABJRU5ErkJggg%3D%3D
7879
[tweet]: https://twitter.com/intent/tweet?text=Check%20out%20react-native-brownfield!%20https://github.com/callstack/react-native-brownfield%20%F0%9F%91%8D
7980
[callstack-badge]: https://callstack.com/images/callstack-badge.svg
8081
[callstack]: https://callstack.com/open-source/?utm_source=github.com&utm_medium=referral&utm_campaign=rnbrownfield&utm_term=readme

docs/docs/brownie/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Brownie is in alpha stage and not yet released. APIs may change.
55
:::
66

7-
Brownie is a shared state management library for React Native brownfield apps. It enables seamless state synchronization between your React Native code and native iOS code.
7+
Brownie is a shared state management library for React Native brownfield apps. It enables seamless state synchronization between your React Native code and native code.
88

99
## Features
1010

img/brownfield-banner.jpg

116 KB
Loading

packages/brownie/README.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<a href="https://www.callstack.com/open-source?utm_campaign=generic&utm_source=github&utm_medium=referral&utm_content=brownie" align="center">
2+
<img alt="Brownie" src="https://github.com/callstack/react-native-brownfield/raw/refs/heads/main/img/brownie-banner.jpg">
3+
</a>
4+
5+
<p align="center">
6+
A shared state management library for React Native brownfield apps that enables seamless state synchronization between your React Native code and native code.
7+
</p>
8+
9+
---
10+
11+
[![Build Status][build-badge]][build]
12+
[![Version][version-badge]][package]
13+
[![MIT License][license-badge]][license]
14+
15+
[![PRs Welcome][prs-welcome-badge]][prs-welcome]
16+
[![Chat][chat-badge]][chat]
17+
[![Code of Conduct][coc-badge]][coc]
18+
[![Sponsored by Callstack][callstack-badge]][callstack]
19+
20+
[![tweet][tweet-badge]][tweet]
21+
22+
## Features
23+
24+
- **Shared State** - Single source of truth accessible from both TypeScript and Swift
25+
- **Type Safety** - Full type inference from TypeScript schema to generated Swift types
26+
- **React Integration** - `useStore` hook with selector support for optimal re-renders
27+
- **SwiftUI Integration** - `@UseStore` property wrapper for reactive UI updates
28+
- **UIKit Support** - Subscribe-based API for imperative UI updates
29+
30+
## Documentation
31+
32+
For full documentation, visit [our documentation](https://oss.callstack.com/react-native-brownfield/brownie/overview).
33+
34+
<a href="https://www.callstack.com/ebooks/incremental-react-native-adoption-in-native-apps?utm_campaign=brownfield&utm_source=github&utm_medium=referral&utm_content=react-native-brownfield" align="center">
35+
<img alt="Download a free copy of Incremental React Native adoption in native apps ebook" src="https://github.com/user-attachments/assets/ba42bb29-1e7a-4683-80c5-2602afb1a7e6">
36+
</a>
37+
38+
## Made with ❤️ at Callstack
39+
40+
React Native Brownfield is an open source project and will always remain free to use. If you think it's cool, please star it 🌟. [Callstack](https://callstack.com) is a group of React and React Native geeks, contact us at [hello@callstack.com](mailto:hello@callstack.com) if you need any help with these or just want to say hi!
41+
42+
Like the project? ⚛️ [Join the team](https://callstack.com/careers/?utm_campaign=Senior_RN&utm_source=github&utm_medium=readme) who does amazing stuff for clients and drives React Native Open Source! 🔥
43+
44+
<!-- badges -->
45+
46+
[build-badge]: https://img.shields.io/circleci/build/github/callstack/react-native-brownfield/master.svg?style=flat-square
47+
[build]: https://circleci.com/gh/callstack/react-native-brownfield
48+
[ci]: https://github.com/callstack/react-native-brownfield/actions/workflows/ci.yml/badge.svg
49+
[version-badge]: https://img.shields.io/npm/v/@callstack/react-native-brownfield.svg?style=flat-square
50+
[package]: https://www.npmjs.com/package/@callstack/react-native-brownfield
51+
[license-badge]: https://img.shields.io/npm/l/@callstack/react-native-brownfield.svg?style=flat-square
52+
[license]: https://opensource.org/licenses/MIT
53+
[prs-welcome-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
54+
[prs-welcome]: http://makeapullrequest.com
55+
[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
56+
[coc]: https://github.com/callstack/react-native-brownfield/blob/master/CODE_OF_CONDUCT.md
57+
[all-contributors-badge]: https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square
58+
[chat-badge]: https://img.shields.io/discord/613446453762719798.svg?style=flat-square&colorB=758ED3
59+
[chat]: https://discord.gg/2SR9Mua
60+
[tweet-badge]: https://img.shields.io/badge/tweet-%23reactnativebrownfield-blue.svg?style=flat-square&colorB=1DA1F2&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAUCAYAAACXtf2DAAAAAXNSR0IArs4c6QAAAaRJREFUOBGtlM8rBGEYx3cWtRHJRaKcuMtBSitxkCQ3LtzkP9iUUu5ODspRHLhRLtq0FxeicEBC2cOivcge%2FMgan3fNM8bbzL4zm6c%2BPT%2Fe7%2FO8887svrFYBWbbtgWzsAt3sAcpqJFxxF1QV8oJFqFPFst5dLWQAT87oTgPB7DtziFRT1EA4yZolsFkhwjGYFRO8Op0KD8HVe7unoB6PRTBZG8IctAmG1xrHcfkQ2B55sfI%2ByGMXSBqV71xZ8CWdxBxN6ThFuECDEAL%2Bc9HIzDYumVZ966GZnX0SzCZvEqTbkaGywkyFE6hKAsBPhFQ18uPUqh2ggJ%2BUor%2F4M%2F%2FzOC8g6YzR1i%2F8g4vvSI%2ByD7FFNjexQrjHd8%2BnjABI3AU4Wl16TuF1qANGll81jsi5qu%2Bw6XIsCn4ijhU5FmCJpkV6BGNw410hfSf6JKBQ%2FUFxHGYBnWnmOwDwYQ%2BwzdHqO75HtiAMJfaC7ph32FSRJCENUhDHsLaJkL%2FX4wMF4%2BwA5bgAcrZE4sr0Cu9Jq9fxyrvBHWbNkMD5CEHWTjjT2m6r5D92jfmbbKJEWuMMAAAAABJRU5ErkJggg%3D%3D
61+
[tweet]: https://twitter.com/intent/tweet?text=Check%20out%20react-native-brownfield!%20https://github.com/callstack/react-native-brownfield%20%F0%9F%91%8D
62+
[callstack-badge]: https://callstack.com/images/callstack-badge.svg
63+
[callstack]: https://callstack.com/open-source/?utm_source=github.com&utm_medium=referral&utm_campaign=rnbrownfield&utm_term=readme

packages/brownie/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@
5454
"!**/__tests__",
5555
"!**/__fixtures__",
5656
"!**/__mocks__",
57-
"!**/.*"
57+
"!**/.*",
58+
"README.md"
5859
],
5960
"publishConfig": {
6061
"access": "public",

packages/cli/README.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<a href="https://www.callstack.com/open-source?utm_campaign=generic&utm_source=github&utm_medium=referral&utm_content=react-native-brownfield" align="center">
2+
<img alt="Brownfield CLI" src="https://github.com/callstack/react-native-brownfield/raw/refs/heads/main/img/brownfield-banner.jpg">
3+
</a>
4+
5+
<p align="center">
6+
CLI for Brownie and Brownfield, a tool for generating state management code, packaging & publishing Brownfield artifacts.
7+
</p>
8+
9+
---
10+
11+
[![Build Status][build-badge]][build]
12+
[![Version][version-badge]][package]
13+
[![MIT License][license-badge]][license]
14+
15+
[![PRs Welcome][prs-welcome-badge]][prs-welcome]
16+
[![Chat][chat-badge]][chat]
17+
[![Code of Conduct][coc-badge]][coc]
18+
[![Sponsored by Callstack][callstack-badge]][callstack]
19+
20+
[![tweet][tweet-badge]][tweet]
21+
22+
## Features
23+
24+
- **Shared State** - Single source of truth accessible from both TypeScript and Swift
25+
- **Type Safety** - Full type inference from TypeScript schema to generated Swift types
26+
- **React Integration** - `useStore` hook with selector support for optimal re-renders
27+
- **SwiftUI Integration** - `@UseStore` property wrapper for reactive UI updates
28+
- **UIKit Support** - Subscribe-based API for imperative UI updates
29+
30+
## Documentation
31+
32+
For full documentation, visit [our documentation](https://oss.callstack.com/react-native-brownfield/brownie/overview).
33+
34+
<a href="https://www.callstack.com/ebooks/incremental-react-native-adoption-in-native-apps?utm_campaign=brownfield&utm_source=github&utm_medium=referral&utm_content=react-native-brownfield" align="center">
35+
<img alt="Download a free copy of Incremental React Native adoption in native apps ebook" src="https://github.com/user-attachments/assets/ba42bb29-1e7a-4683-80c5-2602afb1a7e6">
36+
</a>
37+
38+
## Made with ❤️ at Callstack
39+
40+
React Native Brownfield is an open source project and will always remain free to use. If you think it's cool, please star it 🌟. [Callstack](https://callstack.com) is a group of React and React Native geeks, contact us at [hello@callstack.com](mailto:hello@callstack.com) if you need any help with these or just want to say hi!
41+
42+
Like the project? ⚛️ [Join the team](https://callstack.com/careers/?utm_campaign=Senior_RN&utm_source=github&utm_medium=readme) who does amazing stuff for clients and drives React Native Open Source! 🔥
43+
44+
<!-- badges -->
45+
46+
[build-badge]: https://img.shields.io/circleci/build/github/callstack/react-native-brownfield/master.svg?style=flat-square
47+
[build]: https://circleci.com/gh/callstack/react-native-brownfield
48+
[ci]: https://github.com/callstack/react-native-brownfield/actions/workflows/ci.yml/badge.svg
49+
[version-badge]: https://img.shields.io/npm/v/@callstack/react-native-brownfield.svg?style=flat-square
50+
[package]: https://www.npmjs.com/package/@callstack/react-native-brownfield
51+
[license-badge]: https://img.shields.io/npm/l/@callstack/react-native-brownfield.svg?style=flat-square
52+
[license]: https://opensource.org/licenses/MIT
53+
[prs-welcome-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
54+
[prs-welcome]: http://makeapullrequest.com
55+
[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
56+
[coc]: https://github.com/callstack/react-native-brownfield/blob/master/CODE_OF_CONDUCT.md
57+
[all-contributors-badge]: https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square
58+
[chat-badge]: https://img.shields.io/discord/613446453762719798.svg?style=flat-square&colorB=758ED3
59+
[chat]: https://discord.gg/2SR9Mua
60+
[tweet-badge]: https://img.shields.io/badge/tweet-%23reactnativebrownfield-blue.svg?style=flat-square&colorB=1DA1F2&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAUCAYAAACXtf2DAAAAAXNSR0IArs4c6QAAAaRJREFUOBGtlM8rBGEYx3cWtRHJRaKcuMtBSitxkCQ3LtzkP9iUUu5ODspRHLhRLtq0FxeicEBC2cOivcge%2FMgan3fNM8bbzL4zm6c%2BPT%2Fe7%2FO8887svrFYBWbbtgWzsAt3sAcpqJFxxF1QV8oJFqFPFst5dLWQAT87oTgPB7DtziFRT1EA4yZolsFkhwjGYFRO8Op0KD8HVe7unoB6PRTBZG8IctAmG1xrHcfkQ2B55sfI%2ByGMXSBqV71xZ8CWdxBxN6ThFuECDEAL%2Bc9HIzDYumVZ966GZnX0SzCZvEqTbkaGywkyFE6hKAsBPhFQ18uPUqh2ggJ%2BUor%2F4M%2F%2FzOC8g6YzR1i%2F8g4vvSI%2ByD7FFNjexQrjHd8%2BnjABI3AU4Wl16TuF1qANGll81jsi5qu%2Bw6XIsCn4ijhU5FmCJpkV6BGNw410hfSf6JKBQ%2FUFxHGYBnWnmOwDwYQ%2BwzdHqO75HtiAMJfaC7ph32FSRJCENUhDHsLaJkL%2FX4wMF4%2BwA5bgAcrZE4sr0Cu9Jq9fxyrvBHWbNkMD5CEHWTjjT2m6r5D92jfmbbKJEWuMMAAAAABJRU5ErkJggg%3D%3D
61+
[tweet]: https://twitter.com/intent/tweet?text=Check%20out%20react-native-brownfield!%20https://github.com/callstack/react-native-brownfield%20%F0%9F%91%8D
62+
[callstack-badge]: https://callstack.com/images/callstack-badge.svg
63+
[callstack]: https://callstack.com/open-source/?utm_source=github.com&utm_medium=referral&utm_campaign=rnbrownfield&utm_term=readme

packages/cli/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
"!**/__tests__",
5454
"!**/__fixtures__",
5555
"!**/__mocks__",
56-
"!**/.*"
56+
"!**/.*",
57+
"README.md"
5758
],
5859
"publishConfig": {
5960
"access": "public"

packages/react-native-brownfield/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333
"typecheck": "tsc --noEmit",
3434
"build": "bob build",
3535
"dev": "nodemon --watch src --ext js,ts,json --exec \"bob build\"",
36-
"build:brownfield": "yarn run build"
36+
"build:brownfield": "yarn run build",
37+
"prepack": "cp ../../README.md ./README.md",
38+
"postpack": "rm ./README.md"
3739
},
3840
"keywords": [
3941
"react-native-brownfield",
@@ -57,7 +59,8 @@
5759
"!**/__tests__",
5860
"!**/__fixtures__",
5961
"!**/__mocks__",
60-
"!**/.*"
62+
"!**/.*",
63+
"README.md"
6164
],
6265
"publishConfig": {
6366
"access": "public"

0 commit comments

Comments
 (0)