Skip to content

Commit 170f7d5

Browse files
authored
fix: minify JSON and JS files, and remove .map files (#4143)
* fix: implement minification changes to Node packages
1 parent d5d8af9 commit 170f7d5

137 files changed

Lines changed: 611 additions & 269 deletions

File tree

Some content is hidden

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

packages/gapic-node-templating/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,4 @@
4646
"yargs": "^17.5.1"
4747
}
4848
}
49+

packages/google-analytics-admin/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"main": "build/src/index.js",
1313
"files": [
1414
"build/src",
15-
"build/protos"
15+
"build/protos",
16+
"!build/src/**/*.map"
1617
],
1718
"keywords": [
1819
"google apis client",
@@ -29,7 +30,7 @@
2930
],
3031
"scripts": {
3132
"clean": "gts clean",
32-
"compile": "tsc -p . && cp -r protos build/",
33+
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
3334
"compile-protos": "compileProtos src",
3435
"docs": "jsdoc -c .jsdoc.js",
3536
"predocs-test": "npm run docs",
@@ -69,3 +70,4 @@
6970
},
7071
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-analytics-admin"
7172
}
73+

packages/google-analytics-data/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"main": "build/src/index.js",
1313
"files": [
1414
"build/src",
15-
"build/protos"
15+
"build/protos",
16+
"!build/src/**/*.map"
1617
],
1718
"keywords": [
1819
"google apis client",
@@ -29,7 +30,7 @@
2930
],
3031
"scripts": {
3132
"clean": "gts clean",
32-
"compile": "tsc -p . && cp -r protos build/",
33+
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
3334
"compile-protos": "compileProtos src",
3435
"docs": "jsdoc -c .jsdoc.js",
3536
"predocs-test": "npm run docs",
@@ -69,3 +70,4 @@
6970
},
7071
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-analytics-data"
7172
}
73+

packages/google-api-apikeys/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"main": "build/src/index.js",
1414
"files": [
1515
"build/src",
16-
"build/protos"
16+
"build/protos",
17+
"!build/src/**/*.map"
1718
],
1819
"keywords": [
1920
"google apis client",
@@ -30,7 +31,7 @@
3031
],
3132
"scripts": {
3233
"clean": "gts clean",
33-
"compile": "tsc -p . && cp -r protos build/",
34+
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
3435
"compile-protos": "compileProtos src",
3536
"docs": "jsdoc -c .jsdoc.js",
3637
"predocs-test": "npm run docs",
@@ -69,3 +70,4 @@
6970
"node": ">=12.0.0"
7071
}
7172
}
73+

packages/google-api-servicecontrol/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"main": "build/src/index.js",
1313
"files": [
1414
"build/src",
15-
"build/protos"
15+
"build/protos",
16+
"!build/src/**/*.map"
1617
],
1718
"keywords": [
1819
"google apis client",
@@ -30,7 +31,7 @@
3031
],
3132
"scripts": {
3233
"clean": "gts clean",
33-
"compile": "tsc -p . && cp -r protos build/",
34+
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
3435
"compile-protos": "compileProtos src",
3536
"docs": "jsdoc -c .jsdoc.js",
3637
"predocs-test": "npm run docs",
@@ -70,3 +71,4 @@
7071
},
7172
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-api-servicecontrol"
7273
}
74+

packages/google-api-servicemanagement/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"main": "build/src/index.js",
1313
"files": [
1414
"build/src",
15-
"build/protos"
15+
"build/protos",
16+
"!build/src/**/*.map"
1617
],
1718
"keywords": [
1819
"google apis client",
@@ -29,7 +30,7 @@
2930
],
3031
"scripts": {
3132
"clean": "gts clean",
32-
"compile": "tsc -p . && cp -r protos build/",
33+
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
3334
"compile-protos": "compileProtos src",
3435
"docs": "jsdoc -c .jsdoc.js",
3536
"predocs-test": "npm run docs",
@@ -69,3 +70,4 @@
6970
},
7071
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-api-servicemanagement"
7172
}
73+

packages/google-api-serviceusage/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"main": "build/src/index.js",
1313
"files": [
1414
"build/src",
15-
"build/protos"
15+
"build/protos",
16+
"!build/src/**/*.map"
1617
],
1718
"keywords": [
1819
"google apis client",
@@ -29,7 +30,7 @@
2930
],
3031
"scripts": {
3132
"clean": "gts clean",
32-
"compile": "tsc -p . && cp -r protos build/",
33+
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
3334
"compile-protos": "compileProtos src",
3435
"docs": "jsdoc -c .jsdoc.js",
3536
"predocs-test": "npm run docs",
@@ -69,3 +70,4 @@
6970
},
7071
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-api-serviceusage"
7172
}
73+

packages/google-appengine/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"main": "build/src/index.js",
1313
"files": [
1414
"build/src",
15-
"build/protos"
15+
"build/protos",
16+
"!build/src/**/*.map"
1617
],
1718
"keywords": [
1819
"google apis client",
@@ -36,7 +37,7 @@
3637
],
3738
"scripts": {
3839
"clean": "gts clean",
39-
"compile": "tsc -p . && cp -r protos build/",
40+
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
4041
"compile-protos": "compileProtos src",
4142
"docs": "jsdoc -c .jsdoc.js",
4243
"predocs-test": "npm run docs",
@@ -76,3 +77,4 @@
7677
},
7778
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-appengine"
7879
}
80+

packages/google-area120-tables/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"main": "build/src/index.js",
1313
"files": [
1414
"build/src",
15-
"build/protos"
15+
"build/protos",
16+
"!build/src/**/*.map"
1617
],
1718
"keywords": [
1819
"google apis client",
@@ -29,7 +30,7 @@
2930
],
3031
"scripts": {
3132
"clean": "gts clean",
32-
"compile": "tsc -p . && cp -r protos build/",
33+
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
3334
"compile-protos": "compileProtos src",
3435
"docs": "jsdoc -c .jsdoc.js",
3536
"prelint": "cd samples; npm link ../; npm i",
@@ -69,3 +70,4 @@
6970
},
7071
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-area120-tables"
7172
}
73+

packages/google-cloud-accessapproval/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"main": "build/src/index.js",
1313
"files": [
1414
"build/src",
15-
"build/protos"
15+
"build/protos",
16+
"!build/src/**/*.map"
1617
],
1718
"keywords": [
1819
"google apis client",
@@ -29,7 +30,7 @@
2930
],
3031
"scripts": {
3132
"clean": "gts clean",
32-
"compile": "tsc -p . && cp -r protos build/",
33+
"compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
3334
"compile-protos": "compileProtos src",
3435
"docs": "jsdoc -c .jsdoc.js",
3536
"predocs-test": "npm run docs",
@@ -69,3 +70,4 @@
6970
},
7071
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-accessapproval"
7172
}
73+

0 commit comments

Comments
 (0)