Skip to content

Commit 042197b

Browse files
committed
feat: shared pkg
0 parents  commit 042197b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+22201
-0
lines changed

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Semantic Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
issues: write
14+
pull-requests: write
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
persist-credentials: false
20+
21+
- name: Set up pnpm
22+
uses: pnpm/action-setup@v4
23+
with:
24+
version: 10.17.1
25+
run_install: false
26+
27+
- name: Download deps
28+
shell: bash
29+
run: pnpm install
30+
31+
- name: package build
32+
shell: bash
33+
run: pnpm build
34+
35+
- name: Semantic Release
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
run: pnpm semantic-release

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
**/node_modules
2+
**/build
3+
**/dist
4+
**/.turbo
5+
.pnpm-store

.releaserc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"branches": ["main"],
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
6+
"@semantic-release/github"
7+
]
8+
}

api/README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# @vspo-lab/api
2+
3+
API client package for interacting with Vspo Portal backend services.
4+
5+
## Installation
6+
7+
```bash
8+
pnpm add @vspo-lab/api
9+
```
10+
11+
## Usage
12+
13+
```typescript
14+
import { apiClient } from '@vspo-lab/api';
15+
16+
// Example usage
17+
const response = await apiClient.someEndpoint();
18+
```
19+
20+
## Dependencies
21+
22+
- @vspo-lab/error: workspace package
23+
- axios: ^1.9.0
24+
- axios-retry: ^4.5.0
25+
26+
## Development
27+
28+
```bash
29+
# Build the package
30+
pnpm build
31+
32+
# Generate OpenAPI types
33+
pnpm generate-openapi
34+
```
35+
36+
## Version
37+
38+
Current version: 0.1.0

api/package.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "@vspo-lab/api",
3+
"version": "0.1.0",
4+
"main": "./dist/index.js",
5+
"types": "./dist/index.d.ts",
6+
"module": "./dist/index.mjs",
7+
"files": [
8+
"./dist/**"
9+
],
10+
"description": "",
11+
"keywords": [],
12+
"scripts": {
13+
"build": "tsup",
14+
"generate-openapi": "orval --input ../../service/server/docs/openapi.json --output ./src/gen/openapi.ts"
15+
},
16+
"author": "sugar-cat7",
17+
"license": "MIT",
18+
"devDependencies": {
19+
"orval": "^7.9.0",
20+
"tsup": "catalog:",
21+
"typescript": "catalog:"
22+
},
23+
"dependencies": {
24+
"@vspo-lab/error": "workspace:^",
25+
"axios": "^1.9.0",
26+
"axios-retry": "^4.5.0"
27+
}
28+
}

0 commit comments

Comments
 (0)