Skip to content

Commit

Permalink
feat(codegen): shorten serialization and deserialization code in prot…
Browse files Browse the repository at this point in the history
…ocols files (#4625)

* feat(clients): apply serde brevity function

* feat(codegen): serde helpers

* chore(scripts): add dist-cjs byte count script

* feat(codegen): simplify unary function to reference
  • Loading branch information
kuhe committed Apr 17, 2023
1 parent d3aa9d5 commit 8798a6e
Show file tree
Hide file tree
Showing 367 changed files with 194,016 additions and 567,485 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Expand Up @@ -4,3 +4,4 @@ CHANGELOG.md
**/*.hbs
**/*/report.md
clients/*/src/endpoint/ruleset.ts
**/*.java
4 changes: 4 additions & 0 deletions .vscode/settings.json
@@ -1,5 +1,9 @@
{
"editor.tabSize": 2,
"[java]": {
"editor.tabSize": 4
},
"java.format.enabled": false,
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.rulers": [80, 120],
Expand Down
20 changes: 13 additions & 7 deletions Makefile
Expand Up @@ -20,11 +20,17 @@ turbo-build:
npx turbo run build --api="http://localhost:3000" --team="aws-sdk-js" --token="xyz"
node scripts/remote-cache/ stop

# Runs single-client codegen for all clients using Turborepo
turbo-generate-clients:
(cd scripts/remote-cache && yarn)
protocols:
yarn generate-clients -g codegen/sdk-codegen/aws-models/rekognitionstreaming.json
git checkout HEAD clients/client-rekognitionstreaming
yarn test:protocols

server-protocols:
yarn generate-clients -s
yarn test:server-protocols

bytes-cjs:
make turbo-build
node scripts/remote-cache/ start&
sleep 3
npx turbo run generate:client --filter=@aws-sdk/client-* --api="http://localhost:3000" --team="aws-sdk-js" --token="xyz"
node scripts/remote-cache/ stop

npx turbo run build:cjs --api="http://localhost:3000" --team="aws-sdk-js" --token="xyz"
node scripts/remote-cache/ stop

0 comments on commit 8798a6e

Please sign in to comment.