forked from muxinc/media-chrome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
127 lines (127 loc) · 3.85 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
"name": "media-chrome",
"version": "2.0.1",
"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"
},
"main": "dist/index.js",
"type": "module",
"typesVersions": {
"*": {
"react": [
"./dist/react/index.d.ts"
]
}
},
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/cjs/index.js",
"default": "./dist/index.js"
},
"./react": {
"import": "./dist/react/index.js",
"require": "./dist/cjs/react/index.js",
"default": "./dist/react/index.js"
},
"./dist/react": {
"import": "./dist/react/index.js",
"require": "./dist/cjs/react/index.js",
"default": "./dist/react/index.js"
},
"./dist/cjs/*": "./dist/cjs/*",
"./dist/react/*": {
"import": "./dist/react/*",
"require": "./dist/cjs/react/*",
"default": "./dist/react/*"
},
"./dist/*": {
"import": "./dist/*",
"require": "./dist/cjs/*",
"default": "./dist/*"
}
},
"customElements": "dist/custom-elements.json",
"files": [
"src",
"dist"
],
"scripts": {
"format": "prettier --write .",
"clean": "rimraf dist",
"lint": "eslint src/js",
"premanifest": "cp -R src/js/ dist/",
"manifest": "npx @custom-elements-manifest/analyzer analyze --config scripts/custom-elements-manifest.config.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",
"postbuild:cjs": "echo '{\"type\": \"commonjs\"}' > ./dist/cjs/package.json",
"build:iife": "esbuild src/js/index.js --bundle --target=es2019 --format=iife --outdir=dist/iife --minify --sourcemap --global-name=MediaChrome",
"postbuild:iife": "yarn size",
"build:react": "node ./scripts/react/build.js",
"postbuild:react": "esbuild dist/react/*.js dist/react/common/*.js --target=es2019 --format=cjs --outdir=dist/cjs/react",
"build": "run-s build:types build:esm build:cjs build:iife build:react",
"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.4",
"@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"
]
}