mirror of
https://github.com/infeng/react-viewer.git
synced 2025-12-08 17:36:40 +00:00
128 lines
3.4 KiB
JSON
128 lines
3.4 KiB
JSON
{
|
|
"name": "react-viewer",
|
|
"version": "3.2.2",
|
|
"description": "react image viewer",
|
|
"main": "dist/index",
|
|
"scripts": {
|
|
"test": "jest",
|
|
"start": "webpack-dev-server",
|
|
"lint": "tslint -c tslint.json \"src/**/*.ts\" \"src/**/*.tsx\"",
|
|
"build": "webpack --config webpack.config.prop.js && gulp",
|
|
"build:analyze": "ANALYZE=true webpack --config webpack.config.prop.js",
|
|
"doc": "webpack --config webpack.config.doc.js",
|
|
"pub": "npm run build && npm publish",
|
|
"prepublish": "npm run build",
|
|
"predeploy": "npm run doc",
|
|
"deploy": "gh-pages -d pages-build"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/infeng/react-viewer.git"
|
|
},
|
|
"keywords": [
|
|
"react",
|
|
"image",
|
|
"viewer"
|
|
],
|
|
"author": "infeng",
|
|
"license": "MIT",
|
|
"bugs": {
|
|
"url": "https://github.com/infeng/react-viewer/issues"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"lib"
|
|
],
|
|
"typings": "lib/index.d.ts",
|
|
"homepage": "https://github.com/infeng/react-viewer#readme",
|
|
"devDependencies": {
|
|
"@babel/core": "^7.6.4",
|
|
"@babel/plugin-proposal-object-rest-spread": "^7.6.2",
|
|
"@babel/plugin-transform-object-assign": "^7.2.0",
|
|
"@babel/preset-env": "^7.6.3",
|
|
"@babel/preset-react": "^7.6.3",
|
|
"@types/jest": "^23.3.1",
|
|
"@types/node": "^12.11.1",
|
|
"@types/react": "^16.9.1",
|
|
"@types/react-dom": "^16.8.5",
|
|
"antd": "^3.24.1",
|
|
"autoprefixer": "^9.6.5",
|
|
"babel-jest": "^23.4.2",
|
|
"babel-loader": "^8.0.6",
|
|
"babel-plugin-import": "^1.2.1",
|
|
"css-loader": "^3.2.0",
|
|
"enzyme": "^3.10.0",
|
|
"enzyme-adapter-react-16": "^1.14.0",
|
|
"enzyme-to-json": "^3.3.4",
|
|
"file-loader": "^4.2.0",
|
|
"fs-extra": "^8.1.0",
|
|
"gh-pages": "^2.1.1",
|
|
"gulp": "^4.0.2",
|
|
"gulp-typescript": "^5.0.1",
|
|
"html-webpack-plugin": "^3.2.0",
|
|
"identity-obj-proxy": "^3.0.0",
|
|
"jest": "^23.5.0",
|
|
"jest-environment-jsdom": "^23.4.0",
|
|
"jest-environment-jsdom-global": "^1.1.0",
|
|
"jest-static-stubs": "0.0.1",
|
|
"less": "^3.10.3",
|
|
"less-loader": "^5.0.0",
|
|
"merge2": "^1.3.0",
|
|
"mini-css-extract-plugin": "^0.9.0",
|
|
"postcss-loader": "^3.0.0",
|
|
"pre-commit": "^1.1.3",
|
|
"react": "^16.10.2",
|
|
"react-dom": "^16.10.2",
|
|
"react-test-render": "^1.1.1",
|
|
"style-loader": "^1.0.0",
|
|
"through2": "^2.0.1",
|
|
"ts-jest": "^23.1.3",
|
|
"ts-loader": "^6.2.0",
|
|
"tslint": "^5.18.0",
|
|
"typescript": "^3.6.4",
|
|
"url-loader": "^2.2.0",
|
|
"webpack": "^4.41.2",
|
|
"webpack-bundle-analyzer": "^3.6.0",
|
|
"webpack-chain": "^6.0.0",
|
|
"webpack-cli": "^3.3.9",
|
|
"webpack-dev-server": "^3.8.2",
|
|
"wolfy87-eventemitter": "^5.2.5"
|
|
},
|
|
"dependencies": {
|
|
"classnames": "^2.2.5"
|
|
},
|
|
"pre-commit": [
|
|
"lint"
|
|
],
|
|
"jest": {
|
|
"transform": {
|
|
"^.+\\.tsx?$": "ts-jest",
|
|
"\\.js$": "babel-jest"
|
|
},
|
|
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
|
|
"moduleFileExtensions": [
|
|
"ts",
|
|
"tsx",
|
|
"js",
|
|
"jsx"
|
|
],
|
|
"moduleNameMapper": {
|
|
"^.+\\.(jpg|jpeg)$": "jest-static-stubs/jpg",
|
|
"\\.(css|less)$": "identity-obj-proxy"
|
|
},
|
|
"moduleDirectories": [
|
|
"node_modules"
|
|
],
|
|
"snapshotSerializers": [
|
|
"enzyme-to-json/serializer"
|
|
],
|
|
"globals": {
|
|
"ts-jest": {
|
|
"tsConfigFile": "tsconfig.test.json"
|
|
}
|
|
},
|
|
"coverageDirectory": "./coverage/",
|
|
"collectCoverage": true
|
|
}
|
|
}
|