Skip to content

Commit

Permalink
chore: add contributing guide and update package repository path (#73)
Browse files Browse the repository at this point in the history
* docs: add small contributing guide in readme

* docs: add release notes

* chore: update `expo-atlas` repository path

* docs: tweak the docs a bit

* docs: add missing links

* docs: add missing emoji

* docs: add missing readme references
  • Loading branch information
byCedric authored Aug 31, 2024
1 parent 014fe45 commit 0ed016e
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 15 deletions.
46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,52 @@ $ npx expo-atlas
$ npx expo-atlas ./path/to/atlas.jsonl
```

## 🏛️ Project structure

- [`apps/example`](./apps/example) — A default Expo project, with Atlas enabled by default
- [`packages/expo-atlas`](./packages/expo-atlas) — The core package of Atlas, including Metro data handling and the CLI command
- [`packages/expo-atlas-ui`](./packages/expo-atlas-ui) — The web-only Expo project representing the UI of Atlas

## 🧑‍💻 Contributing to Atlas

Atlas is open source and contributions are welcome.

### 🏗️ Preparing the repository

- Clone this repository
- `$ bun install` — Atlas uses [Bun](https://bun.sh/)'s package manager, ensure you have it installed

### 🎨 Changing the Atlas UI

If you need to change anything related to the Atlas UI, you need to:

- `$ bun start` — This builds [**expo-atlas**](./packages/expo-atlas) and starts [**expo-atlas-ui**](./packages/expo-atlas-ui) with a [default fixture](./packages/expo-atlas-ui/_fixtures)
- `$ open http://localhost:8081` — To view [**expo-atlas-ui**](./packages/expo-atlas-ui) in your browser
- Make any change in [**expo-atlas-ui**](./packages/expo-atlas-ui)

### 📊 Changing the Atlas data

If you need to change anything related to extracting data from Metro, you need to:

- `$ cd packages/expo-atlas` — Make the changes in [**expo-atlas**](./packages/expo-atlas)
- `$ bun start` — Build [**expo-atlas**](./packages/expo-atlas) on any change
- Open another terminal
- `$ cd apps/example` — Atlas has a default Expo project to experiment with
- `$ bun start` — The example project automatically enables Atlas through [**apps/example/.env**](./apps/example/.env)
- `$ bun expo export` — The example project can also export an **.expo/atlas.jsonl** file
- `$ bun expo-atlas` — When exporting an **.expo/atlas.jsonl** file, you can open Atlas using this export

### 📦 Releasing a new version

If you need to release a new version of Atlas, you need to:

- Make sure you have no uncomitted changes and have checked out **main**
- Update the package version in [**expo-atlas/package.json**](./packages/expo-atlas/package.json)
- Commit the new version to **main**
- `$ bun install` — Make sure to install all dependencies
- `$ bun run build` — Build both [**expo-atlas**](./packages/expo-atlas) and [**expo-atlas-ui**](./packages/expo-atlas-ui)
- `$ cd packages/expo-atlas && npm publish` — Release a new version of Atlas

<div align="center">
<br />
with&nbsp;❤️&nbsp;&nbsp;<strong>Expo</strong>
Expand Down
14 changes: 2 additions & 12 deletions apps/example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ This is an [Expo](https://expo.dev) project created with [`create-expo-app`](htt
1. Install dependencies

```bash
npm install
bun install
```

2. Start the app

```bash
npx expo start
bun expo start
```

In the output, you'll find options to open the app in a
Expand All @@ -25,16 +25,6 @@ In the output, you'll find options to open the app in a

You can start developing by editing the files inside the **app** directory. This project uses [file-based routing](https://docs.expo.dev/router/introduction).

## Get a fresh project

When you're ready, run:

```bash
npm run reset-project
```

This command will move the starter code to the **app-example** directory and create a blank **app** directory where you can start developing.

## Learn more

To learn more about developing your project with Expo, look at the following resources:
Expand Down
3 changes: 3 additions & 0 deletions packages/expo-atlas-ui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Expo Atlas

See the root [README](../../README.md) for more information.
3 changes: 3 additions & 0 deletions packages/expo-atlas/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Expo Atlas

See the root [README](../../README.md) for more information.
9 changes: 6 additions & 3 deletions packages/expo-atlas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
"version": "0.3.14",
"description": "Inspect bundle contents, on module level, from Metro",
"keywords": [
"bundle",
"visualizer",
"explorer",
"expo",
"atlas",
"devtools"
],
"bin": "build/src/cli/bin.js",
Expand All @@ -21,13 +23,14 @@
"static",
"webui/dist"
],
"homepage": "https://github.com/expo/expo-atlas",
"homepage": "https://github.com/expo/expo-atlas#readme",
"bugs": {
"url": "https://github.com/expo/expo-atlas/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/expo/expo-atlas"
"url": "https://github.com/expo/expo-atlas",
"directory": "packages/expo-atlas"
},
"scripts": {
"build": "tsc",
Expand Down

0 comments on commit 0ed016e

Please sign in to comment.