-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpackage.json
149 lines (149 loc) · 4.42 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
{
"name": "html5-player",
"version": "0.5.10",
"description": "html5 video",
"repository": "git@github.com:dog-days/html5-player.git",
"homepage": "https://github.com/dog-days/html5-player.git",
"main": "libs",
"dependencies": {
"add-dom-event-listener": "^1.0.2",
"antd": "^1.0.0",
"axios": "^0.17.1",
"classnames": "^2.2.5",
"downloadjs": "^1.4.7",
"flv.ly.js": "^1.5.0",
"global": "^4.3.2",
"hls.js": "^0.10.1",
"lodash": "^4.17.4",
"prop-types": "^15.6.0",
"react-redux": "^5.0.6",
"redux": "^3.7.2",
"redux-saga-model": "^0.2.21"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"chai": "4.1.2",
"cross-env": "^5.1.1",
"husky": "^1.0.0-rc.4",
"istanbul-instrumenter-loader": "3.0.0",
"karma": "2.0.0",
"karma-browserstack-launcher": "1.3.0",
"karma-chai": "0.1.0",
"karma-chrome-launcher": "2.2.0",
"karma-coverage-istanbul-reporter": "1.3.3",
"karma-firefox-launcher": "1.1.0",
"karma-ie-launcher": "^1.0.0",
"karma-junit-reporter": "1.2.0",
"karma-mocha": "1.3.0",
"karma-mocha-reporter": "2.2.5",
"karma-sinon": "1.0.5",
"karma-sinon-chai": "1.3.3",
"karma-webpack": "2.0.9",
"less": "^2.7.3",
"less-loader": "^4.0.5",
"lint-staged": "^7.1.0",
"mocha": "4.1.0",
"preact": "^8.2.6",
"preact-compat": "^3.17.0",
"prettier": "^1.12.1",
"react": "^15.5.4",
"react-boilerplate-app-scripts": "^0.2.10",
"react-dom": "^15.5.4",
"react-router-controller": "^0.1.9",
"react-router-controller-cli": "^0.0.1",
"sinon": "4.1.3",
"sinon-chai": "2.14.0"
},
"scripts": {
"build-css":
"lessc ./src/assets/css/common.less ./src/assets/css/style.css",
"build-demo": "node ./scripts/build-demo.js",
"build": "npm run test && node ./scripts/build-umd.js",
"test": "",
"cover": "react-boilerplate-app-scripts cover",
"serve-demo-build": "react-boilerplate-app-scripts serve-build",
"serve-umd-build": "serve ./dist -o",
"start": "node ./scripts/start.js",
"use": "react-boilerplate-app-scripts use",
"create-i18n-excel": "react-router-controller-cli create-i18n-excel",
"create-i18n-list": "react-router-controller-cli create-i18n-list",
"build-publish":
"node ./scripts/read-and-wirte-version.js && npm run test && npm run build-css && npm run transform && npm publish",
"prettier": "prettier --write './**/*(*.js|*.jsx|*.less|*.css)'",
"transform":
"rm -rf ./es && rm -rf ./libs && npm run transform-es && npm run transform-default && cp -R ./src/assets ./libs && cp -R ./src/assets ./es",
"transform-es": "rm -rf ./es && cross-env BABEL_ENV=es babel ./src -d es",
"transform-es-watch":
"rm -rf ./es && cross-env BABEL_ENV=es babel ./src -d es -w",
"transform-default":
"rm -rf ./libs && cross-env BABEL_ENV=production babel ./src -d libs",
"transform-default-watch":
"rm -rf ./libs && cross-env BABEL_ENV=production babel ./src -d libs -w"
},
"husky": {
"hooks": {
"pre-commit":
"node ./scripts/read-and-wirte-version.js && git add ./src/version.js && lint-staged",
"pre-push": "npm run test"
}
},
"lint-staged": {
"*.js|*.jsx": ["eslint"],
"*.js|*.jsx|*.less|*.css": ["prettier --write", "git add"]
},
"react-boilerplate-app-scripts": {
"proxy": {
"/cloudeye/v1": {
"target": "https://jxsr-api.antelopecloud.cn",
"secure": false
}
},
"basename": "demo/html5-player",
"appSrcPath": "demo/src",
"appPublicPath": "demo/public"
},
"babel": {
"env": {
"development": {
"presets": [
"react",
[
"es2015",
{
"modules": false
}
],
"stage-0"
],
"plugins": [
"transform-decorators-legacy",
"transform-runtime",
"react-hot-loader/babel"
]
},
"production": {
"plugins": ["transform-decorators-legacy", "transform-runtime"],
"presets": ["react", "es2015", "stage-0"]
},
"es": {
"plugins": ["transform-decorators-legacy", "transform-runtime"],
"presets": [
"react",
[
"es2015",
{
"modules": false
}
],
"stage-0"
]
}
}
},
"eslintConfig": {
"extends": "react-app"
},
"engines": {
"node": ">=6.0.0"
}
}