Skip to content

Commit

Permalink
feat: useStream
Browse files Browse the repository at this point in the history
  • Loading branch information
nickadamson committed Oct 21, 2023
1 parent b614b67 commit b4fc4b0
Show file tree
Hide file tree
Showing 37 changed files with 1,919 additions and 741 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ module.exports = {
'dist/',
'*.config.*',
'src/lib/codegen/',
'src/lib/trade-interfaces/',
'**/*.cjs',
'docs',
'coverage',
'test',
'*.test.ts*',
],
rules: {
'unicorn/filename-case': 'off',
Expand Down
47 changes: 0 additions & 47 deletions .github/workflows/bump-version.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/deploy-docs.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Release

on:
release:
types: [released]

permissions:
contents: write # for github pages

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
submodules: true

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest

- name: Install packages, compile SDK, and build docs
run: |
pnpm i
pnpm build
pnpm gen-docs
- name: Deploy Docs to Github Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs

- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: pnpm audit signatures

# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'

- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm publish --access public --no-git-checks
42 changes: 0 additions & 42 deletions .github/workflows/semantic-release.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Test
name: Test

on:
push:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ dist
coverage

src/lib/codegen
src/lib/trade-interfaces

docs
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "trade-interfaces"]
path = src/lib/trade-interfaces
url = https://github.com/valorem-labs-inc/trade-interfaces.git
5 changes: 0 additions & 5 deletions .releaserc.json

This file was deleted.

10 changes: 10 additions & 0 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: v1
plugins:
- plugin: es
out: src/lib/codegen
opt:
- target=ts
- name: connect-query
out: src/lib/codegen
opt:
- target=ts
3 changes: 3 additions & 0 deletions buf.work.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
version: v1
directories:
- src/lib/trade-interfaces/proto/valorem/trade/v1
37 changes: 23 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,42 +23,51 @@
"scripts": {
"build": "pnpm clean && pnpm codegen && pnpm tsup",
"clean": "rm -rf ./dist",
"codegen": "wagmi generate",
"codegen": "rm -rf ./src/lib/codegen && wagmi generate && npx buf generate",
"format": "prettier --write \"**/*.{ts,tsx,md,json}\"",
"gen-docs": "typedoc",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prepare": "pnpm codegen",
"prepare": "git submodule update --init --recursive && pnpm codegen",
"prepublish": "pnpm build",
"semantic-release": "semantic-release",
"test": "vitest run --coverage"
},
"prettier": "@vercel/style-guide/prettier",
"dependencies": {
"@nickadamson/sdk": "0.0.11-dev22",
"@tanstack/query-core": "^5.0.0",
"@bufbuild/protobuf": "^1.3.3",
"@connectrpc/connect": "^1.1.2",
"@connectrpc/connect-query": "^0.5.3",
"@connectrpc/connect-web": "^1.1.2",
"@tanstack/query-core": "^4.36.1",
"@tanstack/react-query": "^4.36.1",
"@valorem-labs-inc/sdk": "^0.0.1",
"@wagmi/cli": "^1.5.2",
"@wagmi/core": "^1.4.5",
"abitype": "0.8.7",
"connectkit": "^1.5.3",
"siwe": "^2.1.4",
"viem": "^1.16.6",
"wagmi": "^1.4.4"
"wagmi": "^1.4.5"
},
"devDependencies": {
"@tanstack/react-query": "^5.0.0",
"@bufbuild/buf": "^1.27.1",
"@bufbuild/protoc-gen-es": "^1.3.3",
"@connectrpc/protoc-gen-connect-query": "^0.5.3",
"@testing-library/react": "^14.0.0",
"@testing-library/react-hooks": "^8.0.1",
"@types/node": "^20.8.5",
"@types/react": "^18.0.9",
"@types/react-dom": "^18.0.3",
"@types/node": "^20.8.7",
"@types/react": "^18.2.31",
"@types/react-dom": "^18.2.14",
"@vercel/style-guide": "^5.0.1",
"@vitest/coverage-v8": "^0.34.6",
"@wagmi/core": "^1.4.4",
"abitype": "0.10.1",
"eslint": "^8.51.0",
"eslint": "^8.52.0",
"happy-dom": "^12.9.1",
"jest-environment-jsdom": "^29.7.0",
"jsdom": "^22.1.0",
"prettier": "^3.0.3",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"semantic-release": "^22.0.5",
"ts-node": "^10.9.1",
"tsup": "^7.2.0",
Expand Down
Loading

0 comments on commit b4fc4b0

Please sign in to comment.