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
|
{
"name": "matrix-widget-api",
"version": "1.3.1",
"description": "Matrix Widget API SDK",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"repository": "https://github.com/matrix-org/matrix-widget-api",
"author": "The Matrix.org Foundation C.I.C.",
"license": "Apache-2.0",
"scripts": {
"prepublishOnly": "yarn build",
"start": "tsc -w",
"clean": "rimraf lib dist",
"build": "yarn clean && yarn build:compile && yarn build:types && yarn build:browser",
"build:compile": "babel -d lib --verbose --extensions \".ts\" src",
"build:types": "tsc --emitDeclarationOnly",
"build:browser": "yarn build:browser:dev && yarn build:browser:prod",
"build:browser:dev": "browserify lib/index.js --debug --s mxwidgets -o dist/api.js",
"build:browser:prod": "browserify lib/index.js --s mxwidgets -p tinyify -o dist/api.min.js",
"lint": "yarn lint:types && yarn lint:ts",
"lint:ts": "eslint src test",
"lint:types": "tsc --noEmit",
"lint:fix": "eslint src test --fix",
"test": "jest"
},
"files": [
"src",
"lib",
"dist",
"package.json",
"README.md",
"LICENSE",
"CONTRIBUTING.rst"
],
"devDependencies": {
"@babel/cli": "^7.11.6",
"@babel/core": "^7.11.6",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/preset-env": "^7.11.5",
"@babel/preset-typescript": "^7.10.4",
"@testing-library/dom": "^8.0.0",
"@types/jest": "^27.4.0",
"babel-eslint": "^10.1.0",
"browserify": "^17.0.0",
"eslint": "^7.8.1",
"eslint-config-matrix-org": "^0.1.2",
"eslint-plugin-babel": "^5.3.1",
"jest": "^27.4.0",
"jest-environment-jsdom": "^27.0.6",
"rimraf": "^3.0.2",
"tinyify": "^3.0.0"
},
"dependencies": {
"@types/events": "^3.0.0",
"events": "^3.2.0"
},
"jest": {
"testEnvironment": "jsdom",
"testMatch": [
"<rootDir>/test/**/*-test.[jt]s?(x)"
]
}
}
|