-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(lint): add
tslint
and prettier
- Loading branch information
Showing
32 changed files
with
1,741 additions
and
916 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
semi: false | ||
singleQuote: true | ||
overrides: | ||
- files: '*.{ts,js}' | ||
options: | ||
useTabs: true |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,47 @@ | ||
|
||
## Environment | ||
|
||
This project is a Yarn workspace, npm is not supported. To install dependencies run : | ||
This project is a Yarn workspace, npm is not supported. To install dependencies run : | ||
|
||
```bash | ||
$ yarn | ||
``` | ||
|
||
### Useful commands | ||
### Building | ||
|
||
- Build everything: | ||
```bash | ||
$ yarn build | ||
``` | ||
- Build the `@segment/react-native` package: | ||
```bash | ||
$ yarn core build | ||
``` | ||
- Build the `@segment/react-native-*` packages: | ||
```bash | ||
$ yarn integrations build | ||
``` | ||
- Build the test application for iOS and Android: | ||
```bash | ||
$ yarn test-app build | ||
``` | ||
- Launch these three steps one by one: | ||
```bash | ||
$ yarn build | ||
``` | ||
|
||
## Testing | ||
|
||
```bash | ||
$ yarn test | ||
``` | ||
|
||
### Architecture | ||
|
||
- `packages/core`: the `@segment/react-native` module | ||
- `docs`: the generated TypeScript documentation, commited using a `lint-staged` hook | ||
- `packages/integration-build`: | ||
- `src`: JavaScript module | ||
- `ios`: iOS native module | ||
- `android`: Android native module | ||
- `packages/integrations`: | ||
- `integrations.yml`: the unique source of truth for supported integrations | ||
- `generators`: a set of generators using `integrations.yml` | ||
- `src`: a set of generators using `integrations.yml` | ||
- `gen-integrations.js`: generates `@segment/react-native-*` packages in `build/` | ||
- `gen-readme.js`: updates `README.md` [Integrations](README.md#integrations) section | ||
- `test-app` | ||
- `test-app`: | ||
- `project`: the generated react-native test-app root |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
|
||
|
||
## Index | ||
|
||
### Modules | ||
|
||
* [ChainedConfiguration](modules/analytics.chainedconfiguration.md) | ||
|
||
### Classes | ||
|
||
* [Client](classes/analytics.client.md) | ||
|
||
### Type aliases | ||
|
||
* [Integration](#integration) | ||
* [WriteKey](#writekey) | ||
|
||
--- | ||
|
||
## Type aliases | ||
|
||
<a id="integration"></a> | ||
|
||
### Integration | ||
|
||
**ΤIntegration**: * `function` | `object` | ||
* | ||
|
||
*Defined in analytics.ts:170* | ||
|
||
___ | ||
<a id="writekey"></a> | ||
|
||
### WriteKey | ||
|
||
**ΤWriteKey**: * `string` | `object` | ||
* | ||
|
||
*Defined in analytics.ts:172* | ||
|
||
___ | ||
|
Oops, something went wrong.