-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
73 lines (73 loc) · 3.3 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
{
"name": "natural-framework",
"version": "0.2.1",
"description": "",
"main": "lib/server.js",
"engines": {
"node": ">=14.x"
},
"files": [
"LICENSE",
"README.md",
"lib/"
],
"homepage": "https://github.com/jesusvilla/natural#readme",
"scripts": {
"lint": "standard",
"create:ssl:single": "cd example/security && openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout cert.key -out cert.pem -config req.cnf",
"create:ssl": "cd example/security && openssl req -x509 -newkey rsa:2048 -keyout cert.temp.key -out cert.pem -days 365 && openssl rsa -in cert.temp.key -out cert.key && rm -f cert.temp.key",
"dev": "rollup -c",
"dev:debug": "nodemon --exec babel-node --inspect ./src/example/index.js",
"dev:router": "nodemon ./example/indexRouter.js",
"dev:router:worker": "miniflare ./example/router.bundle.js -w -d -p 3000",
"build": "cross-env BABEL_ENV=production babel src -d lib --copy-files",
"build:example": "cross-env BABEL_ENV=production babel example -d lib/example --copy-files",
"build:src": "cross-env BABEL_ENV=production babel src -d lib/src --copy-files",
"build:dev": "npm run build:example && npm run build:src",
"build:router:worker": "cross-env SERVER_TYPE=worker rollup -c",
"build:router:uws": "cross-env SERVER_TYPE=uws rollup -c",
"build:router:node": "cross-env SERVER_TYPE=node rollup -c",
"build:router:function": "cross-env SERVER_TYPE=function rollup -c",
"build:router:lambda": "cross-env SERVER_TYPE=lambda rollup -c",
"server": "cross-env NODE_ENV=production node ./lib/example/index.js",
"bench": "autocannon -c 100 -d 10 -p 10 localhost:3000/test/simple/0",
"bench:vs:1": "autocannon -c 100 -d 10 -p 10 localhost:3000/",
"bench:vs:2": "autocannon -c 100 -d 10 -p 10 localhost:3000/user/0",
"bench:vs:3": "autocannon -c 100 -d 10 -p 10 -m 'POST' localhost:3000/user",
"test:uws": "npm run build:router:uws && ava --verbose test/uws.spec.js",
"test:node": "npm run build:router:node && ava --verbose test/node.spec.js",
"test:worker": "npm run build:router:worker && NODE_OPTIONS=--experimental-vm-modules ava --verbose test/worker.spec.js",
"test:function": "npm run build:router:function && ava --verbose test/function.spec.js",
"test:lambda": "npm run build:router:lambda && ava --verbose test/lambda.spec.js"
},
"author": "[email protected]",
"license": "GPL-3.0",
"devDependencies": {
"@babel/cli": "^7.10.4",
"@babel/core": "^7.10.2",
"@babel/node": "^7.10.1",
"@babel/plugin-proposal-class-properties": "^7.10.1",
"@babel/plugin-proposal-decorators": "^7.10.1",
"@babel/preset-env": "^7.10.2",
"@google-cloud/functions-framework": "^3.1.1",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-run": "^2.1.0",
"autocannon": "^4.6.0",
"ava": "^4.2.0",
"babel-eslint": "^10.1.0",
"babel-plugin-module-resolver": "^4.0.0",
"cross-env": "^7.0.2",
"miniflare": "^2.4.0",
"rollup": "^2.72.0",
"standard": "^14.3.4",
"undici": "^5.2.0"
},
"dependencies": {
"fastest-validator": "^1.4.2",
"uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.8.0"
},
"standard": {
"parser": "babel-eslint"
}
}