Skip to content

Commit

Permalink
feat: Introduce a typescript sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Dec 30, 2024
1 parent 8df4240 commit 5d8d2de
Show file tree
Hide file tree
Showing 8 changed files with 1,742 additions and 54 deletions.
1 change: 1 addition & 0 deletions packages/sdk/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
4 changes: 4 additions & 0 deletions packages/sdk/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.turbo/**
src/**
vite.config.mts
tsconfig.json
47 changes: 47 additions & 0 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@hoarderapp/sdk",
"version": "0.20.0",
"description": "Typescript SDK for Hoarder",
"license": "GNU Affero General Public License version 3",
"keywords": [
"hoarder",
"sdk"
],
"exports": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"devDependencies": {
"@hoarder/eslint-config": "workspace:^0.2.0",
"@hoarder/prettier-config": "workspace:^0.1.0",
"@hoarder/tsconfig": "workspace:^0.1.0",
"@tsconfig/node21": "^21.0.1",
"tsx": "^4.7.1",
"vite": "^5.1.0",
"vite-plugin-dts": "^4.4.0"
},
"scripts": {
"build": "vite build",
"run": "tsx src/index.ts",
"lint": "eslint .",
"format": "prettier . --ignore-path ../../.prettierignore",
"typecheck": "tsc --noEmit"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hoarder-app/hoarder.git",
"directory": "packages/sdk"
},
"eslintConfig": {
"root": true,
"extends": [
"@hoarder/eslint-config/base"
],
"ignorePatterns": [
"src/hoarder-api.d.ts"
]
},
"prettier": "@hoarder/prettier-config",
"dependencies": {
"openapi-fetch": "^0.13.3"
}
}
Loading

0 comments on commit 5d8d2de

Please sign in to comment.