Skip to content

Commit

Permalink
Push
Browse files Browse the repository at this point in the history
  • Loading branch information
PuruVJ committed Jul 1, 2024
1 parent 62fe4f7 commit 6be60a3
Show file tree
Hide file tree
Showing 23 changed files with 31,422 additions and 68,471 deletions.
11 changes: 6 additions & 5 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
## Description of Changes
*Describe what has been changed, any new features or bug fixes*

## API
_Describe what has been changed, any new features or bug fixes_

- [ ] This is an API breaking change to the SDK
## API

*If the API is breaking, please state below what will break*
- [ ] This is an API breaking change to the SDK

_If the API is breaking, please state below what will break_

## Requires SpacetimeDB PRs
*List any PRs here that are required for this SDK change to work*

_List any PRs here that are required for this SDK change to work_
32 changes: 21 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,33 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: lts/*
node-version: 18

- name: Cache Yarn dependencies
uses: actions/cache@v2
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: .yarn/cache
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-pnpm-store-
- uses: pnpm/action-setup@v4
with:
version: 9
run_install: true

- name: Install dependencies
run: yarn install --immutable
- name: Lint
run: pnpm lint

- name: Run tests
run: yarn test
run: pnpm test
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

11 changes: 11 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": false,
"arrowParens": "always",
"jsxSingleQuote": false,
"trailingComma": "es5",
"endOfLine": "auto",
"printWidth": 80
}
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"[Material Theme Darker]": {},
"minimap.background": "#00000000",
"scrollbar.shadow": "#00000000"
}
},
"typescript.tsdk": "node_modules/typescript/lib"
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ This repository contains the TypeScript SDK for SpacetimeDB. The SDK allows to i

### Installation

The SDK is an NPM package, thus you can use your package manager of choice like NPM or Yarn, for example:
The SDK is an NPM package, thus you can use your package manager of choice like NPM or PNPM, for example:

```
npm install --save @clockworklabs/spacetimedb-sdk
pnpm add @clockworklabs/spacetimedb-sdk
```

You can use the package in the browser, using a bundler like webpack of vite, and in terminal applications
Expand Down
Loading

0 comments on commit 6be60a3

Please sign in to comment.