forked from pubkey/broadcast-channel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
131 lines (131 loc) · 5.87 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"name": "broadcast-channel",
"version": "3.2.0",
"description": "A BroadcastChannel that works in New Browsers, Old Browsers, WebWorkers and NodeJs",
"homepage": "https://github.com/pubkey/broadcast-channel#readme",
"keywords": [
"broadcast-channel",
"broadcastchannel",
"broadcast",
"polyfill",
"localstorage",
"indexeddb",
"postMessage",
"crosstab",
"ipc",
"leader-election"
],
"repository": {
"type": "git",
"url": "git+https://github.com/pubkey/broadcast-channel.git"
},
"author": "pubkey",
"license": "MIT",
"bugs": {
"url": "https://github.com/pubkey/broadcast-channel/issues"
},
"main": "./dist/lib/index.es5.js",
"jsnext:main": "./dist/es/index.js",
"module": "./dist/es/index.js",
"sideEffects": false,
"types": "./types/index.d.ts",
"scripts": {
"test": "echo \"RUN ALL:\" && npm run test:node && npm run test:browser && npm run test:e2e",
"test:node": "npm run build && mocha ./test/index.test.js -b --timeout 6000 --exit",
"test:node:loop": "npm run test:node && npm run test:node:loop",
"test:browser": "npm run build && karma start ./config/karma.conf.js --single-run",
"test:e2e": "concurrently \"npm run docs:serve\" \"sleep 20 && testcafe -b && testcafe all test/e2e.test.js\" --kill-others --success first",
"test:typings": "npm run build && mocha ./test/typings.test.js -b --timeout 12000 --exit",
"test:performance": "npm run build && mocha ./test/performance.test.js -b --timeout 24000 --exit",
"test:simple": "npm run build && node ./test_tmp/simple.test.js",
"test:electron": "(cd ./test-electron && npm run test)",
"size:prewebpack": "npm run build && cross-env NODE_ENV=build webpack --config ./config/webpack.config.js",
"size:webpack": "npm run size:prewebpack && echo \"Build-Size Webpack (minified+gzip):\" && gzip-size --raw ./test_tmp/webpack.bundle.js",
"size:browserify": "npm run build && rimraf test_tmp/browserify.js && browserify --no-builtins dist/lib/browserify.index.js > test_tmp/browserify.js && uglifyjs --compress --mangle --output test_tmp/browserify.min.js -- test_tmp/browserify.js && echo \"Build-Size browserify (minified+gzip):\" && gzip-size --raw test_tmp/browserify.min.js",
"size:rollup": "npm run build && rollup --config ./config/rollup.config.js && echo \"Build-Size Rollup (minified+gzip):\" && gzip-size --raw ./test_tmp/rollup.bundle.js",
"lint": "eslint src test config",
"clear": "rimraf -rf ./dist && rimraf -rf ./gen",
"build:es6": "rimraf -rf dist/es && cross-env NODE_ENV=es6 babel src --out-dir dist/es",
"build:es5": "cross-env NODE_ENV=es5 babel src --out-dir dist/lib",
"build:test": "cross-env NODE_ENV=es5 babel test --out-dir test_tmp",
"build:index": "browserify test_tmp/scripts/index.js > docs/index.js",
"build:browser": "browserify test_tmp/scripts/e2e.js > docs/e2e.js",
"build:worker": "browserify test_tmp/scripts/worker.js > docs/worker.js",
"build:iframe": "browserify test_tmp/scripts/iframe.js > docs/iframe.js",
"build:leader-iframe": "browserify test_tmp/scripts/leader-iframe.js > docs/leader-iframe.js",
"build:lib-browser": "browserify dist/lib/browserify.index.js > dist/lib/browser.js",
"build:lib-browser:min": "uglifyjs --compress --mangle --output dist/lib/browser.min.js -- dist/lib/browser.js",
"build": "npm run clear && concurrently \"npm run build:es6\" \"npm run build:es5\" \"npm run build:test\" && concurrently \"npm run build:index\" \"npm run build:browser\" \"npm run build:worker\" \"npm run build:iframe\" \"npm run build:leader-iframe\" && npm run build:lib-browser && npm run build:lib-browser:min",
"build:min": "uglifyjs --compress --mangle --output dist/lib/browserify.min.js -- dist/lib/browserify.index.js",
"docs:only": "http-server ./docs --silent",
"docs:serve": "npm run build && echo \"Open http://localhost:8080/\" && npm run docs:only"
},
"pre-commit": [
"lint"
],
"dependencies": {
"@babel/runtime": "^7.7.2",
"detect-node": "^2.0.4",
"js-sha3": "0.8.0",
"microseconds": "0.2.0",
"nano-time": "1.0.0",
"rimraf": "3.0.2",
"unload": "2.2.0"
},
"devDependencies": {
"@babel/cli": "7.11.6",
"@babel/core": "7.11.6",
"@babel/plugin-check-constants": "7.0.0-beta.38",
"@babel/plugin-proposal-object-rest-spread": "7.11.0",
"@babel/plugin-transform-member-expression-literals": "7.10.4",
"@babel/plugin-transform-property-literals": "7.10.4",
"@babel/plugin-transform-runtime": "7.11.5",
"@babel/polyfill": "7.11.5",
"@babel/preset-env": "7.11.5",
"@babel/types": "7.11.5",
"@types/core-js": "2.5.4",
"assert": "2.0.0",
"async-test-util": "1.7.3",
"browserify": "16.5.2",
"child-process-promise": "2.2.1",
"clone": "2.1.2",
"concurrently": "5.3.0",
"convert-hrtime": "3.0.0",
"copyfiles": "2.4.0",
"cross-env": "7.0.2",
"eslint": "7.10.0",
"gzip-size-cli": "3.0.0",
"http-server": "0.12.3",
"karma": "5.2.3",
"karma-babel-preprocessor": "8.0.1",
"karma-browserify": "7.0.0",
"karma-chrome-launcher": "3.1.0",
"karma-coverage": "2.0.3",
"karma-detect-browsers": "2.3.3",
"karma-edge-launcher": "0.4.2",
"karma-firefox-launcher": "1.3.0",
"karma-ie-launcher": "1.0.0",
"karma-mocha": "2.0.1",
"karma-opera-launcher": "1.0.0",
"karma-safari-launcher": "1.0.0",
"mocha": "8.1.3",
"pre-commit": "1.2.2",
"random-int": "2.0.1",
"random-token": "0.0.8",
"rollup": "2.28.2",
"rollup-plugin-node-resolve": "5.2.0",
"rollup-plugin-uglify": "6.0.4",
"testcafe": "1.9.2",
"testcafe-hammerhead": "17.1.20",
"ts-node": "9.0.0",
"typescript": "4.0.3",
"watchify": "3.11.1",
"webpack": "4.44.2",
"webpack-cli": "3.3.12"
},
"browser": {
"./src/methods/node.js": false,
"./dist/es/methods/node.js": false,
"./dist/lib/methods/node.js": false
}
}