-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
89 lines (89 loc) · 4.59 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"name": "memorystore-cluster-autoscaler",
"version": "1.0.0",
"Description": "Autoscaling for Memorystore Cluster",
"homepage": "https://github.com/GoogleCloudPlatform/memorystore-cluster-autoscaler",
"license": "Apache-2.0",
"author": "Google Inc.",
"main": "src/functions.js",
"scripts": {
"check-format": "npm run prettier-check && npm run terraform-fmt-check",
"debug-poller-function": "node --inspect node_modules/.bin/functions-framework --target=checkMemorystoreClusterScaleMetricsHTTP",
"debug-scaler-function": "node --inspect node_modules/.bin/functions-framework --target=scaleMemorystoreClusterHTTP --port=8081",
"eslint": "eslint .",
"eslint-fix": "eslint --fix .",
"format": "npm run prettier && npm run terraform-fmt",
"prettier": "prettier --write .",
"prettier-check": "prettier --check .",
"install-all": "npm install --save",
"markdown-link-check": "find . -name '*.md' -not \\( -path './node_modules/*' -o -path './configeditor/build/*' -o -path '*/.terraform/*' -o -path './CHANGELOG.md' -prune \\) -print0 | xargs --null markdown-link-check --config markdown-link-checker.json --quiet",
"mdlint": "markdownlint '**/*.md' --config .mdl.json --ignore '**/build/**' --ignore '**/node_modules/**' --ignore 'code-of-conduct.md' --ignore 'CHANGELOG.md'",
"prepare": "{ git rev-parse --is-inside-work-tree >/dev/null 2>/dev/null && test \"$NODE_ENV\" != production -a \"$CI\" != true && husky ; } || true",
"start-poller-function": "functions-framework --target=checkMemorystoreClusterScaleMetricsHTTP",
"start-scaler-function": "functions-framework --target=scaleMemorystoreClusterHTTP --port=8081",
"terraform-fmt": "echo 'Running Terraform fmt'; find . -name '*.tf' -print0 | xargs -0 terraform fmt",
"terraform-fmt-check": "echo 'Checking Terraform format'; if ! find . -name '*.tf' -print0 | xargs -0 terraform fmt -check; then echo 'Files need reformatting: npm run terraform-fmt'; exit 1; fi",
"terraform-validate": "set -e ; package_root=\"$(pwd)\"; for x in gke/unified cloud-functions/distributed/app-project cloud-functions/distributed/autoscaler-project cloud-functions/per-project ; do cd \"$package_root/terraform/$x\" ; echo \"\n\nValidating Terraform in $PWD\" ; terraform init ; terraform validate; done",
"test": "NODE_ENV=test nyc --reporter=text mocha --recursive src --extension=.test.js --timeout 10000",
"test-e2e": "pushd terraform/cloud-functions/per-project/test && go test -run . -timeout 60m --tags=e2e && popd",
"typecheck": "tsc --project jsconfig.json --maxNodeModuleJsDepth 0 --noEmit",
"unified-job": "node -e \"require('./src/unified-scaler').main()\"",
"validate-config-file": "node -e \"require('./src/poller/poller-core/config-validator').main()\" -- ",
"start-configeditor-server": "cd configeditor && ./build-configeditor.sh --quiet && npm exec http-server -- -a 127.0.0.1 "
},
"dependencies": {
"@google-cloud/firestore": "^7.10.0",
"@google-cloud/functions-framework": "^3.4.2",
"@google-cloud/monitoring": "^4.1.0",
"@google-cloud/opentelemetry-cloud-monitoring-exporter": "^0.19.0",
"@google-cloud/pubsub": "^4.7.2",
"@google-cloud/redis-cluster": "^0.5.0",
"@google-cloud/spanner": "^7.14.0",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/exporter-metrics-otlp-grpc": "^0.53.0",
"@opentelemetry/sdk-metrics": "^1.26.0",
"@opentelemetry/sdk-node": "^0.53.0",
"@opentelemetry/semantic-conventions": "^1.27.0",
"ajv": "^8.17.1",
"axios": "^1.7.7",
"eventid": "^2.0.1",
"express": "^4.21.0",
"googleapis": "^144.0.0",
"js-yaml": "^4.1.0",
"json-rules-engine": "^7.0.0",
"lodash": "^4.17.21",
"pino": "^9.4.0",
"sanitize-filename": "^1.6.3"
},
"devDependencies": {
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@sinonjs/referee": "^11.0.1",
"@types/js-yaml": "^4.0.9",
"@types/lodash": "^4.17.7",
"@types/lodash.unionby": "^4.8.9",
"@types/mocha": "^10.0.8",
"@types/node": "^20.11.30",
"@types/rewire": "^2.5.30",
"@types/sinon": "17.0.3",
"eslint": "^8.57.1",
"eslint-config-google": "^0.14.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"husky": "^9.1.6",
"lodash.unionby": "^4.8.0",
"markdown-link-check": "^3.12.2",
"markdownlint-cli": "^0.41.0",
"mocha": "^10.7.3",
"nyc": "^17.0.0",
"prettier": "^3.3.3",
"rewire": "^7.0.0",
"should": "^13.2.3",
"sinon": "^19.0.2",
"typescript": "^5.6.2"
},
"engines": {
"node": ">=18.0.0 || >=20.0.0",
"npm": ">=10.0.0"
}
}