Skip to content

Commit

Permalink
fix: minify JSON and JS files, and remove .map files (#4143)
Browse files Browse the repository at this point in the history
* fix: implement minification changes to Node packages
  • Loading branch information
sofisl committed Apr 6, 2023
1 parent d5d8af9 commit 170f7d5
Show file tree
Hide file tree
Showing 137 changed files with 611 additions and 269 deletions.
1 change: 1 addition & 0 deletions packages/gapic-node-templating/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@
"yargs": "^17.5.1"
}
}

6 changes: 4 additions & 2 deletions packages/google-analytics-admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"main": "build/src/index.js",
"files": [
"build/src",
"build/protos"
"build/protos",
"!build/src/**/*.map"
],
"keywords": [
"google apis client",
Expand All @@ -29,7 +30,7 @@
],
"scripts": {
"clean": "gts clean",
"compile": "tsc -p . && cp -r protos build/",
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
"compile-protos": "compileProtos src",
"docs": "jsdoc -c .jsdoc.js",
"predocs-test": "npm run docs",
Expand Down Expand Up @@ -69,3 +70,4 @@
},
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-analytics-admin"
}

6 changes: 4 additions & 2 deletions packages/google-analytics-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"main": "build/src/index.js",
"files": [
"build/src",
"build/protos"
"build/protos",
"!build/src/**/*.map"
],
"keywords": [
"google apis client",
Expand All @@ -29,7 +30,7 @@
],
"scripts": {
"clean": "gts clean",
"compile": "tsc -p . && cp -r protos build/",
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
"compile-protos": "compileProtos src",
"docs": "jsdoc -c .jsdoc.js",
"predocs-test": "npm run docs",
Expand Down Expand Up @@ -69,3 +70,4 @@
},
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-analytics-data"
}

6 changes: 4 additions & 2 deletions packages/google-api-apikeys/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"main": "build/src/index.js",
"files": [
"build/src",
"build/protos"
"build/protos",
"!build/src/**/*.map"
],
"keywords": [
"google apis client",
Expand All @@ -30,7 +31,7 @@
],
"scripts": {
"clean": "gts clean",
"compile": "tsc -p . && cp -r protos build/",
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
"compile-protos": "compileProtos src",
"docs": "jsdoc -c .jsdoc.js",
"predocs-test": "npm run docs",
Expand Down Expand Up @@ -69,3 +70,4 @@
"node": ">=12.0.0"
}
}

6 changes: 4 additions & 2 deletions packages/google-api-servicecontrol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"main": "build/src/index.js",
"files": [
"build/src",
"build/protos"
"build/protos",
"!build/src/**/*.map"
],
"keywords": [
"google apis client",
Expand All @@ -30,7 +31,7 @@
],
"scripts": {
"clean": "gts clean",
"compile": "tsc -p . && cp -r protos build/",
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
"compile-protos": "compileProtos src",
"docs": "jsdoc -c .jsdoc.js",
"predocs-test": "npm run docs",
Expand Down Expand Up @@ -70,3 +71,4 @@
},
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-api-servicecontrol"
}

6 changes: 4 additions & 2 deletions packages/google-api-servicemanagement/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"main": "build/src/index.js",
"files": [
"build/src",
"build/protos"
"build/protos",
"!build/src/**/*.map"
],
"keywords": [
"google apis client",
Expand All @@ -29,7 +30,7 @@
],
"scripts": {
"clean": "gts clean",
"compile": "tsc -p . && cp -r protos build/",
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
"compile-protos": "compileProtos src",
"docs": "jsdoc -c .jsdoc.js",
"predocs-test": "npm run docs",
Expand Down Expand Up @@ -69,3 +70,4 @@
},
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-api-servicemanagement"
}

6 changes: 4 additions & 2 deletions packages/google-api-serviceusage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"main": "build/src/index.js",
"files": [
"build/src",
"build/protos"
"build/protos",
"!build/src/**/*.map"
],
"keywords": [
"google apis client",
Expand All @@ -29,7 +30,7 @@
],
"scripts": {
"clean": "gts clean",
"compile": "tsc -p . && cp -r protos build/",
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
"compile-protos": "compileProtos src",
"docs": "jsdoc -c .jsdoc.js",
"predocs-test": "npm run docs",
Expand Down Expand Up @@ -69,3 +70,4 @@
},
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-api-serviceusage"
}

6 changes: 4 additions & 2 deletions packages/google-appengine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"main": "build/src/index.js",
"files": [
"build/src",
"build/protos"
"build/protos",
"!build/src/**/*.map"
],
"keywords": [
"google apis client",
Expand All @@ -36,7 +37,7 @@
],
"scripts": {
"clean": "gts clean",
"compile": "tsc -p . && cp -r protos build/",
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
"compile-protos": "compileProtos src",
"docs": "jsdoc -c .jsdoc.js",
"predocs-test": "npm run docs",
Expand Down Expand Up @@ -76,3 +77,4 @@
},
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-appengine"
}

6 changes: 4 additions & 2 deletions packages/google-area120-tables/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"main": "build/src/index.js",
"files": [
"build/src",
"build/protos"
"build/protos",
"!build/src/**/*.map"
],
"keywords": [
"google apis client",
Expand All @@ -29,7 +30,7 @@
],
"scripts": {
"clean": "gts clean",
"compile": "tsc -p . && cp -r protos build/",
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
"compile-protos": "compileProtos src",
"docs": "jsdoc -c .jsdoc.js",
"prelint": "cd samples; npm link ../; npm i",
Expand Down Expand Up @@ -69,3 +70,4 @@
},
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-area120-tables"
}

6 changes: 4 additions & 2 deletions packages/google-cloud-accessapproval/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"main": "build/src/index.js",
"files": [
"build/src",
"build/protos"
"build/protos",
"!build/src/**/*.map"
],
"keywords": [
"google apis client",
Expand All @@ -29,7 +30,7 @@
],
"scripts": {
"clean": "gts clean",
"compile": "tsc -p . && cp -r protos build/",
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
"compile-protos": "compileProtos src",
"docs": "jsdoc -c .jsdoc.js",
"predocs-test": "npm run docs",
Expand Down Expand Up @@ -69,3 +70,4 @@
},
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-accessapproval"
}

6 changes: 4 additions & 2 deletions packages/google-cloud-advisorynotifications/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"main": "build/src/index.js",
"files": [
"build/src",
"build/protos"
"build/protos",
"!build/src/**/*.map"
],
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-advisorynotifications",
"keywords": [
Expand All @@ -30,7 +31,7 @@
],
"scripts": {
"clean": "gts clean",
"compile": "tsc -p . && cp -r protos build/",
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
"compile-protos": "compileProtos src",
"docs": "jsdoc -c .jsdoc.js",
"predocs-test": "npm run docs",
Expand Down Expand Up @@ -69,3 +70,4 @@
"node": ">=12.0.0"
}
}

6 changes: 4 additions & 2 deletions packages/google-cloud-aiplatform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"main": "build/src/index.js",
"files": [
"build/src",
"build/protos"
"build/protos",
"!build/src/**/*.map"
],
"keywords": [
"google apis client",
Expand All @@ -37,7 +38,7 @@
],
"scripts": {
"clean": "gts clean",
"compile": "tsc -p . && cp -r protos build/",
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
"compile-protos": "compileProtos src",
"docs": "NODE_OPTIONS=--max-old-space-size=8192 jsdoc -c .jsdoc.js",
"predocs-test": "npm run docs",
Expand Down Expand Up @@ -78,3 +79,4 @@
},
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-aiplatform"
}

6 changes: 4 additions & 2 deletions packages/google-cloud-alloydb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"main": "build/src/index.js",
"files": [
"build/src",
"build/protos"
"build/protos",
"!build/src/**/*.map"
],
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-alloydb",
"keywords": [
Expand All @@ -30,7 +31,7 @@
],
"scripts": {
"clean": "gts clean",
"compile": "tsc -p . && cp -r protos build/",
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
"compile-protos": "compileProtos src",
"docs": "jsdoc -c .jsdoc.js",
"predocs-test": "npm run docs",
Expand Down Expand Up @@ -69,3 +70,4 @@
"node": ">=12.0.0"
}
}

6 changes: 4 additions & 2 deletions packages/google-cloud-apigateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"main": "build/src/index.js",
"files": [
"build/src",
"build/protos"
"build/protos",
"!build/src/**/*.map"
],
"keywords": [
"google apis client",
Expand All @@ -29,7 +30,7 @@
],
"scripts": {
"clean": "gts clean",
"compile": "tsc -p . && cp -r protos build/",
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
"compile-protos": "compileProtos src",
"docs": "jsdoc -c .jsdoc.js",
"predocs-test": "npm run docs",
Expand Down Expand Up @@ -69,3 +70,4 @@
},
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-apigateway"
}

6 changes: 4 additions & 2 deletions packages/google-cloud-apigeeconnect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"main": "build/src/index.js",
"files": [
"build/src",
"build/protos"
"build/protos",
"!build/src/**/*.map"
],
"keywords": [
"google apis client",
Expand All @@ -29,7 +30,7 @@
],
"scripts": {
"clean": "gts clean",
"compile": "tsc -p . && cp -r protos build/",
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
"compile-protos": "compileProtos src",
"docs": "jsdoc -c .jsdoc.js",
"predocs-test": "npm run docs",
Expand Down Expand Up @@ -69,3 +70,4 @@
},
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-apigeeconnect"
}

6 changes: 4 additions & 2 deletions packages/google-cloud-asset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"main": "build/src/index.js",
"files": [
"build/src",
"build/protos"
"build/protos",
"!build/src/**/*.map"
],
"keywords": [
"google apis client",
Expand All @@ -34,7 +35,7 @@
"samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test",
"samples-test-suite": "cd samples/ && npm link ../ && npm test && cd ../",
"clean": "gts clean",
"compile": "tsc -p . && cp -r protos build/",
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
"compile-protos": "compileProtos src",
"docs": "jsdoc -c .jsdoc.js",
"docs-test": "linkinator docs",
Expand Down Expand Up @@ -72,3 +73,4 @@
},
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-asset"
}

6 changes: 4 additions & 2 deletions packages/google-cloud-assuredworkloads/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"main": "build/src/index.js",
"files": [
"build/src",
"build/protos"
"build/protos",
"!build/src/**/*.map"
],
"keywords": [
"google apis client",
Expand All @@ -29,7 +30,7 @@
],
"scripts": {
"clean": "gts clean",
"compile": "tsc -p . && cp -r protos build/",
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
"compile-protos": "compileProtos src",
"docs": "jsdoc -c .jsdoc.js",
"predocs-test": "npm run docs",
Expand Down Expand Up @@ -69,3 +70,4 @@
},
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-assuredworkloads"
}

Loading

0 comments on commit 170f7d5

Please sign in to comment.