forked from onsip/SIP.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
105 lines (105 loc) · 5.76 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
{
"name": "sip.js",
"title": "SIP.js",
"description": "A SIP library for JavaScript",
"version": "0.20.0",
"license": "MIT",
"main": "./lib/index.js",
"module": "./lib/index.js",
"sideEffects": false,
"type": "module",
"types": "./lib/index.d.ts",
"homepage": "https://sipjs.com",
"author": "OnSIP <[email protected]> (https://sipjs.com/aboutus/)",
"contributors": [
{
"name": "Contributors",
"url": "https://github.com/onsip/SIP.js/blob/master/THANKS.md"
}
],
"repository": {
"type": "git",
"url": "https://github.com/onsip/SIP.js.git"
},
"keywords": [
"sip",
"webrtc",
"library",
"websocket",
"javascript",
"typescript"
],
"dependencies": {},
"devDependencies": {
"@microsoft/api-documenter": "7.7.20",
"@microsoft/api-extractor": "7.7.11",
"@types/jasmine": "^3.6.6",
"@typescript-eslint/eslint-plugin": "^2.34.0",
"@typescript-eslint/parser": "^2.34.0",
"circular-dependency-plugin": "^5.2.2",
"eslint": "^7.22.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-tree-shaking": "^1.8.0",
"jasmine-core": "^3.6.0",
"karma": "^6.2.0",
"karma-chrome-launcher": "^3.1.0",
"karma-cli": "^2.0.0",
"karma-jasmine": "4.0.1",
"karma-jasmine-html-reporter": "^1.5.4",
"karma-mocha-reporter": "^2.2.5",
"karma-sourcemap-loader": "^0.3.8",
"karma-webpack": "^5.0.0",
"mock-socket": "^9.0.3",
"pegjs": "^0.10.0",
"prettier": "2.2.1",
"ts-loader": "^8.0.18",
"ts-pegjs": "0.3.1",
"typescript": "4.2.3",
"webpack": "^5.26.0",
"webpack-cli": "^4.5.0"
},
"engines": {
"node": ">=10.0"
},
"scripts": {
"prebuild": "npm run lint",
"generate-grammar": "node build/grammarGenerator.cjs",
"build-reg-bundle": "webpack --progress --config build/webpack.config.cjs --env buildType=reg",
"build-min-bundle": "webpack --progress --config build/webpack.config.cjs --env buildType=min",
"build-bundles": "npm run build-reg-bundle && npm run build-min-bundle",
"build-demo": "npm run generate-grammar && webpack --progress --config demo/webpack.config.cjs",
"build-lib": "tsc -p src",
"build-test": "tsc -p test",
"copy-dist-files": "cp dist/sip.js dist/sip-$npm_package_version.js && cp dist/sip.min.js dist/sip-$npm_package_version.min.js",
"build": "npm run generate-grammar && npm run build-lib && npm run build-reg-bundle && npm run build-min-bundle && npm run copy-dist-files",
"browser-test": "npm run build-test && sleep 2 && (open http://localhost:9876/debug.html &) && karma start karma.conf.cjs --reporters kjhtml --no-single-run",
"command-line-test": "npm run build-test && karma start karma.conf.cjs --reporters mocha --browsers ChromeHeadlessFakeMediaStream --single-run",
"build-and-test": "npm run build && npm run command-line-test",
"build-and-browser-test": "npm run build && npm run browser-test",
"extract-api": "api-extractor run --local --verbose --config src/api/api-extractor.json",
"extract-core": "api-extractor run --local --verbose --config src/core/api-extractor.json",
"extract-session-description-handler": "api-extractor run --local --verbose --config src/platform/web/session-description-handler/api-extractor.json",
"extract-simple-user": "api-extractor run --local --verbose --config src/platform/web/simple-user/api-extractor.json",
"extract-transport": "api-extractor run --local --verbose --config src/platform/web/transport/api-extractor.json",
"document-api": "api-documenter markdown --input-folder ./temp/api --output-folder ./temp/docs/api",
"document-core": "api-documenter markdown --input-folder ./temp/core --output-folder ./temp/docs/core",
"document-session-description-handler": "api-documenter markdown --input-folder ./temp/session-description-handler --output-folder ./temp/docs/session-description-handler",
"document-simple-user": "api-documenter markdown --input-folder ./temp/simple-user --output-folder ./temp/docs/simple-user",
"document-transport": "api-documenter markdown --input-folder ./temp/transport --output-folder ./temp/docs/transport",
"document-copy-api": "rm -rf ./docs/api/sip.js.* && cp ./temp/docs/api/* ./docs/api",
"document-copy-core": "rm -rf ./docs/core/sip.js.* && cp ./temp/docs/core/* ./docs/core",
"document-copy-session-description-handler": "rm -rf ./docs/session-description-handler/sip.js.* && cp ./temp/docs/session-description-handler/* ./docs/session-description-handler",
"document-copy-simple-user": "rm -rf ./docs/simple-user/sip.js.* && cp ./temp/docs/simple-user/* ./docs/simple-user",
"document-copy-transport": "rm -rf ./docs/transport/sip.js.* && cp ./temp/docs/transport/* ./docs/transport",
"build-docs-api": "npm run extract-api && npm run document-api && npm run document-copy-api",
"build-docs-core": "npm run extract-core && npm run document-core && npm run document-copy-core",
"build-docs-session-description-handler": "npm run extract-session-description-handler && npm run document-session-description-handler && npm run document-copy-session-description-handler",
"build-docs-simple-user": "npm run extract-simple-user && npm run document-simple-user && npm run document-copy-simple-user",
"build-docs-transport": "npm run extract-transport && npm run document-transport && npm run document-copy-transport",
"build-docs": "npm run build-lib && npm run build-docs-api && npm run build-docs-core && npm run build-docs-session-description-handler && npm run build-docs-simple-user && npm run build-docs-transport",
"lint": "eslint --ext .ts .",
"lint-fix": "eslint --ext .ts --fix .",
"version": "sed -i '' \"s/LIBRARY_VERSION = .*/LIBRARY_VERSION = \\\"$npm_package_version\\\";/\" src/version.ts"
}
}