-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
79 lines (79 loc) · 3.04 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
{
"name": "u8-mqtt",
"description": "MQTT client using Uint8Array -- suitable for use in the Browser, NodeJS, and Deno.land.",
"version": "0.6.6",
"license": "BSD-2-Clause",
"author": "Shane Holloway <shane.holloway@ieee.org>",
"homepage": "https://github.com/shanewholloway/js-u8-mqtt#readme",
"bugs": {
"url": "https://github.com/shanewholloway/js-u8-mqtt/issues"
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/shanewholloway/js-u8-mqtt.git"
},
"files": [
"cjs/",
"code/",
"esm/"
],
"type": "module",
"main": "./cjs/index.cjs",
"module": "./esm/index.js",
"browser": "./esm/web/index.min.js",
"exports": {
"./esm/*": "./esm/*",
"./cjs/*": "./cjs/*",
"./web": "./esm/web/index.js",
"./deno": "./esm/deno/index.js",
"./node": "./esm/node/index.js",
"./core": "./esm/index.js",
".": {
"browser": "./esm/web/index.js",
"deno": "./esm/deno/index.js",
"require": "./cjs/index.cjs",
"node": "./esm/node/index.js",
"import": "./esm/index.js",
"default": "./esm/index.js"
}
},
"workspaces": [
"demo",
"test"
],
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-virtual": "^3.0.2",
"qsrv": "^0.2.6",
"regexparam": "^3.0.0",
"rollup": "^3.29.5",
"rollup-plugin-dgnotify": "^0.1.8",
"rollup-plugin-jsy": "^1.9.2",
"u8-mqtt-packet": "^0.4.1"
},
"scripts": {
"serve": "qsrv -- *.html esm/",
"clean": "rm -rf ./cjs/* ./esm/*",
"prebuild": "test -d ./node_modules || npm -s ci",
"build": "rollup --config",
"watch": "rollup --config --watch",
"precompress": "rm -rf esm/web/* ; npm -s run build",
"compress": "gzip -k esm/web/*.min.js ; brotli esm/web/*.min.js",
"postcompress": "node ./_util/doc_compressed.js docs/compressed.md",
"dkr_deps": "docker stack deploy -c test/integ/deps-deploy.yml integ_mqtt",
"demo:node_v4": "node ./demo/node_v4.js",
"demo:node_v5": "node ./demo/node_v5.js",
"demo:deno_v4": "deno run --allow-net --allow-env=U8_MQTT ./demo/deno_v4.js",
"demo:deno_v5": "deno run --allow-net --allow-env=U8_MQTT ./demo/deno_v5.js",
"socat:ws:mosquitto_v16": "nix-shell -p socat --run 'socat -dd tcp-listen:6880,reuseaddr,fork tcp:localhost:9880'",
"socat:tcp:mosquitto_v16": "nix-shell -p socat --run 'socat -dd tcp-listen:6883,reuseaddr,fork tcp:localhost:9883'",
"socat:ws:mosquitto_v20": "nix-shell -p socat --run 'socat -dd tcp-listen:6880,reuseaddr,fork tcp:localhost:9890'",
"socat:tcp:mosquitto_v20": "nix-shell -p socat --run 'socat -dd tcp-listen:6883,reuseaddr,fork tcp:localhost:9893'",
"socat:ws:ejabberd": "nix-shell -p socat --run 'socat -dd tcp-listen:6880,reuseaddr,fork tcp:localhost:5880'",
"socat:tcp:ejabberd": "nix-shell -p socat --run 'socat -dd tcp-listen:6883,reuseaddr,fork tcp:localhost:5883'",
"pretest": "npm -s run build",
"test": "cd test; npm -s run test",
"prepublishOnly": "npm -s run compress && npm -s run test"
}
}