Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
d5d4d26
Initial work: Tooling configs + basic @joystream/sdk-core/query module
Lezek123 Feb 25, 2025
0f2369e
Add private:true to root package.json
Lezek123 Feb 25, 2025
dec0c9b
yarn set version (fix GH workflows)
Lezek123 Feb 25, 2025
2ea8742
Add @types/node dependency
Lezek123 Feb 25, 2025
967ec0d
Add --verbose flag in CI (yarn)
Lezek123 Feb 25, 2025
372b152
Add --check-cache and --check-resolutions in CI (yarn)
Lezek123 Feb 25, 2025
0eba160
CI: Remove `--immutable` and add `git diff` check for debugging yarn.…
Lezek123 Feb 25, 2025
29cbbbf
CI: add explicit --no-immutable (yarn)
Lezek123 Feb 25, 2025
fd5de1c
CI: debugging - add `yarn config`
Lezek123 Feb 25, 2025
628a179
CI: Restore yarn --immutable, remove `__WIP__` packages
Lezek123 Feb 25, 2025
ebb1c59
Update yarn.lock
Lezek123 Feb 25, 2025
516c15f
generateApis.ts: Fix module import on Windows
Lezek123 Feb 25, 2025
6a6ecaa
Pagination in QueryApi, testing setup w/ Orion, tests in CI checks
Lezek123 Feb 26, 2025
cf67689
Add prettierignore & run prettier
Lezek123 Feb 26, 2025
b017841
Keys module + example apps
Lezek123 Feb 28, 2025
ca4be03
Update eslint config
Lezek123 Mar 6, 2025
65a3c60
Fix CI checks, run tests only on Ubuntu (Mac doesn't have docker)
Lezek123 Mar 6, 2025
e9d1854
Attempt to fix example building CI on windows
Lezek123 Mar 6, 2025
0064692
Chain module: BlockUtils
Lezek123 Mar 10, 2025
a13b0ae
Orion API: Fix default selection for StorageDataObject
Lezek123 Mar 10, 2025
cab2989
Create tarball for testing purposes
Lezek123 Mar 10, 2025
a85c6c5
QueryApi: Slightly change interface
Lezek123 Mar 10, 2025
919d83b
Update tarball
Lezek123 Mar 10, 2025
d65f558
QueryApi: Make `select` optional in `paginate`
Lezek123 Mar 10, 2025
effdd61
Fix pagination typings for QueryNode
Lezek123 Mar 10, 2025
0a213ec
QueryApi pagination: add `fetch` method
Lezek123 Mar 10, 2025
c5761f0
QueryApi: Fix TS intellisense, add a few tests
Lezek123 Mar 10, 2025
e7f37c2
Use offset pagination in QueryNode
Lezek123 Mar 10, 2025
2c0a733
Update tarball
Lezek123 Mar 10, 2025
f7acbc9
Offset pagination: _hasNextPage trick
Lezek123 Mar 10, 2025
ae6cb2a
QueryApi: Add method overrides for stronger typing
Lezek123 Mar 10, 2025
8fc1e55
QueryApi: Yet another typings refactorization
Lezek123 Mar 10, 2025
21deac8
Add support for TypeScript CommonJS imports
Lezek123 Mar 10, 2025
632c34d
Init docusaurus, add Query module docs
Lezek123 Mar 11, 2025
f6f8c5b
GitHub pages deployment workflow
Lezek123 Mar 11, 2025
8efcf39
Docs: Update yarn.lock
Lezek123 Mar 11, 2025
18b89fc
Make QN/Orion examples runnable in docs, remove `query-node` example …
Lezek123 Mar 12, 2025
f5ab959
Update eslint config (ignore .docusaurus)
Lezek123 Mar 12, 2025
1187cca
Update yarn.lock
Lezek123 Mar 12, 2025
b108f1b
Update examples CI
Lezek123 Mar 12, 2025
7f14854
Fix docs editor styles
Lezek123 Mar 12, 2025
9cc6289
CI fixes and utils, fix /examples/keys-reach
Lezek123 Mar 12, 2025
a5c153f
Add tests for docs code snippets
Lezek123 Mar 12, 2025
e568cde
QueryApi: Use pagination in byMany
Lezek123 Mar 12, 2025
294f217
Separate job for testing code snippets
Lezek123 Mar 12, 2025
ce02405
Adjust GitHub workflows
Lezek123 Mar 12, 2025
783dc77
Adjust GitHub workflows part 2
Lezek123 Mar 12, 2025
04a61a9
Document the keys module
Lezek123 Mar 13, 2025
7e22736
Deploy docs on push to main/dev
Lezek123 Mar 13, 2025
304d058
Update example builds, package.tgz and yarn.lock
Lezek123 Mar 13, 2025
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
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.5/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
40 changes: 40 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Checks
on: [push, pull_request]

jobs:
build:
name: Build
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Install dependencies
run: yarn install --immutable
- name: Run codegen
run: yarn codegen
- name: Run build
run: yarn build
lint:
name: Lint
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Install dependencies
run: yarn install --immutable
- name: Run codegen
run: yarn codegen
- name: Run lint
run: yarn lint
44 changes: 44 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Deploy docs to GitHub Pages

on:
push:
branches:
- main
- dev
workflow_dispatch:

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Install dependencies
working-directory: ./docs
run: yarn install --immutable
- name: Run build
working-directory: ./docs
run: yarn build
- name: Upload build artifacts
uses: actions/upload-pages-artifact@v3
with:
path: 'docs/build'
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
66 changes: 66 additions & 0 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Examples
on: [push, pull_request]

jobs:
build:
name: Build
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Install dependencies
run: yarn install --immutable
- name: Run codegen
run: yarn codegen
- name: Run build
run: yarn build
- name: Build examples
run: yarn build:examples
- name: Ensure the repository contains up-to-date example builds
run: ./scripts/check-git-diff.sh
run_ts:
name: Run examples (TypeScript)
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Install dependencies
run: yarn install --immutable
- name: Run codegen
run: yarn codegen
- name: Run examples
run: echo "TBD"
run_js:
name: Run examples (JavaScript)
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Install dependencies
run: yarn install --immutable
- name: Run codegen
run: yarn codegen
- name: Run build
run: yarn build
- name: Build examples
run: yarn build:examples
- name: Run examples
run: echo "TBD"
43 changes: 43 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Tests
on: [push, pull_request]

jobs:
test-sdk:
name: SDK Tests
strategy:
matrix:
os: ['ubuntu-latest']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Install dependencies
run: yarn install --immutable
- name: Run codegen
run: yarn codegen
- name: Run build
run: yarn build
- name: Setup testing environment
run: yarn test:setup
- name: Run tests
run: yarn test:sdk
test-snippets:
name: Docs code snippets tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Install dependencies
run: yarn install --immutable
- name: Install /docs dependencies
working-directory: ./docs
run: yarn install --immutable
- name: Test snippets
run: yarn test:snippets
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
node_modules
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
examples/**/.env
**/__generated__
**/lib
**/*.tsbuildinfo
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.yarn
**/schema.graphql
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.workingDirectories": [".", "./packages/*"],
"editor.formatOnSave": true
}
934 changes: 934 additions & 0 deletions .yarn/releases/yarn-4.6.0.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.6.0.cjs
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# sdk
Cre functionality needed to create Joystream apps
# Joystream SDK

https://classic.yarnpkg.com/lang/en/docs/
https://jestjs.io/docs
https://changesets-docs.vercel.app/
https://eslint.org/docs/latest/
https://prettier.io/docs/
21 changes: 21 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Dependencies
/node_modules

# Production
/build

# Generated files
.docusaurus
.cache-loader

# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
.yarn/install-state.gz
41 changes: 41 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Website

This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.

### Installation

```
$ yarn
```

### Local Development

```
$ yarn start
```

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

### Build

```
$ yarn build
```

This command generates static content into the `build` directory and can be served using any static contents hosting service.

### Deployment

Using SSH:

```
$ USE_SSH=true yarn deploy
```

Not using SSH:

```
$ GIT_USER=<Your GitHub username> yarn deploy
```

If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
8 changes: 8 additions & 0 deletions docs/docs/core/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"label": "@joystream/sdk-core",
"position": 2,
"link": {
"type": "generated-index",
"description": "Core utilities for Joystream development"
}
}
Binary file added docs/docs/core/keys-react.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading