UNPKG

2.32 kBJSONView Raw
1{
2 "name": "@tgwf/co2",
3 "version": "0.15.0",
4 "description": "Work out the co2 of your digital services",
5 "main": "dist/cjs/index-node.js",
6 "module": "dist/esm/index.js",
7 "engines": {
8 "node": ">=14.0.0"
9 },
10 "exports": {
11 ".": {
12 "import": "./dist/esm/index.js",
13 "require": "./dist/cjs/index-node.js"
14 }
15 },
16 "scripts": {
17 "test": "jest src",
18 "test:watch": "jest --watch src",
19 "lint": "eslint src",
20 "lint:fix": "eslint src --fix",
21 "serve": "python -m http.server --directory ./public",
22 "build": "npm run build:esm && npm run build:browser && npm run build:node",
23 "build:esm": "node .esbuild.esm.js && ./fixup",
24 "build:browser": "node .esbuild.browser.js",
25 "build:node": "node .esbuild.node.js && ./fixup",
26 "release:minor": "npm run build && npm run intensity-data && npm run format-data && np minor",
27 "release:patch": "npm run build && npm run intensity-data && npm run format-data && np patch",
28 "gitpod": "npm run build && cp ./dist/iife/index.js ./public && npm run serve",
29 "intensity-data:average": "node data/functions/generate_average_co2.js",
30 "intensity-data:marginal": "node data/functions/generate_marginal_co2.js",
31 "intensity-data": "npm run intensity-data:average && npm run intensity-data:marginal && npm run format-data",
32 "format-data": "cd data && prettier --write '**/*.{js,json}'",
33 "version": "npm run build"
34 },
35 "keywords": [
36 "sustainability",
37 "carbon",
38 "the",
39 "green",
40 "web",
41 "foundation",
42 "co2"
43 ],
44 "author": "Chris Adams",
45 "license": "Apache-2.0",
46 "devDependencies": {
47 "@tgwf/url2green": "^0.4.0",
48 "all-contributors-cli": "^6.26.1",
49 "esbuild": "^0.14.47",
50 "esbuild-jest": "^0.5.0",
51 "esbuild-plugin-glob": "^1.1.2",
52 "eslint": "^8.15.0",
53 "eslint-config-prettier": "^8.5.0",
54 "eslint-plugin-jest": "^26.1.5",
55 "eslint-plugin-prettier": "^4.0.0",
56 "jest": "^28.1.0",
57 "nock": "^13.2.4",
58 "np": "^8.0.4",
59 "prettier": "^2.6.2"
60 },
61 "jest": {
62 "transform": {
63 "^.+\\.(t|j)sx?$": [
64 "esbuild-jest"
65 ]
66 }
67 },
68 "np": {
69 "yarn": false
70 },
71 "publishConfig": {
72 "access": "public"
73 },
74 "repository": {
75 "type": "git",
76 "url": "https://github.com/thegreenwebfoundation/co2.js.git"
77 }
78}