-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.json
84 lines (84 loc) · 3.06 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
{
"name": "unload",
"version": "2.4.1",
"description": "Execute code when the js-process exits. On all javascript-environments",
"author": "pubkey",
"license": "Apache-2.0",
"keywords": [
"unload",
"exit",
"onunload",
"SIGINT",
"uncaughtException",
"beforeExit"
],
"scripts": {
"lint": "eslint src test",
"preversion": "npm run lint && npm run test",
"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:browser": "browserify dist/lib/index.browserify.js > dist/browserify.js",
"build:worker": "browserify test/helper/worker.js > test_tmp/worker.js",
"build": "npm run clear && concurrently \"npm run build:es6\" \"npm run build:es5\" \"npm run build:test\" && npm run build:browser && npm run build:worker",
"clear": "rimraf -rf ./dist",
"pingserver": "node ./test/helper/ping-server.node.js",
"test:typings": "npm run build && mocha ./test_tmp/typings.test.js -b --timeout 12000 --exit",
"test:node": "npm run build && concurrently --kill-others -s first \"npm run pingserver\" \"mocha -b test_tmp/nodejs.test.js\"",
"test:browser:server": "http-server . -p 8080 --cors --silent",
"test:browser": "npm run build && concurrently --kill-others -s first \"npm run test:browser:server\" \"npm run pingserver\" \"karma start ./config/karma.conf.js --single-run\"",
"test": "npm run test:node && npm run test:browser"
},
"repository": {
"type": "git",
"url": "git+https://github.com/pubkey/unload.git"
},
"funding": "https://github.com/sponsors/pubkey",
"pre-commit": [
"lint"
],
"main": "./dist/lib/index.js",
"module": "./dist/es/index.js",
"types": "./src/index.d.ts",
"devDependencies": {
"@babel/cli": "7.25.9",
"@babel/core": "7.26.0",
"@babel/plugin-check-constants": "7.0.0-beta.38",
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
"@babel/plugin-transform-member-expression-literals": "7.25.9",
"@babel/plugin-transform-property-literals": "7.25.9",
"@babel/plugin-transform-runtime": "7.25.9",
"@babel/polyfill": "7.12.1",
"@babel/preset-env": "7.26.0",
"@babel/types": "7.26.0",
"assert": "2.1.0",
"async-test-util": "2.5.0",
"browserify": "17.0.1",
"child_process": "1.0.2",
"child-process-promise": "2.2.1",
"concurrently": "9.1.0",
"cors": "2.8.5",
"cross-env": "7.0.3",
"eslint": "8.57.1",
"express": "4.21.1",
"http-server": "14.1.1",
"karma": "6.4.4",
"karma-browserify": "8.1.0",
"karma-chrome-launcher": "3.2.0",
"karma-mocha": "2.0.1",
"mocha": "10.8.2",
"node-cmd": "5.0.0",
"npm-run-all2": "7.0.1",
"pre-commit": "1.2.2",
"request": "2.88.2",
"request-promise-native": "1.0.9",
"rimraf": "6.0.1",
"ts-node": "7.0.1",
"typescript": "5.6.3",
"uglify-js": "3.19.3",
"util": "0.12.5",
"watch": "1.0.2",
"watchify": "4.0.0"
},
"dependencies": {}
}