Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor to a Lerna Monorepo #101

Merged
merged 36 commits into from
Jun 4, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
b5e403b
Add 'PromiEvent' type to improve developer flexibility for certain flows
smithki May 24, 2020
48f6379
Add mechanism for emitting payload-related events from the iframe
smithki May 24, 2020
3631472
Add structure for Lerna monorepo
smithki May 24, 2020
1ddc059
Build CDN bundle to the expected location
smithki May 24, 2020
82f6185
Add '@magic-sdk/types' package
smithki May 24, 2020
341972f
Cleanup tsconfigs
smithki May 24, 2020
05a3006
Remove Webpack & document development scripts
smithki May 24, 2020
b75fac0
Remove Webpack dependencies
smithki May 24, 2020
f1fc7b0
Split out SDK implementation into environment-specific entry-points
smithki May 25, 2020
bc00676
Adjust monorepo implementation to get into a working state on Web env…
smithki May 25, 2020
507a102
Adjust PromiEvent implementation & cleanup end-to-end
smithki May 26, 2020
0f552c5
Rename '@magic-sdk/core' to '@magic-sdk/provider'
smithki May 26, 2020
7431968
Extend from 'EventEmitter' for 'BaseModule'
smithki May 26, 2020
cb2638b
Default to 'void' if missing event definitions
smithki May 27, 2020
ef33cc8
Disallow simultaneous EventEmitter/Promise interface access
smithki May 27, 2020
8e977cd
Remove obsolete source code
smithki May 28, 2020
522f19c
Apply PromiEvent patches from 'feature/experimental-promievents' branch
smithki May 28, 2020
e570ade
Backport a few PromiEvent fixes to the monorepo branch
smithki May 31, 2020
61e976b
Start porting tests into each monorepo package
smithki May 31, 2020
d2896b3
Port core code tests to monorepo
smithki May 31, 2020
5288f3d
Port module tests to monorepo
smithki May 31, 2020
bc6f937
Port util tests to monorepo
smithki May 31, 2020
bccd624
Fix 'test.sh' script
smithki May 31, 2020
2bcffc0
Fix circular dependency that was breaking tests
smithki May 31, 2020
48ea79c
Add tests for magic-sdk (web entry-point)
smithki Jun 2, 2020
d6a4c48
Add @magic-sdk/react-native tests
smithki Jun 2, 2020
4aa6865
Update CircleCI config for monorepo
smithki Jun 2, 2020
da969b0
Remove old test files
smithki Jun 2, 2020
8be5b3e
Switch to use independent versioning scheme
smithki Jun 2, 2020
501e99e
Fix merge conflicts
smithki Jun 2, 2020
e0a57e8
Re-generate yarn.lock
smithki Jun 2, 2020
47065fd
Add individual CHANGELOGs and update README.md
smithki Jun 2, 2020
58c8eb2
Fix linter
smithki Jun 2, 2020
1962931
Update to pre-release versions
smithki Jun 2, 2020
ac5ed24
Bump canary versions
smithki Jun 3, 2020
d4d827a
Cleanup scripts
smithki Jun 4, 2020
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
Prev Previous commit
Next Next commit
Add individual CHANGELOGs and update README.md
  • Loading branch information
smithki committed Jun 2, 2020
commit 47065fd2e33570b7db8a4dbf236e791dd537f9ee
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Please note we have a **code of conduct**, please follow it in all your interact

## Opening a Pull Request

1. Update the **`Upcoming Changes`** section of [`CHANGELOG.md`](./CHANGELOG.md) with your fixes, changes, or additions. A maintainer will label your changes with a version number and release date once they are published.
1. Update the **`Upcoming Changes`** section of the relevante package's `CHANGELOG.md` with your fixes, changes, or additions. A maintainer will label your changes with a version number and release date once they are published.
2. Open a pull request from your fork/branch to the upstream `master` branch of _this_ repository.
3. A maintainer will review your code changes and offer feedback or suggestions if necessary. Once your changes are approved, a maintainer will merge the pull request for you and publish a release.

Expand Down
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,34 @@

<p align="center">
<a href="./LICENSE">License</a> ·
<a href="./CHANGELOG.md">Changelog</a> ·
<a href="./CONTRIBUTING.md">Contributing Guide</a>
</p>

## 📖 Documentation

See the [developer documentation](https://docs.magic.link) to learn how you can master the Magic SDK in a matter of minutes.

## 📦 Package Ecosystem

| Package directory | Package Name | Changelog | Description |
| ----------------- | ------------ | ------- | ----------- |
| [`/web`](./packages/web) | [`magic-sdk`](https://www.npmjs.com/package/magic-sdk) | [CHANGELOG](./packages/web/CHANGELOG.md) | Web/browser entry-point for Magic SDK. |
| [`/react-native`](./packages/react-native) | [`@magic-sdk/react-native`](https://www.npmjs.com/package/@magic-sdk/react-native) | [CHANGELOG](./packages/react-native/CHANGELOG.md) | React Native entry-point for Magic SDK. |
| [`/types`](./packages/types) | [`@magic-sdk/types`](https://www.npmjs.com/package/@magic-sdk/types) | [CHANGELOG](./packages/types/CHANGELOG.md) | Core typings shared between JavaScript entry-points of Magic SDK. |
| [`/provider`](./packages/provider) | [`@magic-sdk/provider`](https://www.npmjs.com/package/@magic-sdk/provider) | [CHANGELOG](./packages/provider/CHANGELOG.md) | Core business logic shared between JavaScript entry-points of Magic SDK. |

## 🔗 Installation

Integrating your app with Magic will require our client-side NPM package:

```bash
# Via NPM:
npm install --save magic-sdk
npm install --save magic-sdk # If you're targeting web browsers
npm install --save @magic-sdk/react-native # If you're targeting React Native

# Via Yarn:
yarn add magic-sdk
yarn add magic-sdk # If you're targeting web browsers
yarn add @magic-sdk/react-native # If you're targeting React Native
```

Alternatively, you can load via CDN with by adding a script tag to your app’s `<head>`:
Expand Down
29 changes: 29 additions & 0 deletions packages/provider/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## Upcoming Changes

#### Fixed

- Circle CI tag in readme is broken after namechange from MagicHQ to MagicLabs

#### Changed

- ...

#### Added

- ...

## `1.0.0` - 06/02/2020

This is the first release our changelog records. Future updates will be logged in the following format:

#### Fixed

- Bug fixes and patches will be described here.

#### Changed

- Changes (breaking or otherwise) to current APIs will be described here.

#### Added

- New features or APIs will be described here.
29 changes: 29 additions & 0 deletions packages/react-native/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## Upcoming Changes

#### Fixed

- Circle CI tag in readme is broken after namechange from MagicHQ to MagicLabs

#### Changed

- ...

#### Added

- ...

## `1.0.0` - 06/02/2020

This is the first release our changelog records. Future updates will be logged in the following format:

#### Fixed

- Bug fixes and patches will be described here.

#### Changed

- Changes (breaking or otherwise) to current APIs will be described here.

#### Added

- New features or APIs will be described here.
29 changes: 29 additions & 0 deletions packages/types/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## Upcoming Changes

#### Fixed

- Circle CI tag in readme is broken after namechange from MagicHQ to MagicLabs

#### Changed

- ...

#### Added

- ...

## `1.0.0` - 06/02/2020

This is the first release our changelog records. Future updates will be logged in the following format:

#### Fixed

- Bug fixes and patches will be described here.

#### Changed

- Changes (breaking or otherwise) to current APIs will be described here.

#### Added

- New features or APIs will be described here.
12 changes: 11 additions & 1 deletion CHANGELOG.md → packages/web/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#### Fixed

- Circle CI tag in readme is broken after namechange from MagicHQ to MagicLabs
- ...

#### Changed

Expand All @@ -12,6 +12,16 @@

- ...

## `2.0.0` - 06/02/2020

#### Fixed

- Circle CI tag in readme is broken after namechange from MagicHQ to MagicLabs

#### Changed

- Removed the `magic-sdk/react-native` entry-point. To use React Native with Magic SDK, install `@magic-sdk/react-native` instead. There are no breaking API changes related to public SDK methods.

## `1.4.0` - 05/14/2020

#### Added
Expand Down