Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,36 @@ yarn add -D react-native-owl
npm install -D react-native-owl
```

## Configuration file

The config file - which unless specified in the cli should live in `./owl.config.json` - is used to descript how Owl should run your app and your tests. Below you can find all the options the can be specified.

| Name | Required | Description |
| ------------------ | -------- | ------------------------------------------------------------ |
| **ios config** | | |
| `ios.workspace` | true | Path to the `.xcworkspace` file of your react-native project |
| **android config** | | |
| - | | |

## CLI

### Building the app

##### Options

| Name | Required | Choices | Description |
| ---------- | -------- | --------------- | ---------------------------------------- |
| `platform` | true | `ios`,`android` | The platform the app should be built on. |
| Name | Required | Default | Choices | Description |
| ---------- | -------- | ----------------- | --------------- | --------------------------------------- |
| `config` | false | ./owl.config.json | - | Path to the configuration file |
| `platform` | true | - | `ios`,`android` | The platform the app should be built on |

```bash
owl build --platform ios
```
owl build --platform ios --config ./owl.config.json
```

### Running the tests

```
owl test --platform ios
owl test --platform ios --config ./owl.config.json
```

[github-image]: https://github.com/FormidableLabs/react-native-owl/workflows/Run%20Tests/badge.svg
Expand Down