THU Hole react frontend
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

38 lines
1.2 KiB

{
"name": "webhole",
"version": "0.1.0",
"private": true,
"dependencies": {
"copy-to-clipboard": "^3.0.8",
"fix-orientation": "^1.1.0",
"gh-pages": "^3.0.0",
"load-script": "^1.0.0",
"pressure": "^2.1.2",
"react": "^16.9.0",
"react-dom": "^16.9.0",
"react-scripts": "^3.1.1",
"react-timeago": "^4.1.9"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "echo 'skipped react-scripts test --env=jsdom'",
"predeploy": "npm run build && sed -i 's/\\/\\/cdn\\.jsdelivr\\.net\\/gh\\/thuhole\\/webhole\\@gh\\-pages\\/index\\.html/\\.\\/index\\.html/g' build/*-*",
"predeploy_comments": "额,这里用了个骚操作来修复Service Worker在Precache CDN内容的时候index.html返回content-type text/plain的问题",
"deploy": "gh-pages -d build -m $(TZ=Asia/Shanghai date +\"%y%m%d%H%M%S\")",
"eject": "react-scripts eject"
},
"homepage": "https://://cdn.jsdelivr.net/gh/thuhole/webhole@gh-pages",
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}