-
-
Notifications
You must be signed in to change notification settings - Fork 57
/
package.json
78 lines (78 loc) · 2.27 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
{
"name": "@tgwf/co2",
"version": "0.16.4",
"description": "Work out the co2 of your digital services",
"main": "dist/cjs/index-node.js",
"module": "dist/esm/index.js",
"engines": {
"node": ">=14.0.0"
},
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index-node.js"
}
},
"scripts": {
"test": "jest src",
"test:watch": "jest --watch src",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"serve": "python -m http.server --directory ./public",
"build": "npm run build:esm && npm run build:browser && npm run build:node",
"build:esm": "node .esbuild.esm.js && ./fixup",
"build:browser": "node .esbuild.browser.js",
"build:node": "node .esbuild.node.js && ./fixup",
"release:minor": "npm run build && npm run intensity-data && npm run format-data && np minor",
"release:patch": "npm run build && npm run intensity-data && npm run format-data && np patch",
"gitpod": "npm run build && cp ./dist/iife/index.js ./public && npm run serve",
"intensity-data:average": "node data/functions/generate_average_co2.js",
"intensity-data:marginal": "node data/functions/generate_marginal_co2.js",
"intensity-data": "npm run intensity-data:average && npm run intensity-data:marginal && npm run format-data",
"format-data": "cd data && prettier --write '**/*.{js,json}'",
"version": "npm run build"
},
"keywords": [
"sustainability",
"carbon",
"the",
"green",
"web",
"foundation",
"co2"
],
"author": "Chris Adams",
"license": "Apache-2.0",
"devDependencies": {
"@tgwf/url2green": "^0.4.1",
"all-contributors-cli": "^6.26.1",
"esbuild": "^0.14.47",
"esbuild-jest": "^0.5.0",
"esbuild-plugin-glob": "^1.1.2",
"eslint": "^8.15.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-jest": "^26.1.5",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^28.1.0",
"nock": "^13.2.4",
"np": "^8.0.4",
"prettier": "^2.6.2"
},
"jest": {
"transform": {
"^.+\\.(t|j)sx?$": [
"esbuild-jest"
]
}
},
"np": {
"yarn": false
},
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/thegreenwebfoundation/co2.js.git"
}
}