66 lines
2.4 KiB
JSON
66 lines
2.4 KiB
JSON
{
|
|
"name": "react-doc-viewer",
|
|
"version": "0.1.3",
|
|
"description": "Document viewer for react. Renders online/local documents.",
|
|
"author": "Matthew Mogford",
|
|
"license": "ISC",
|
|
"repository": {
|
|
"url": "https://github.com/Alcumus/react-doc-viewer"
|
|
},
|
|
"main": "build/index.js",
|
|
"types": "build/index.d.ts",
|
|
"dependencies": {
|
|
"pdfjs-dist": "2.4.456",
|
|
"react-pdf": "5.0.0",
|
|
"styled-components": "^5.1.1",
|
|
"wl-msg-reader": "^0.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/jest-dom": "^4.2.4",
|
|
"@testing-library/react": "^9.3.2",
|
|
"@testing-library/user-event": "^7.1.2",
|
|
"@types/jest": "^24.0.0",
|
|
"@types/node": "^12.0.0",
|
|
"@types/pdfjs-dist": "2.1.5",
|
|
"@types/react": "^16.9.46",
|
|
"@types/react-dom": "^16.9.8",
|
|
"@types/react-pdf": "4.0.5",
|
|
"@types/styled-components": "^5.1.2",
|
|
"generate-changelog": "^1.8.0",
|
|
"react": "^16.13.1",
|
|
"react-dom": "^16.13.1",
|
|
"react-scripts": "3.4.3",
|
|
"typescript": "^3.9.7"
|
|
},
|
|
"scripts": {
|
|
"start": "react-scripts start",
|
|
"build": "rm -rf build && tsc -p tsconfig-npm.json",
|
|
"test": "react-scripts test",
|
|
"eject": "react-scripts eject",
|
|
"version:patch": "npm run version:pre && npm run version:changelog && npm version patch && npm run version:post",
|
|
"version:minor": "npm run version:pre && npm run version:changelog && npm version minor && npm run version:post",
|
|
"version:major": "npm run version:pre && npm run version:changelog && npm version major && npm run version:post",
|
|
"version:pre": "if [ $(git rev-parse --abbrev-ref HEAD) != 'master' ]; then echo \"\\033[1m\\033[31mCurrently on $(git rev-parse --abbrev-ref HEAD) branch. Please checkout master.\\033[0m\"; exit 1; else exit 0; fi",
|
|
"version:changelog": "changelog -p && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md'",
|
|
"version:post": "git push origin master && git push origin master --tags",
|
|
"build-release:patch": "react-scripts test --watchAll=false && npm run build && npm run version:patch",
|
|
"build-release:minor": "react-scripts test --watchAll=false && npm run build && npm run version:minor",
|
|
"build-release:major": "react-scripts test --watchAll=false && npm run build && npm run version:major"
|
|
},
|
|
"eslintConfig": {
|
|
"extends": "react-app"
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
}
|
|
}
|