-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
36 lines (36 loc) · 1.47 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
{
"name": "h2server",
"version": "0.3.0",
"repository": "https://github.com/Teal/H2Server",
"description": "An out-of-the-box web server for serving up local files, support https & http2",
"license": "MIT",
"author": "xuld <[email protected]>",
"engines": {
"node": ">=10.12"
},
"main": "./dist/index.js",
"bin": {
"h2server": "./dist/cli.js"
},
"dependencies": {
"tutils": "^2.1.2"
},
"devDependencies": {
"@types/mocha": "^8.0.3",
"@types/node": "^14.14.3",
"coveralls": "^3.1.0",
"mocha": "^8.2.0",
"nyc": "^15.1.0",
"ts-node": "^9.0.0",
"typescript": "^4.0.3"
},
"scripts": {
"start": "ts-node ./src/cli.ts",
"prepublishOnly": "npm run build && npm run test",
"build": "tsc -p tsconfig.json --declaration",
"watch": "tsc -p tsconfig.json --declaration --watch",
"test": "mocha -r ts-node/register/transpile-only --ui exports **/*.test.ts",
"coverage": "node -e \"process.argv[8] = require.resolve('mocha/bin/mocha'); if (process.argv[14]) { process.argv[13] = process.argv[14].replace(/^src([\\\\/].*)\\.ts/, 'test$' + '1.test.ts'); process.argv.splice(14, 1) } require('nyc/bin/nyc')\" nyc --reporter=text-summary --reporter=html --report-dir=coverage --temp-dir=coverage/.nyc_output --extension=.ts --include=src/** mocha -r ts-node/register/transpile-only --ui exports **/*.test.ts",
"coveralls": "nyc report --reporter=text-lcov --report-dir=coverage --temp-dir=coverage/.nyc_output | coveralls"
}
}