forked from khrome/environment-safe-canvas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
114 lines (114 loc) · 3.81 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"name": "@environment-safe/canvas",
"version": "4.2.0",
"type": "module",
"main": "dist/index.mjs",
"module": "src/index.mjs",
"commonjs": "dist/index.cjs",
"exports": {
".": {
"import": "./src/index.mjs",
"require": "./dist/index.cjs"
},
"./src/file-saver.mjs": {
"import": "./src/file-saver.mjs",
"require": "./dist/file-saver.cjs"
},
"./dist/file-saver.cjs": {
"import": "./src/file-saver.mjs",
"require": "./dist/file-saver.cjs"
},
"./index.js": {
"import": "./src/index.mjs",
"require": "./dist/index.cjs"
},
"./canvas.js": {
"import": "./src/index.mjs",
"require": "./dist/index.cjs"
}
},
"homepage": "https://github.com/environment-safe/canvas",
"description": "Use canvas in a uniform way across commonjs/modules and node/browser",
"keywords": [
"native",
"esmodules",
"browser",
"canvas"
],
"author": "Abbey Hawk Sparrow <@khrome> (http://patternweaver.com)",
"contributors": [],
"repository": {
"type": "git",
"url": "git@github.com:environment-safe/canvas.git"
},
"bugs": {
"url": "https://github.com/environment-safe/canvas/issues"
},
"license": "MIT",
"moka": {
"firefox": {
"engine": "@open-automaton/playwright-mining-engine",
"options": {
"type": "firefox"
}
},
"chrome": {
"engine": "@open-automaton/playwright-mining-engine",
"options": {
"type": "chromium"
}
},
"safari": {
"engine": "@open-automaton/playwright-mining-engine",
"options": {
"type": "webkit"
}
},
"stub": "node_modules/@open-automaton/moka/src/stub.mjs",
"stubs": [
"express",
"module",
"os",
"fs",
"path",
"@babel/cli",
"@babel"
],
"shims": {
"chai": "node_modules/chai/chai.js",
"@environment-safe/file": "node_modules/@environment-safe/file/src/index.mjs",
"browser-or-node": "node_modules/browser-or-node/src/index.js"
}
},
"devDependencies": {
"@environment-safe/chai": "^0.1.0",
"@environment-safe/package": "^0.2.0",
"@open-automaton/moka": "^0.5.1",
"canvas": "^2.11.2",
"chai": "^4.3.7",
"detect-browser": "^5.3.0",
"eslint": "^8.44.0",
"husky": "^8.0.3",
"mocha": "^10.2.0"
},
"scripts": {
"lint": "./node_modules/.bin/eslint src/*.mjs test/*.mjs",
"import-test": "moka test/test.mjs",
"require-test": "./node_modules/.bin/mocha test/test.cjs",
"test": "npm run import-test; npm run headless-browser-test; npm run require-test",
"headless-browser-test": "npm run headless-chrome-test; npm run headless-firefox-test; npm run headless-safari-test",
"headless-chrome-test": "moka --server . --browser chrome test/test.mjs",
"headless-firefox-test": "moka --server . --browser firefox test/test.mjs",
"headless-safari-test": "moka --server . --browser safari test/test.mjs",
"browser-test": "moka --server . --local-browser test/test.mjs",
"container-test": "docker build . -t environment-safe-package.json -f ./containers/test.dockerfile; docker logs --follow \"$(docker run -d environment-safe-package.json)\"",
"prepare": "husky install"
},
"dependencies": {
"@environment-safe/file": "^0.3.1",
"@environment-safe/runtime-context": "^0.0.1"
},
"peerDependencies": {
"canvas": "^2.11.2"
}
}