-
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move api-client as core's monorepo
Signed-off-by: Innei <[email protected]>
- Loading branch information
Showing
101 changed files
with
7,992 additions
and
299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,15 @@ | ||
assets/types/type.declare.ts | ||
|
||
node_modules | ||
dist | ||
out | ||
packages/*/node_modules | ||
packages/*/dist | ||
packages/*/out | ||
packages/*/lib | ||
packages/*/build | ||
packages/*/coverage | ||
packages/*/test | ||
packages/*/tests | ||
packages/*/esm | ||
packages/*/types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: Build @mx-space/api-client | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'package.json' | ||
- 'packages/api-client/**' | ||
pull_request: | ||
branches: [master, main] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14.x, 16.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Cache pnpm modules | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-pnpm-modules | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }} | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7.x.x | ||
run_install: true | ||
- run: pnpm run test | ||
- run: pnpm run package | ||
env: | ||
CI: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
node_modules | ||
dist | ||
out | ||
packages/*/node_modules | ||
packages/*/dist | ||
packages/*/out | ||
packages/*/lib | ||
packages/*/build | ||
packages/*/coverage | ||
packages/*/test | ||
packages/*/tests | ||
packages/*/esm | ||
packages/*/types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
esm | ||
lib | ||
dist | ||
build | ||
|
||
types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
registry=https://registry.npmjs.org | ||
|
||
strict-peer-dependencies=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { axiosAdaptor } from '~/adaptors/axios' | ||
|
||
import { testAdaptor } from '../helpers/adaptor-test' | ||
|
||
describe('test axios adaptor', () => { | ||
testAdaptor(axiosAdaptor) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import '../helpers/global-fetch' | ||
|
||
import { defaultKyAdaptor } from '~/adaptors/ky' | ||
|
||
import { testAdaptor } from '../helpers/adaptor-test' | ||
|
||
describe('test ky adaptor', () => { | ||
testAdaptor(defaultKyAdaptor) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { umiAdaptor } from '~/adaptors/umi-request' | ||
|
||
import { testAdaptor } from '../helpers/adaptor-test' | ||
|
||
describe('test umi-request adaptor', () => { | ||
testAdaptor(umiAdaptor) | ||
}) |
Oops, something went wrong.