UNPKG

@cloud-carbon-footprint/gcp

Version:

The core logic to get cloud usage data and estimate energy and carbon emissions from Google Cloud Platform.

87 lines (86 loc) 3.09 kB
{ "name": "@cloud-carbon-footprint/gcp", "version": "1.0.0", "license": "Apache-2.0", "description": "The core logic to get cloud usage data and estimate energy and carbon emissions from Google Cloud Platform.", "main": "dist/index.js", "types": "src/index.ts", "publishConfig": { "main": "dist/index.js" }, "homepage": "https://www.cloudcarbonfootprint.org/", "repository": { "type": "git", "url": "git+https://github.com/cloud-carbon-footprint/cloud-carbon-footprint.git", "directory": "packages/gcp" }, "keywords": [ "thoughtworks", "cloud", "sustainability", "climate", "carbon-emissions", "carbon-footprint" ], "scripts": { "precommit": "lint-staged --no-stash && yarn test --coverage --runInBand --bail", "test": "jest", "type-check": "tsc --noEmit", "sonar:scan": "sonar-scanner", "test:watch": "yarn test --coverage --watchAll", "build": "rimraf dist && yarn build:tsc && yarn prepack && cp package.json dist && yarn postpack", "build:workspace": "mkdir -p ../../dist-workspace/packages/gcp/dist && cp -R dist ../../dist-workspace/packages/gcp && mv ../../dist-workspace/packages/gcp/dist/package.json ../../dist-workspace/packages/gcp", "build:update": "node ../../scripts/update-package-dependencies.js gcp core common", "prepack": "ts-node ../../scripts/prepack.ts", "postpack": "ts-node ../../scripts/postpack.ts", "build:tsc": "tsc --build tsconfig.json", "build:watch": "onchange 'src/**/*.ts' -- yarn build", "view:coverage": "serve coverage/lcov-report", "clean": "rimraf dist && rimraf coverage && rimraf logs", "lint": "eslint '*/**/*.ts' --quiet", "lint:fix": "eslint '*/**/*.ts' --quiet --fix" }, "dependencies": { "@cloud-carbon-footprint/common": "^2.0.0", "@cloud-carbon-footprint/core": "^1.0.0", "@google-cloud/bigquery": "^8.1.1", "@google-cloud/compute": "^6.7.0", "@google-cloud/monitoring": "^5.3.1", "@google-cloud/recommender": "^7.2.1", "@google-cloud/resource-manager": "^6.2.1", "google-gax": "^5.0.6", "moment": "^2.29.1" }, "devDependencies": { "@types/jest": "^29.5.12", "@types/jest-when": "^3.5.5", "@types/node": "^24.0.0", "@types/source-map-support": "^0.5.3", "@typescript-eslint/eslint-plugin": "^8.56.1", "@typescript-eslint/parser": "^8.56.1", "eslint": "^10.0.2", "eslint-config-prettier": "^10.0.0", "eslint-plugin-prettier": "^5.1.0", "eslint-plugin-unused-imports": "^4.4.1", "jest": "^29.7.0", "jest-when": "^3.6.0", "lint-staged": "^15.2.0", "onchange": "^7.1.0", "prettier": "^3.2.5", "rimraf": "^6.1.3", "source-map-support": "^0.5.19", "ts-jest": "^29.2.0", "ts-node": "^10.9.2", "ts-node-dev": "^2.0.0", "typescript": "5.5.4" }, "lint-staged": { "*.{js,ts}": [ "yarn lint", "prettier --write --ignore-unknown --config ../../.prettierrc.json" ], "*.{md}": [ "prettier --write --ignore-unknown --config ../../.prettierrc.json" ] } }