generated from environment-safe/template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
107 lines (107 loc) · 3.83 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
{
"name": "@environment-safe/template",
"version": "0.0.2",
"type": "module",
"main": "dist/index.mjs",
"module": "src/index.mjs",
"commonjs": "dist/index.cjs",
"exports": {
".": {
"import": "./src/index.mjs",
"require": "./dist/index.cjs"
},
"./package.json": {
"import": "./package.json",
"require": "./package.json"
},
"./src/index.mjs": {
"import": "./src/index.mjs",
"require": "./dist/index.cjs"
},
"./dist/index.cjs": {
"import": "./src/index.mjs",
"require": "./dist/index.cjs"
}
},
"homepage": "https://github.com/environment-safe/template",
"description": "A template for buildless module development",
"keywords": [],
"author": "Abbey Hawk Sparrow <@khrome> (http://patternweaver.com)",
"contributors": [],
"repository": {
"type": "git",
"url": "[email protected]:environment-safe/template.git"
},
"bugs": {
"url": "https://github.com/environment-safe/template/issues"
},
"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"
}
},
"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.2.0",
"@environment-safe/commonjs-builder": "^0.0.3",
"@environment-safe/jsdoc-builder": "^0.0.2",
"@open-automaton/moka": "^0.5.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",
"mocha": "^10.2.0"
},
"scripts": {
"lint": "eslint src/*.mjs test/*.mjs",
"test": "npm run import-test; npm run browser-test; npm run require-test",
"import-test": "mocha test/test.mjs",
"require-test": "mocha test/test.cjs",
"build-commonjs": "./node_modules/@environment-safe/commonjs-builder/bin/build.mjs",
"local-server": "open 'http://localhost:8085/' ; npx http-server -p 8085",
"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)\"",
"build-docs": "build-jsdoc docs",
"build-types": "build-jsdoc types",
"add-generated-files-to-commit": "git add docs/*.md; git add src/*.d.ts; git add dist/*.cjs",
"prepare": "husky install"
},
"dependencies": {
"browser-or-node": "^2.1.1"
}
}