1 | {
|
2 | "name": "matrix-js-sdk",
|
3 | "version": "2.4.2",
|
4 | "description": "Matrix Client-Server SDK for Javascript",
|
5 | "main": "index.js",
|
6 | "scripts": {
|
7 | "test:build": "babel -s -d specbuild spec",
|
8 | "test:run": "istanbul cover --report text --report cobertura --config .istanbul.yml -i \"lib/**/*.js\" node_modules/mocha/bin/_mocha -- --recursive specbuild --colors --reporter mocha-jenkins-reporter --reporter-options junit_report_path=reports/test-results.xml",
|
9 | "test:watch": "mocha --watch --compilers js:babel-core/register --recursive spec --colors",
|
10 | "test": "yarn test:build && yarn test:run",
|
11 | "check": "yarn test:build && _mocha --recursive specbuild --colors",
|
12 | "gendoc": "babel --no-babelrc --plugins transform-class-properties -d .jsdocbuild src && jsdoc -r .jsdocbuild -P package.json -R README.md -d .jsdoc",
|
13 | "start": "yarn start:init && yarn start:watch",
|
14 | "start:watch": "babel -s -w --skip-initial-build -d lib src",
|
15 | "start:init": "babel -s -d lib src",
|
16 | "clean": "rimraf lib dist",
|
17 | "build": "babel -s -d lib src && rimraf dist && mkdir dist && browserify -d browser-index.js | exorcist dist/browser-matrix.js.map > dist/browser-matrix.js && terser -c -m -o dist/browser-matrix.min.js --source-map \"content='dist/browser-matrix.js.map'\" dist/browser-matrix.js",
|
18 | "dist": "yarn build",
|
19 | "watch": "watchify -d browser-index.js -o 'exorcist dist/browser-matrix.js.map > dist/browser-matrix.js' -v",
|
20 | "lint": "eslint --max-warnings 93 src spec",
|
21 | "prepare": "yarn clean && yarn build && git rev-parse HEAD > git-revision.txt"
|
22 | },
|
23 | "repository": {
|
24 | "type": "git",
|
25 | "url": "https://github.com/matrix-org/matrix-js-sdk"
|
26 | },
|
27 | "keywords": [
|
28 | "matrix-org"
|
29 | ],
|
30 | "browser": "browser-index.js",
|
31 | "author": "matrix.org",
|
32 | "license": "Apache-2.0",
|
33 | "files": [
|
34 | ".babelrc",
|
35 | ".eslintrc.js",
|
36 | "spec/.eslintrc.js",
|
37 | "CHANGELOG.md",
|
38 | "CONTRIBUTING.rst",
|
39 | "LICENSE",
|
40 | "README.md",
|
41 | "RELEASING.md",
|
42 | "examples",
|
43 | "git-hooks",
|
44 | "git-revision.txt",
|
45 | "index.js",
|
46 | "browser-index.js",
|
47 | "jenkins.sh",
|
48 | "lib",
|
49 | "package.json",
|
50 | "release.sh",
|
51 | "spec",
|
52 | "src"
|
53 | ],
|
54 | "dependencies": {
|
55 | "another-json": "^0.2.0",
|
56 | "babel-runtime": "^6.26.0",
|
57 | "bluebird": "^3.5.0",
|
58 | "browser-request": "^0.3.3",
|
59 | "bs58": "^4.0.1",
|
60 | "content-type": "^1.0.2",
|
61 | "loglevel": "1.6.1",
|
62 | "qs": "^6.5.2",
|
63 | "request": "^2.88.0",
|
64 | "unhomoglyph": "^1.0.2"
|
65 | },
|
66 | "devDependencies": {
|
67 | "babel-cli": "^6.18.0",
|
68 | "babel-eslint": "^10.0.1",
|
69 | "babel-plugin-transform-async-to-bluebird": "^1.1.1",
|
70 | "babel-plugin-transform-class-properties": "^6.24.1",
|
71 | "babel-plugin-transform-runtime": "^6.23.0",
|
72 | "babel-preset-es2015": "^6.18.0",
|
73 | "browserify": "^16.2.3",
|
74 | "browserify-shim": "^3.8.13",
|
75 | "eslint": "^5.12.0",
|
76 | "eslint-config-google": "^0.7.1",
|
77 | "eslint-plugin-babel": "^5.3.0",
|
78 | "exorcist": "^0.4.0",
|
79 | "expect": "^1.20.2",
|
80 | "istanbul": "^0.4.5",
|
81 | "jsdoc": "^3.5.5",
|
82 | "lolex": "^1.5.2",
|
83 | "matrix-mock-request": "^1.2.3",
|
84 | "mocha": "^5.2.0",
|
85 | "mocha-jenkins-reporter": "^0.4.0",
|
86 | "olm": "https://packages.matrix.org/npm/olm/olm-3.1.4.tgz",
|
87 | "rimraf": "^2.5.4",
|
88 | "source-map-support": "^0.4.11",
|
89 | "sourceify": "^0.1.0",
|
90 | "terser": "^4.0.0",
|
91 | "watchify": "^3.11.1"
|
92 | },
|
93 | "browserify": {
|
94 | "transform": [
|
95 | "sourceify"
|
96 | ]
|
97 | }
|
98 | }
|