f1475cd3d7
We release with Node 10 currently, so we should use that. The browser bundle is minfied because we want to keep it, so we might as well shave about 1mb off of it.
89 lines
2.9 KiB
JSON
89 lines
2.9 KiB
JSON
{
|
|
"name": "matrix-js-sdk",
|
|
"version": "2.4.6",
|
|
"description": "Matrix Client-Server SDK for JavaScript",
|
|
"scripts": {
|
|
"start": "echo THIS IS FOR LEGACY PURPOSES ONLY. && babel src -w -s -d lib --verbose --extensions \".ts,.js\"",
|
|
"clean": "rimraf lib dist",
|
|
"build": "yarn clean && git rev-parse HEAD > git-revision.txt && yarn build:compile && yarn build:compile-browser && yarn build:types",
|
|
"build:types": "tsc --emitDeclarationOnly",
|
|
"build:compile": "babel src -s -d lib --verbose --extensions \".ts,.js\"",
|
|
"build:compile-browser": "mkdirp dist && browserify -d src/browser-index.js -p [ tsify -p ./tsconfig.json ] -t [ babelify --sourceMaps=inline ] -t uglifyify > dist/browser-matrix.js",
|
|
"gendoc": "jsdoc -c jsdoc.json -P package.json",
|
|
"lint": "yarn lint:types && yarn lint:ts && yarn lint:js",
|
|
"lint:js": "eslint --max-warnings 93 src spec",
|
|
"lint:types": "tsc --noEmit",
|
|
"lint:ts": "tslint --project ./tsconfig.json -t stylish",
|
|
"test": "jest spec/ --coverage --testEnvironment node",
|
|
"test:watch": "jest spec/ --coverage --testEnvironment node --watch"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/matrix-org/matrix-js-sdk"
|
|
},
|
|
"keywords": [
|
|
"matrix-org"
|
|
],
|
|
"main": "./lib/index.js",
|
|
"typings": "./lib/index.d.ts",
|
|
"browser": "./lib/browser-index.js",
|
|
"author": "matrix.org",
|
|
"license": "Apache-2.0",
|
|
"files": [
|
|
"lib",
|
|
"dist",
|
|
"git-revision.txt",
|
|
"CHANGELOG.md",
|
|
"CONTRIBUTING.rst",
|
|
"LICENSE",
|
|
"README.md",
|
|
"package.json"
|
|
],
|
|
"dependencies": {
|
|
"another-json": "^0.2.0",
|
|
"browser-request": "^0.3.3",
|
|
"bs58": "^4.0.1",
|
|
"content-type": "^1.0.2",
|
|
"loglevel": "^1.6.4",
|
|
"qs": "^6.5.2",
|
|
"request": "^2.88.0",
|
|
"unhomoglyph": "^1.0.2"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.7.5",
|
|
"@babel/core": "^7.7.5",
|
|
"@babel/plugin-proposal-class-properties": "^7.7.4",
|
|
"@babel/plugin-proposal-numeric-separator": "^7.7.4",
|
|
"@babel/plugin-proposal-object-rest-spread": "^7.7.4",
|
|
"@babel/plugin-syntax-dynamic-import": "^7.7.4",
|
|
"@babel/plugin-transform-runtime": "^7.7.6",
|
|
"@babel/preset-env": "^7.7.6",
|
|
"@babel/preset-typescript": "^7.7.4",
|
|
"@babel/register": "^7.7.4",
|
|
"@babel/runtime": "^7.7.6",
|
|
"@types/node": "12",
|
|
"babel-eslint": "^10.0.3",
|
|
"babel-jest": "^24.9.0",
|
|
"babelify": "^10.0.0",
|
|
"better-docs": "^1.4.7",
|
|
"browserify": "^16.5.0",
|
|
"eslint": "^5.12.0",
|
|
"eslint-config-google": "^0.7.1",
|
|
"eslint-plugin-babel": "^5.3.0",
|
|
"eslint-plugin-jest": "^23.0.4",
|
|
"jest": "^24.9.0",
|
|
"jsdoc": "^3.5.5",
|
|
"matrix-mock-request": "^1.2.3",
|
|
"olm": "https://packages.matrix.org/npm/olm/olm-3.1.4.tgz",
|
|
"rimraf": "^3.0.0",
|
|
"source-map-support": "^0.5.13",
|
|
"tsify": "^4.0.1",
|
|
"tslint": "^5.20.1",
|
|
"typescript": "^3.7.3",
|
|
"uglifyify": "^5.0.2"
|
|
},
|
|
"jest": {
|
|
"testEnvironment": "node"
|
|
}
|
|
}
|