Skip to content

Commit

Permalink
Merge pull request #86 from ty-ras/issue/85-add-new-clients
Browse files Browse the repository at this point in the history
#85 Before adding new libraries, putting all dupl…
  • Loading branch information
stazz committed Sep 10, 2023
2 parents 5c4838b + ee97b86 commit a299f9e
Show file tree
Hide file tree
Showing 174 changed files with 22,224 additions and 4,719 deletions.
29 changes: 0 additions & 29 deletions .codecov.yml

This file was deleted.

7 changes: 3 additions & 4 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,20 @@ jobs:
- 'code/.pretterrc'
- 'code/ava.config.mjs'
- 'code/tsconfig.*'
- '.codecov.yml'
- '.github/**'
code:
- 'code/*/**'
- '!code/*/**.md'
- name: Mark all components to be run
if: steps.changed-files-yaml.outputs.global_any_modified == 'true'
if: steps.changed-files-yaml.outputs.global_any_changed == 'true'
run: |
echo "$(find code -type d -maxdepth 1 -mindepth 1 -print0 | while IFS= read -r -d '' line; do jq -nM --arg dirname "$line" '$dirname'; done | jq -sMc)" > __output.txt
- name: Mark only affected components to be run
if: steps.changed-files-yaml.outputs.global_any_modified == 'false' && steps.changed-files-yaml.outputs.code_any_modified == 'true'
if: steps.changed-files-yaml.outputs.global_any_changed == 'false' && steps.changed-files-yaml.outputs.code_any_changed == 'true'
run: |
echo '${{ steps.changed-files-yaml.outputs.code_all_modified_files }}' > __output.txt
echo '${{ steps.changed-files-yaml.outputs.code_all_changed_files }}' > __output.txt
- name: Save job output
id: set_output
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
PACKAGE_VERSION="$(cat "${TYRAS_LIB_DIR}/package.json" | jq -rM .version)"
GIT_TAG_NAME="${TYRAS_LIB_NAME}-v${PACKAGE_VERSION}"
if [[ -n "$(git ls-remote --tags origin "${GIT_TAG_NAME}")" ]]; then
echo "Detected that tag ${GIT_TAG_NAME} already is existing, not proceeding to publish package $1"
echo "Detected that tag ${GIT_TAG_NAME} already is existing, not proceeding to publish package ${TYRAS_LIB_NAME}"
else
# The release can be performed, start by creating Git tag locally
# If there are any errors here, we won't end up in situation where NPM package is published, but no Git tag exists for it
Expand Down
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ This repository contains the following aggregator libraries for [`io-ts`](https:
- [`@ty-ras/backend-express-io-ts-openapi`](./code/backend-express-io-ts-openapi) for backends using Express HTTP(S) 1 server, `io-ts` as data validation library, and OpenAPI as metadata format,
- [`@ty-ras/backend-fastify-io-ts-openapi`](./code/backend-fastify-io-ts-openapi) for backends using Fastify HTTP(S) 1/2 server, `io-ts` as data validation library, and OpenAPI as metadata format,
- [`@ty-ras/frontend-fetch-io-ts`](./code/frontend-fetch-io-ts) for frontend clients using Fetch API to send HTTP requests and `io-ts` as data validation library,
- [`@ty-ras-extras/backend-io-ts](./code/extras-backend-io-ts) for most typically used extra functionality (caching, configuration, resource pool, main invocation, SQL) in backend, and
- [`@ty-ras-extras/frontend-io-ts](./code/extras-frontend-io-ts) for most typically used extra functionality (caching, configuration) in frontend.
- [`@ty-ras/frontend-node-io-ts`](./code/frontend-node-io-ts) for frontend clients using Node runtime to send HTTP requests and `io-ts` as data validation library,
- [`@ty-ras/frontend-axios-io-ts`](./code/frontend-axios-io-ts) for frontend clients using [Axios](https://github.com/axios/axios) library to send HTTP requests and `io-ts` as data validation library,
- [`@ty-ras-extras/backend-io-ts`](./code/extras-backend-io-ts) for most typically used extra functionality (caching, configuration, resource pool, main invocation, SQL) in backend, and
- [`@ty-ras-extras/frontend-io-ts`](./code/extras-frontend-io-ts) for most typically used extra functionality (caching, configuration) in frontend.

# Data validation using `zod`
This repository contains the following aggregator libraries for [`zod`](https://github.com/colinhacks/zod) framework:
Expand All @@ -36,8 +38,10 @@ This repository contains the following aggregator libraries for [`zod`](https://
- [`@ty-ras/backend-express-io-ts-openapi`](./code/backend-express-io-ts-openapi) for backends using Express HTTP(S) 1 server, `zod` as data validation library, and OpenAPI as metadata format,
- [`@ty-ras/backend-fastify-io-ts-openapi`](./code/backend-fastify-io-ts-openapi) for backends using Fastify HTTP(S) 1/2 server, `zod` as data validation library, and OpenAPI as metadata format,
- [`@ty-ras/frontend-fetch-zod`](./code/frontend-fetch-zod) for frontend clients using Fetch API to send HTTP requests and `zod` as data validation library,
- [`@ty-ras-extras/backend-zod](./code/extras-backend-zod) for most typically used extra functionality (caching, configuration, resource pool, main invocation, SQL) in backend, and
- [`@ty-ras-extras/frontend-zod](./code/extras-frontend-zod) for most typically used extra functionality (caching, configuration) in frontend.
- [`@ty-ras/frontend-node-zod`](./code/frontend-node-zod) for frontend clients using Node runtime to send HTTP requests and `zod` as data validation library,
- [`@ty-ras/frontend-axios-zod`](./code/frontend-axios-zod) for frontend clients using [Axios](https://github.com/axios/axios) library to send HTTP requests and `zod` as data validation library,
- [`@ty-ras-extras/backend-zod`](./code/extras-backend-zod) for most typically used extra functionality (caching, configuration, resource pool, main invocation, SQL) in backend, and
- [`@ty-ras-extras/frontend-zod`](./code/extras-frontend-zod) for most typically used extra functionality (caching, configuration) in frontend.

# Data validation using `runtypes`
This repository contains the following aggregator libraries for [`runtypes`](https://github.com/pelotom/runtypes) framework:
Expand All @@ -46,5 +50,7 @@ This repository contains the following aggregator libraries for [`runtypes`](htt
- [`@ty-ras/backend-express-io-ts-openapi`](./code/backend-express-io-ts-openapi) for backends using Express HTTP(S) 1 server, `runtype` as data validation library, and OpenAPI as metadata format,
- [`@ty-ras/backend-fastify-io-ts-openapi`](./code/backend-fastify-io-ts-openapi) for backends using Fastify HTTP(S) 1/ server, `runtype` as data validation library, and OpenAPI as metadata format,
- [`@ty-ras/frontend-fetch-runtypes`](./code/frontend-fetch-runtypes) for frontend clients using Fetch API to send HTTP requests and `runtypes` as data validation library,
- [`@ty-ras-extras/backend-runtypes](./code/extras-backend-runtypes) for most typically used extra functionality (caching, configuration, resource pool, main invocation, SQL) in backend, and
- [`@ty-ras-extras/frontend-runtypes](./code/extras-frontend-zod) for most typically used extra functionality (caching, configuration) in frontend.
- [`@ty-ras/frontend-node-runtypes`](./code/frontend-node-runtypes) for frontend clients using Node runtime to send HTTP requests and `runtypes` as data validation library,
- [`@ty-ras/frontend-axios-runtypes`](./code/frontend-axios-runtypes) for frontend clients using [Axios](https://github.com/axios/axios) library to send HTTP requests and `runtypes` as data validation library,
- [`@ty-ras-extras/backend-runtypes`](./code/extras-backend-runtypes) for most typically used extra functionality (caching, configuration, resource pool, main invocation, SQL) in backend, and
- [`@ty-ras-extras/frontend-runtypes`](./code/extras-frontend-zod) for most typically used extra functionality (caching, configuration) in frontend.
1 change: 1 addition & 0 deletions code/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ coverage
*/.eslintrc*.cjs
*/tsconfig*.json
yarn-error.log
__test__
112 changes: 0 additions & 112 deletions code/backend-express-io-ts-openapi/src/__test__/index.spec.ts

This file was deleted.

20 changes: 0 additions & 20 deletions code/backend-express-runtypes-openapi/src/__test__/api/app.ts

This file was deleted.

This file was deleted.

29 changes: 0 additions & 29 deletions code/backend-express-runtypes-openapi/src/__test__/api/index.ts

This file was deleted.

20 changes: 0 additions & 20 deletions code/backend-express-zod-openapi/src/__test__/api/app.ts

This file was deleted.

Loading

0 comments on commit a299f9e

Please sign in to comment.