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

Add sdks workspace, update README #677

Merged
merged 6 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
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
10 changes: 5 additions & 5 deletions .github/workflows/js-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

pull_request:
paths:
- "packages/js-sdk/**"
- "sdks/js-sdk/**"
- ".github/workflows/js-sdk.yml"
- "dev/**"
- ".node-version"
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Install dependencies
run: yarn
- name: Typecheck
run: yarn turbo run typecheck --filter='./packages/js-sdk'
run: yarn turbo run typecheck --filter='./sdks/js-sdk'

lint:
name: Lint
Expand All @@ -51,7 +51,7 @@ jobs:
- name: Install dependencies
run: yarn
- name: Lint
run: yarn turbo run lint --filter='./packages/js-sdk'
run: yarn turbo run lint --filter='./sdks/js-sdk'

test:
name: Test
Expand All @@ -73,7 +73,7 @@ jobs:
- name: Sleep for 5 seconds
run: sleep 5s
- name: Run tests
run: yarn turbo run test --filter='./packages/js-sdk'
run: yarn turbo run test --filter='./sdks/js-sdk'

build:
name: Build
Expand All @@ -91,4 +91,4 @@ jobs:
- name: Install dependencies
run: yarn
- name: Build
run: yarn turbo run build --filter='./packages/js-sdk'
run: yarn turbo run build --filter='./sdks/js-sdk'
10 changes: 5 additions & 5 deletions .github/workflows/mls-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

pull_request:
paths:
- "packages/mls-client/**"
- "sdks/mls-client/**"
- ".github/workflows/mls-client.yml"
- "dev/**"
- ".node-version"
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Install dependencies
run: yarn
- name: Typecheck
run: yarn turbo run typecheck --filter='./packages/mls-client'
run: yarn turbo run typecheck --filter='./sdks/mls-client'

lint:
name: Lint
Expand All @@ -51,7 +51,7 @@ jobs:
- name: Install dependencies
run: yarn
- name: Lint
run: yarn turbo run lint --filter='./packages/mls-client'
run: yarn turbo run lint --filter='./sdks/mls-client'

test:
name: Test
Expand All @@ -73,7 +73,7 @@ jobs:
- name: Sleep for 5 seconds
run: sleep 5s
- name: Run tests
run: yarn turbo run test --filter='./packages/mls-client'
run: yarn turbo run test --filter='./sdks/mls-client'

build:
name: Build
Expand All @@ -91,4 +91,4 @@ jobs:
- name: Install dependencies
run: yarn
- name: Build
run: yarn turbo run build --filter='./packages/mls-client'
run: yarn turbo run build --filter='./sdks/mls-client'
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ next-env.d.ts
.cache

# Benchmark results
packages/js-sdk/bench/results
sdks/js-sdk/bench/results
24 changes: 0 additions & 24 deletions .vscode/launch.json

This file was deleted.

1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"editor.tabSize": 2,
"editor.detectIndentation": false,
"files.insertFinalNewline": true,
"cSpell.words": ["Ciphertext", "Waku", "authn"],
"eslint.workingDirectories": [
{
"mode": "auto"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# XMTP TypeScript

This is the official repository for XMTP TypeScript SDKs and content types, powered by [Turborepo](https://turbo.build/repo). All content types can be used with these SDKs.
This is the official repository for XMTP client SDKs, content types, and packages, written in TypeScript and powered by [Turborepo](https://turbo.build/repo).

To learn more about the contents of this repository, see this README and the READMEs provided in workspace directories.
To learn more about the contents of this repository, see this README and the READMEs provided in each workspace directory.

## What's inside?

### SDKs

- [`js-sdk`](https://github.com/xmtp/xmtp-js/blob/main/packages/js-sdk): XMTP JS client SDK for Node and the browser
- [`js-sdk`](https://github.com/xmtp/xmtp-js/blob/main/sdks/js-sdk): XMTP JS client SDK for Node and the browser

### Content types

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"workspaces": [
"content-types/*",
"packages/*",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is packages/* needed anymore?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good callout, yep! i'm going to migrate some packages from other repos into this one and use the packages workspace for them.

"sdks/*",
"shared/*"
],
"scripts": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"bench": "yarn build:bench && node dist/bench/index.cjs",
"build": "yarn clean:dist && rollup -c",
"build:bench": "rollup -c rollup.config.bench.js",
"build:docs": "cd ../../ && yarn build && cd packages/js-sdk && yarn clean:docs && mkdir -p tmp && cp README.md tmp/ && sed -i.bak '/badge.svg/d' tmp/README.md && typedoc",
"build:docs": "yarn clean:docs && mkdir -p tmp && cp README.md tmp/ && sed -i.bak '/badge.svg/d' tmp/README.md && typedoc",
"clean": "rimraf .turbo &&yarn clean:artifacts && yarn clean:dist && yarn clean:docs && yarn clean:deps",
"clean:artifacts": "rimraf docs tmp package.tgz",
"clean:deps": "rimraf node_modules",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2704,9 +2704,9 @@ __metadata:
languageName: node
linkType: hard

"@xmtp/mls-client@workspace:packages/mls-client":
"@xmtp/mls-client@workspace:sdks/mls-client":
version: 0.0.0-use.local
resolution: "@xmtp/mls-client@workspace:packages/mls-client"
resolution: "@xmtp/mls-client@workspace:sdks/mls-client"
dependencies:
"@rollup/plugin-json": "npm:^6.1.0"
"@rollup/plugin-typescript": "npm:^12.1.0"
Expand Down Expand Up @@ -2813,9 +2813,9 @@ __metadata:
languageName: node
linkType: hard

"@xmtp/xmtp-js@workspace:^, @xmtp/xmtp-js@workspace:packages/js-sdk":
"@xmtp/xmtp-js@workspace:^, @xmtp/xmtp-js@workspace:sdks/js-sdk":
version: 0.0.0-use.local
resolution: "@xmtp/xmtp-js@workspace:packages/js-sdk"
resolution: "@xmtp/xmtp-js@workspace:sdks/js-sdk"
dependencies:
"@metamask/providers": "npm:^17.1.1"
"@noble/secp256k1": "npm:1.7.1"
Expand Down
Loading