-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
141 lines (141 loc) · 5.48 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
"name": "@open-automaton/moka",
"version": "0.5.5",
"type": "module",
"main": "dist/index.mjs",
"module": "src/index.mjs",
"commonjs": "dist/index.cjs",
"exports": {
".": {
"import": "./src/index.mjs",
"require": "./dist/index.cjs"
},
"./index.js": {
"import": "./src/index.mjs",
"require": "./dist/index.cjs"
},
"./stub.js": {
"import": "./src/stub.mjs",
"require": "./dist/stub.cjs"
},
"./src/stub.mjs": {
"import": "./src/stub.mjs",
"require": "./dist/stub.cjs"
},
"./dist/stub.cjs": {
"import": "./src/stub.mjs",
"require": "./dist/stub.cjs"
}
},
"homepage": "https://github.com/open-automaton/moka",
"description": "Run esmodule mocha tests in node + the using 1 suite with no boilerplate",
"keywords": [
"mocha",
"browser",
"test",
"testing",
"modules",
"esmodules"
],
"author": "Abbey Hawk Sparrow <@khrome> (http://patternweaver.com)",
"contributors": [],
"repository": {
"type": "git",
"url": "https://github.com/open-automaton/moka.git"
},
"bugs": {
"url": "https://github.com/open-automaton/moka/issues"
},
"bin": {
"mocha-automaton": "./bin/moka.mjs",
"moka": "./bin/moka.mjs"
},
"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": "src/stub.mjs",
"stubs": [
"express",
"module",
"os",
"fs",
"path"
],
"shims": {
"chai": "node_modules/chai/chai.js",
"browser-or-node": "node_modules/browser-or-node/src/index.js",
"environment-safe-package/src/environment-safe-package.mjs": "node_modules/environment-safe-package/src/environment-safe-package.mjs"
}
},
"license": "MIT",
"devDependencies": {
"@babel/cli": "^7.22.5",
"@babel/core": "^7.22.5",
"@babel/plugin-transform-modules-commonjs": "^7.22.5",
"@environment-safe/chai": "^0.1.0",
"@environment-safe/console-intercept": "^0.1.0",
"@environment-safe/elements": "^0.0.2",
"babel-plugin-search-and-replace": "^1.1.1",
"babel-plugin-transform-import-meta": "^2.2.0",
"chai": "^4.3.7",
"eslint": "^8.43.0",
"husky": "^8.0.3",
"jsdoc": "^3.6.11",
"jsdoc-to-markdown": "^8.0.0",
"mocha": "^10.2.0",
"tsd-jsdoc": "^2.5.0"
},
"scripts": {
"lint": "./node_modules/.bin/eslint src/*.mjs test/*.mjs",
"test": "npm run import-test; npm run headless-browser-test; ",
"import-test": "./node_modules/.bin/mocha test/test.mjs",
"moka-test": "./bin/moka.mjs test/test.mjs",
"require-test": "./node_modules/.bin/mocha test/test.cjs",
"build-commonjs": "./node_modules/.bin/babel src --out-dir dist --out-file-extension .cjs",
"headless-browser-test": "npm run headless-chrome-test; npm run headless-firefox-test; npm run headless-safari-test",
"headless-chrome-test": "./bin/moka.mjs --server . --browser chrome test/test.mjs",
"headless-firefox-test": "./bin/moka.mjs --server . --browser firefox --relaxed --prefix ../ test/test.mjs",
"headless-safari-test": "./bin/moka.mjs --server . --browser safari --relaxed --prefix ../ test/test.mjs",
"browser-test": "./bin/moka.mjs --server . --local-browser --relaxed --prefix ../ test/test.mjs",
"container-test": "docker build . -t moka.json -f ./containers/test.dockerfile; docker logs --follow \"$(docker run -d moka.json)\"",
"generate-docs": "for i in src/*.mjs; do echo \"generating docs for: ${i}\";./node_modules/.bin/jsdoc2md -c .jsdoc.json \"${i}\" > \"docs/$(basename ${i%.mjs}).md\"; done",
"generate-types": "for i in src/*.mjs; do echo \"generating types for: ${i}\"; ./node_modules/.bin/jsdoc -t node_modules/tsd-jsdoc/dist -c .jsdoc.json \"${i}\"; mv out/types.d.ts \"src/$(basename ${i%.mjs}).d.ts\"; done; rmdir out",
"add-generated-files-to-commit": "git add docs/*.md; git add src/*.d.ts; git add dist/*.cjs",
"prepare": "husky install"
},
"dependencies": {
"@babel/generator": "^7.23.0",
"@babel/parser": "^7.23.0",
"@babel/traverse": "^7.23.0",
"@environment-safe/file": "^0.3.2",
"@environment-safe/import-introspect": "^0.1.0",
"@environment-safe/package": "^0.1.2",
"@environment-safe/runtime-context": "^0.0.1",
"@open-automaton/automaton": "^0.1.0",
"@open-automaton/cheerio-mining-engine": "^0.0.8",
"@open-automaton/jsdom-mining-engine": "^0.0.1",
"@open-automaton/playwright-mining-engine": "^0.4.2",
"@open-automaton/puppeteer-mining-engine": "^0.0.8",
"browser-or-node": "^2.1.1",
"detect-browser": "^5.3.0",
"express": "^4.18.2",
"why-is-node-running": "^2.2.2",
"yargs": "^17.7.2"
}
}