Skip to content

Commit

Permalink
feat: Add npm run command for end-to-end tests, sort list (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
henrybell committed Apr 26, 2024
1 parent bde95f6 commit 85f37ac
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,27 @@
"author": "Google Inc.",
"main": "src/functions.js",
"scripts": {
"check-format": "prettier --check .",
"check-update-all": "ncu",
"debug-poller-function": "node --inspect node_modules/@google-cloud/functions-framework --target=checkSpannerScaleMetricsHTTP",
"debug-scaler-function": "node --inspect node_modules/@google-cloud/functions-framework --target=scaleSpannerInstanceHTTP --port=8081",
"debug-forwarder-function": "node --inspect node_modules/@google-cloud/functions-framework --target=forwardFromHTTP",
"eslint": "eslint .",
"eslint-fix": "eslint --fix .",
"check-format": "prettier --check .",
"format": "prettier --write .",
"prettier": "prettier --write .",
"typecheck": "tsc --project jsconfig.json --maxNodeModuleJsDepth 0 --noEmit",
"mdlint": "markdownlint '**/*.md' --config .mdl.json --ignore '**/node_modules/**' --ignore 'code-of-conduct.md' --ignore 'CHANGELOG.md'",
"install-all": "npm install --save",
"test": "NODE_ENV=test nyc --reporter=text mocha --recursive src --extension=.test.js",
"unified-job": "node -e \"require('./src/unifiedScaler').main()\"",
"mdlint": "markdownlint '**/*.md' --config .mdl.json --ignore '**/node_modules/**' --ignore 'code-of-conduct.md' --ignore 'CHANGELOG.md'",
"poller-job": "node -e \"require('./src/poller/index').main()\"",
"scaler-service": "node -e \"require('./src/scaler/index').main()\"",
"poller-function": "functions-framework --target=checkSpannerScaleMetricsHTTP",
"scaler-function": "functions-framework --target=scaleSpannerInstanceHTTP --port=8081",
"forwarder-function": "functions-framework --target=forwardFromHTTP",
"debug-poller-function": "node --inspect node_modules/@google-cloud/functions-framework --target=checkSpannerScaleMetricsHTTP",
"debug-scaler-function": "node --inspect node_modules/@google-cloud/functions-framework --target=scaleSpannerInstanceHTTP --port=8081",
"debug-forwarder-function": "node --inspect node_modules/@google-cloud/functions-framework --target=forwardFromHTTP",
"prepare": "{ git rev-parse --is-inside-work-tree >/dev/null 2>/dev/null && test \"$NODE_ENV\" != production -a \"$CI\" != true && husky ; } || true",
"prettier": "prettier --write .",
"scaler-service": "node -e \"require('./src/scaler/index').main()\"",
"start-forwarder-function": "functions-framework --target=forwardFromHTTP",
"start-poller-function": "functions-framework --target=checkSpannerScaleMetricsHTTP",
"start-scaler-function": "functions-framework --target=scaleSpannerInstanceHTTP --port=8081",
"test": "NODE_ENV=test nyc --reporter=text mocha --recursive src --extension=.test.js",
"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/unifiedScaler').main()\"",
"update-all": "ncu -u"
},
"dependencies": {
Expand Down

0 comments on commit 85f37ac

Please sign in to comment.