/
package.json
177 lines (177 loc) · 5.67 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
{
"name": "chimee",
"version": "1.0.1-alpha.0",
"description": "a video-player aims to bring wonderful experience on browser",
"main": "lib/index.js",
"module": "lib/index.mjs",
"jsnext:main": "lib/index.mjs",
"browser": "lib/index.browser.js",
"types": "lib/index.d.ts",
"scripts": {
"prepublishOnly": "npm t && pkg-ok",
"test": "jest --coverage && node env-check.js",
"tsc": "tsc --outDir ./lib/esnext",
"unit": "jest --coverage --watch",
"lint": "tslint -c ./tslint.json 'src/**/*.ts' --fix && eslint . --fix",
"start": "tsc --outDir ./lib/esnext -w & rollup -c build/rollup.config.dev.js -w & node ./build/livereload",
"build": "npm run tsc && npm run dts && npm run b-common && npm run b-es && npm run b-umd && npm run b-min && npm run b-esm",
"b-common": "rollup -c build/rollup.config.common.js",
"b-es": "rollup -c build/rollup.config.es.js",
"b-esm": "rollup -c build/rollup.config.esm.js",
"b-umd": "rollup -c build/rollup.config.umd.js",
"b-min": "rollup -c build/rollup.config.min.js",
"ie": "rollup -c demo/ie/rollup.config.js -w",
"autou": "ncu -a",
"jest": "jest",
"karma": "karma start karma.conf.js",
"dts": "dts-bundle-generator -o ./lib/index.d.ts src/index.ts",
"preversion": "npm test",
"version": "npm run build && git add -A dist",
"postversion": "git push && git push --tags"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint",
"pre-push": "npm t",
"post-merge": "sh tool/auto-npm-install.sh"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/Chimeejs/chimee.git"
},
"keywords": [
"video",
"player",
"h5",
"hls",
"mp4",
"flv"
],
"author": "toxic-johann",
"license": "MIT",
"bugs": {
"url": "https://github.com/Chimeejs/chimee/issues"
},
"homepage": "https://github.com/Chimeejs/chimee#readme",
"dependencies": {
"@babel/runtime": "^7.4.5",
"chimee-helper": "^0.2.11",
"chimee-helper-log": "^0.2.3",
"dom-helpers": "^3.4.0",
"es-fullscreen": "^0.4.0-beta.4",
"events": "^3.0.0",
"lodash": "^4.17.11",
"toxic-decorators": "^0.4.0-beta.8",
"toxic-predicate-functions": "^0.2.5"
},
"devDependencies": {
"@babel/core": "^7.4.5",
"@babel/plugin-external-helpers": "^7.2.0",
"@babel/plugin-proposal-class-properties": "^7.4.4",
"@babel/plugin-proposal-decorators": "^7.4.4",
"@babel/plugin-proposal-do-expressions": "^7.2.0",
"@babel/plugin-proposal-export-default-from": "^7.2.0",
"@babel/plugin-proposal-export-namespace-from": "^7.2.0",
"@babel/plugin-proposal-function-bind": "^7.2.0",
"@babel/plugin-proposal-function-sent": "^7.2.0",
"@babel/plugin-proposal-json-strings": "^7.2.0",
"@babel/plugin-proposal-logical-assignment-operators": "^7.2.0",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.4.4",
"@babel/plugin-proposal-numeric-separator": "^7.2.0",
"@babel/plugin-proposal-optional-chaining": "^7.2.0",
"@babel/plugin-proposal-pipeline-operator": "^7.3.2",
"@babel/plugin-proposal-throw-expressions": "^7.2.0",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/plugin-syntax-import-meta": "^7.2.0",
"@babel/plugin-transform-classes": "^7.4.4",
"@babel/plugin-transform-runtime": "^7.4.4",
"@babel/polyfill": "^7.4.4",
"@babel/preset-env": "^7.4.5",
"@types/dom-helpers": "^3.4.1",
"@types/events": "^3.0.0",
"@types/jest": "^24.0.13",
"@types/lodash": "^4.14.133",
"@types/node": "^12.0.4",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^24.8.0",
"babel-plugin-lodash": "^3.3.4",
"chai": "^4.2.0",
"chimee-kernel-flv": "^1.4.10",
"chimee-kernel-hls": "^1.3.2",
"chimee-mobile-player": "^0.2.8",
"chimee-player": "^1.4.8",
"chimee-plugin-center-state": "0.0.12",
"chimee-plugin-controlbar": "^0.5.0",
"chimee-plugin-danmu": "0.1.3",
"chimee-plugin-popup": "0.0.7",
"connect": "^3.7.0",
"core-js": "^3.1.3",
"dts-bundle-generator": "^3.0.0",
"eslint": "^5.16.0",
"eslint-config-egg": "^7.4.1",
"eslint-plugin-jest": "^22.6.4",
"esm": "^3.2.25",
"husky": "^2.3.0",
"jest": "^24.8.0",
"jest-canvas-mock": "^2.1.0",
"karma": "^4.1.0",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^2.2.0",
"karma-firefox-launcher": "^1.1.0",
"karma-mocha": "^1.3.0",
"karma-mocha-reporter": "^2.2.5",
"karma-rollup-preprocessor": "^7.0.0",
"livereload": "^0.8.0",
"mocha": "^6.1.4",
"npm-check-updates": "^3.1.9",
"pkg-ok": "^2.3.1",
"rollup": "^1.13.0",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-commonjs": "^10.0.0",
"rollup-plugin-livereload": "^1.0.0",
"rollup-plugin-node-resolve": "^5.0.1",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-serve": "^1.0.1",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-uglify": "^6.0.2",
"rollup-plugin-visualizer": "^1.1.1",
"rollup-watch": "^4.3.1",
"serve-static": "^1.14.1",
"strict-event-emitter-types": "^2.0.0",
"toxic-utils": "^0.3.1",
"ts-jest": "^24.0.2",
"tslint": "^5.17.0",
"typescript": "^3.5.1"
},
"jest": {
"modulePaths": [
"src"
],
"moduleDirectories": [
"node_modules"
],
"transform": {
"^.+\\.tsx?$": "ts-jest",
"^.+\\.jsx?$": "babel-jest"
},
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
"setupFiles": [
"jest-canvas-mock",
"<rootDir>/node_modules/regenerator-runtime/runtime"
],
"globals": {
"ts-jest": {
"tsConfig": "tsconfig.test.json"
}
}
}
}