Skip to content

Commit 8798a6e

Browse files
authored
feat(codegen): shorten serialization and deserialization code in protocols 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
1 parent d3aa9d5 commit 8798a6e

File tree

367 files changed

+194016
-567485
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

367 files changed

+194016
-567485
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ CHANGELOG.md
44
**/*.hbs
55
**/*/report.md
66
clients/*/src/endpoint/ruleset.ts
7+
**/*.java

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
"editor.tabSize": 2,
3+
"[java]": {
4+
"editor.tabSize": 4
5+
},
6+
"java.format.enabled": false,
37
"editor.formatOnSave": true,
48
"editor.defaultFormatter": "esbenp.prettier-vscode",
59
"editor.rulers": [80, 120],

Makefile

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,17 @@ turbo-build:
2020
npx turbo run build --api="http://localhost:3000" --team="aws-sdk-js" --token="xyz"
2121
node scripts/remote-cache/ stop
2222

23-
# Runs single-client codegen for all clients using Turborepo
24-
turbo-generate-clients:
25-
(cd scripts/remote-cache && yarn)
23+
protocols:
24+
yarn generate-clients -g codegen/sdk-codegen/aws-models/rekognitionstreaming.json
25+
git checkout HEAD clients/client-rekognitionstreaming
26+
yarn test:protocols
27+
28+
server-protocols:
29+
yarn generate-clients -s
30+
yarn test:server-protocols
31+
32+
bytes-cjs:
33+
make turbo-build
2634
node scripts/remote-cache/ start&
27-
sleep 3
28-
npx turbo run generate:client --filter=@aws-sdk/client-* --api="http://localhost:3000" --team="aws-sdk-js" --token="xyz"
29-
node scripts/remote-cache/ stop
30-
35+
npx turbo run build:cjs --api="http://localhost:3000" --team="aws-sdk-js" --token="xyz"
36+
node scripts/remote-cache/ stop

0 commit comments

Comments
 (0)