Skip to content

Commit

Permalink
add rest fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
51ngul4r1ty committed Feb 10, 2024
1 parent ea44374 commit 9b5e902
Show file tree
Hide file tree
Showing 21 changed files with 10,436 additions and 16 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache: "npm"
- name: Node & NPM versions
run: |
echo Node Version
Expand All @@ -26,10 +26,18 @@ jobs:
echo
- name: Install NPM packages
run: npm ci -ws
- name: Build API Types Package
run: |
echo Building...
npm run build-pkg:api-types
- name: Build Rich Types Package
run: |
echo Building...
npm run build-pkg:rich-types
- name: Build Rest Fetch Package
run: |
echo Building...
npm run build-pkg:rest-fetch
- name: Build Client SDK
run: |
echo Building...
Expand Down
11 changes: 4 additions & 7 deletions atoll-mono.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
},
{
"path": "packages/api-types"
},
{
"path": "packages/rest-fetch"
}
],
"settings": {
Expand All @@ -50,13 +53,7 @@
"coverage-gutters.showLineCoverage": false,
"typescript.tsdk": "node_modules\\typescript\\lib",
"deno.enable": false,
"jest.disabledWorkspaceFolders": [
"vscode-extension",
"shared",
"scripts",
"rich-types",
"api-types"
]
"jest.disabledWorkspaceFolders": ["vscode-extension", "shared", "scripts", "rich-types", "api-types"]
},
"extensions": {
"recommendations": ["bierner.markdown-checkbox"]
Expand Down
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@
},
"scripts": {
"build-all": "npm run build -ws --if-present",
"build-pkg:web-app": "npm run build -w packages/web-app",
"build-pkg:shared": "npm run build -w packages/shared",
"build-pkg:extension": "npm run build -w packages/vscode-extension",
"build-pkg:api-types": "npm run build -w packages/api-types",
"build-pkg:rich-types": "npm run build -w packages/rich-types",
"build-pkg:rest-fetch": "npm run build -w packages/rest-fetch",
"build-pkg:client-sdk": "npm run build -w packages/client-sdk",
"build-pkg:api-types": "npm run build -w packages/api-types",
"build-pkg:extension": "npm run build -w packages/vscode-extension",
"build-pkg:shared": "npm run build -w packages/shared",
"build-pkg:web-app": "npm run build -w packages/web-app",
"build-pkgs:client-sdk": "npm run build-pkg:api-types && npm run build-pkg:rich-types && npm run build-pkg:rest-fetch && npm run build-pkg:client-sdk",
"build-pkgs:extension": "npm run build-pkg:rich-types && npm run build-pkgs:client-sdk && npm run build-pkg:extension",
"build-pkgs:client-sdk": "npm run build-pkg:api-types && npm run build-pkg:rich-types && npm run build-pkg:client-sdk",
"build-pkgs:web-app": "npm run build-pkg:shared && npm run build-pkg:web-app",
"dist-pkg:extension": "npm run build-pkgs:client-sdk && npm run build-pkg:extension && npm run build-vsix -w packages/vscode-extension",
"check-prereqs-pkg:web-app": "npm run check:prereqs -w packages/web-app",
Expand Down Expand Up @@ -52,6 +53,7 @@
"workspaces": [
"packages/api-types",
"packages/client-sdk",
"packages/rest-fetch",
"packages/rich-types",
"packages/scripts",
"packages/shared",
Expand Down
3 changes: 1 addition & 2 deletions packages/client-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@atoll/client-sdk",
"version": "1.0.0",
"version": "1.1.1",
"description": "Atoll REST API client SDK",
"main": "dist/index.cjs.js",
"module": "dist/index.es.js",
Expand Down Expand Up @@ -52,7 +52,6 @@
"ts-node": "10.7.0"
},
"dependencies": {
"@atoll/rest-fetch": "1.1.0",
"http-status-codes": "2.2.0"
}
}
2 changes: 1 addition & 1 deletion packages/client-sdk/tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,5 @@
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
},

"references": [{ "path": "../api-types/tsconfig.json" }]
"references": [{ "path": "../api-types/tsconfig.json" }, { "path": "../rest-fetch/tsconfig.json" }]
}
3 changes: 3 additions & 0 deletions packages/rest-fetch/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: [["@babel/preset-env", { targets: { node: "current" } }], "@babel/preset-typescript"]
};
7 changes: 7 additions & 0 deletions packages/rest-fetch/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { Config } from "@jest/types";

export default async (): Promise<Config.InitialOptions> => {
return {
verbose: true
};
};
Loading

0 comments on commit 9b5e902

Please sign in to comment.