react-svg-image-board
Version:
A react component. can drawing svg element to image board.
85 lines • 2.99 kB
JSON
{
"name": "react-svg-image-board",
"version": "0.1.3",
"files": [
"/dist"
],
"main": "dist/js/index.js",
"module": "dist/esm/index.js",
"types": "dist/js/index.d.ts",
"author": "yhb71868@sina.com",
"description": "A react component. can drawing svg element to image board.",
"homepage": "https://github.com/AceBin/react-svg-image-board#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/AceBin/react-svg-image-board.git"
},
"keywords": [
"react-component",
"svg",
"editer",
"rect"
],
"license": "ISC",
"bugs": {
"url": "https://github.com/AceBin/react-svg-image-board/issues"
},
"dependencies": {
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.5.0",
"@testing-library/user-event": "^7.2.1",
"@types/jest": "^24.9.1",
"@types/node": "^12.12.31",
"@types/react": "^16.9.26",
"@types/react-dom": "^16.9.5",
"node-sass": "^4.13.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "3.4.1",
"typescript": "^3.7.5"
},
"scripts": {
"eject": "react-scripts eject",
"build": "yarn clean && yarn build:lib && yarn build-storybook",
"build:lib": "yarn build:babel && yarn build:types && node ./scripts/copyTS.js",
"build:babel": "concurrently \"yarn build:babel:esm && yarn build:babel:umd\" \"yarn build:babel:cjs\"",
"build:babel:cjs": "babel src --source-maps --extensions \".js,.ts,.tsx\" --ignore src/stories --out-dir dist/js --presets=@babel/env",
"build:babel:esm": "babel src --source-maps --extensions \".js,.ts,.tsx\" --ignore src/stories --out-dir dist/esm",
"build:babel:umd": "babel dist/esm --source-maps --extensions \".js\" --out-dir dist/umd --plugins=transform-es2015-modules-umd",
"build:types": "tsc -p tsconfig.gen-dts.json",
"clean": "rimraf dist",
"develop": "yarn build:types && yarn build:babel:esm --skip-initial-build --watch --verbose",
"storybook": "start-storybook -p 9009",
"build-storybook": "build-storybook --output-dir dist/demo"
},
"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"
]
},
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-export-default-from": "^7.8.3",
"@babel/plugin-proposal-object-rest-spread": "^7.9.5",
"@babel/preset-typescript": "^7.9.0",
"@storybook/addon-actions": "^5.3.18",
"@storybook/addon-links": "^5.3.18",
"@storybook/addons": "^5.3.18",
"@storybook/preset-create-react-app": "^2.1.1",
"@storybook/react": "^5.3.18",
"babel-plugin-transform-es2015-modules-umd": "^6.24.1",
"babel-plugin-typescript-to-proptypes": "^1.3.2",
"concurrently": "^5.1.0"
}
}