Skip to content

Commit 32b6aee

Browse files
Hugo PerezHugo Perez
authored andcommitted
feat: add platform-agnostic API client for Sovereign Network
Implement core API client with config providers for Electron, React Native, and browser environments Add test coverage for core functionality and config providers Set up CI workflow for testing and coverage reporting Configure build system with TypeScript and package exports
0 parents  commit 32b6aee

27 files changed

+17465
-0
lines changed

.github/workflows/coverage.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Coverage
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
pull_request:
7+
branches: [ main, develop ]
8+
9+
jobs:
10+
coverage:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: '18'
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Run tests with coverage
25+
run: npm run test:coverage
26+
27+
- name: Upload coverage to Codecov
28+
uses: codecov/codecov-action@v3
29+
with:
30+
token: ${{ secrets.CODECOV_TOKEN }}
31+
files: ./coverage/coverage-final.json
32+
flags: unittests
33+
name: codecov-umbrella
34+
fail_ci_if_error: false

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: '18'
19+
20+
- name: Install dependencies
21+
run: npm install
22+
23+
- name: Build
24+
run: npm run build
25+
26+
- name: Run tests
27+
run: npm test
28+
29+
- name: Release
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
33+
run: npx semantic-release

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
node_modules/
2+
dist/
3+
.env
4+
.env.local
5+
.env.*.local
6+
.npmrc
7+
!.npmrc.example
8+
*.log
9+
.DS_Store
10+
coverage/
11+
.idea/
12+
.vscode/
13+
*.swp
14+
*.swo
15+
.claude-memory.md

.npmrc.example

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# NPM Configuration Example
2+
# This file shows optional npm configuration
3+
# Most users do NOT need to customize this for installation
4+
5+
# Public registry (default, no configuration needed)
6+
# registry=https://registry.npmjs.org/
7+
8+
# Optional: Authentication token for npm (only if publishing)
9+
# //registry.npmjs.org/:_authToken=YOUR_NPM_TOKEN
10+
11+
# Optional: Peer dependency handling
12+
# legacy-peer-deps=true

.releaserc.json

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

0 commit comments

Comments
 (0)