This repository has been archived by the owner on Feb 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
package.json
111 lines (111 loc) · 4.29 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
{
"name": "@alphahorizonio/unisockets",
"version": "0.1.1",
"description": "A universal Berkeley sockets implementation for both WebAssembly (based on WebRTC) and native platforms with bindings for C, Go and TinyGo.",
"source": "index.ts",
"main": "dist/nodeLib/index.js",
"module": "dist/webLib/index.js",
"types": "dist/index.d.ts",
"binSource": "cmd/unisockets_runner/main.ts",
"binMain": "dist/nodeApp/main.js",
"scripts": {
"build": "rm -rf dist && yarn build:lib && yarn build:app:node && yarn build:app:web",
"build:lib": "rollup -c",
"build:app:node": "rollup -c && chmod +x dist/nodeApp/main.js && chmod +x dist/nodeApp/main.js",
"build:app:web": "mkdir -p dist/webApp out && cp -r out dist/webApp && parcel build --target webApp cmd/unisockets_runner_web/index.html",
"build:diagram": "mkdir -p dist/media && tplant -p tsconfig.json -i 'pkg/**/*.ts*' --output 'dist/media/diagram.svg'",
"build:protocol": "mkdir -p dist/media && puml generate --svg protocol.puml -o dist/media/sequence.svg",
"build:docs": "mkdir -p dist/docs && typedoc --tsconfig tsconfig.json --mode file --outDir dist/docs --out dist/docs --media dist/media --exclude '+(node_modules|dist)' .",
"test": "jest",
"test:update": "jest --updateSnapshot",
"dev:tests": "jest ---watchAll",
"dev:lib": "rollup -c -w",
"dev:app:node:signaling-server": "LOG_LEVEL=debug DEBUG='' ts-node-dev --files cmd/unisockets_runner/main.ts --runSignalingServer true",
"dev:app:node:example-server": "LOG_LEVEL=debug DEBUG='' ts-node-dev --files cmd/unisockets_runner/main.ts --runBinary true --useC true --useWASI true --binaryPath out/c/echo_server.wasm",
"dev:app:node:example-client": "LOG_LEVEL=debug DEBUG='' ts-node-dev --files cmd/unisockets_runner/main.ts --runBinary true --useC true --useWASI true --binaryPath out/c/echo_client.wasm",
"dev:app:web": "mkdir -p dist/webApp out && cp -r out dist/webApp && parcel --hmr-port 1235 --target webApp cmd/unisockets_runner_web/index.html",
"start": "yarn start:app:node:signaling-server",
"start:app:node:signaling-server": "./dist/nodeApp/main.js --runSignalingServer true",
"start:app:node:example-server": "./dist/nodeApp/main.js --runBinary true --useC true --useWASI true --binaryPath out/c/echo_server.wasm",
"start:app:node:example-client": "./dist/nodeApp/main.js --runBinary true --useC true --useWASI true --binaryPath out/c/echo_client.wasm",
"start:app:web": "serve dist/webApp",
"start:docs": "serve dist/docs"
},
"bin": {
"unisockets_runner": "dist/nodeApp/main.js"
},
"files": [
"dist/nodeApp",
"dist/nodeLib",
"dist/webLib",
"dist/index.d.ts"
],
"repository": {
"type": "git",
"url": "git+https://github.com/alphahorizonio/unisockets.git"
},
"author": "Felicitas Pojtinger <felicitas@pojtinger.com>",
"license": "AGPL-3.0",
"bugs": {
"url": "https://github.com/alphahorizonio/unisockets/issues"
},
"homepage": "https://github.com/alphahorizonio/unisockets#readme",
"devDependencies": {
"@types/jest": "^26.0.16",
"@types/uuid": "^8.3.0",
"@types/ws": "^7.4.0",
"@types/yargs": "^15.0.9",
"esbuild": "^0.8.20",
"get-port": "^5.1.1",
"jest": "^26.6.3",
"parcel": "^2.0.0-nightly.469",
"rollup": "^2.34.2",
"rollup-plugin-dts": "^2.0.0",
"rollup-plugin-esbuild": "^2.6.0",
"rollup-plugin-hashbang": "^2.2.2",
"tplant": "^2.3.6",
"ts-jest": "^26.4.4",
"ts-node-dev": "^1.0.0",
"typedoc": "^0.19.2",
"typescript": "^4.0.5"
},
"dependencies": {
"@wasmer/wasi": "^0.12.0",
"@wasmer/wasm-transformer": "^0.12.0",
"@wasmer/wasmfs": "^0.12.0",
"async-mutex": "^0.2.6",
"asyncify-wasm": "^1.1.1",
"emittery": "^0.7.2",
"isomorphic-ws": "^4.0.1",
"serve": "^11.3.2",
"uuid": "^8.3.1",
"winston": "^3.3.3",
"wrtc": "^0.4.6",
"ws": "^7.4.0",
"yargs": "^16.1.0"
},
"targets": {
"webApp": {
"distDir": "dist/webApp",
"engines": {
"browsers": ">=5%"
}
}
},
"jest": {
"rootDir": "pkg",
"preset": "ts-jest",
"testEnvironment": "node",
"testMatch": [
"<rootDir>/**/*.test.ts"
],
"coverageThreshold": {
"global": {
"branches": 0,
"functions": 0,
"lines": 0,
"statements": 0
}
}
}
}