forked from muxinc/media-chrome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
88 lines (88 loc) · 2.81 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
{
"name": "media-chrome",
"version": "0.21.0",
"description": "Custom elements (web components) for making audio and video player controls that look great in your website or app.",
"author": "@muxinc",
"license": "MIT",
"homepage": "https://github.com/muxinc/media-chrome#readme",
"bugs": {
"url": "https://github.com/muxinc/media-chrome/issues"
},
"type": "module",
"main": "dist/index.js",
"customElements": "dist/custom-elements.json",
"files": [
"src",
"dist"
],
"scripts": {
"format": "prettier --write .",
"clean": "rimraf dist",
"lint": "eslint src/js",
"build:types": "tsc",
"build:esm": "esbuild src/js/*.js src/js/*/*.js src/js/*/*/*.js --target=es2019 --format=esm --outdir=dist",
"build:cjs": "esbuild src/js/*.js src/js/*/*.js src/js/*/*/*.js --target=es2019 --format=cjs --outdir=dist/cjs",
"build:iife": "esbuild src/js/index.js --bundle --target=es2019 --format=iife --outdir=dist/iife --minify --sourcemap --global-name=MediaChrome && yarn size",
"build:react": "node ./scripts/react/build.js",
"build:manifest": "npx @custom-elements-manifest/analyzer analyze --config scripts/custom-elements-manifest.config.js",
"build": "yarn build:types && yarn build:esm && yarn build:cjs && yarn build:iife && yarn build:react && yarn build:manifest",
"watch": "run-p watch:types watch:esbuild",
"watch:types": "yarn build:types -w",
"watch:esbuild": "node ./scripts/esbuild.js",
"dev": "yarn watch",
"start": "yarn dev",
"test": "web-test-runner --coverage --config test/web-test-runner.config.js",
"publish-release": "./scripts/publish.sh",
"size": "echo \"\\n dist/\\033[1miife/index.js\\033[0m \\033[0;32m$(($(cat dist/iife/index.js | gzip -c9 | wc -c)))B gzip\\033[0m\\n\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/muxinc/media-chrome.git"
},
"devDependencies": {
"@custom-elements-manifest/analyzer": "^0.8.0",
"@open-wc/testing": "^3.1.6",
"@web/test-runner": "^0.15.0",
"@web/test-runner-playwright": "^0.9.0",
"cem-plugin-vs-code-custom-data-generator": "^1.4.1",
"esbuild": "^0.15.12",
"eslint": "^8.25.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.7.1",
"react": "^17.0.2",
"rimraf": "^3.0.2",
"sinon": "^14.0.1",
"typescript": "^4.8.4"
},
"prettier": {
"trailingComma": "es5",
"tabWidth": 2,
"singleQuote": true
},
"eslintConfig": {
"globals": {
"globalThis": "writable"
},
"env": {
"browser": true,
"es6": true,
"mocha": true
},
"extends": [
"eslint:recommended"
],
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
}
},
"keywords": [
"webcomponent",
"html5",
"video",
"audio",
"media",
"player",
"controls"
]
}