UNPKG

3.64 kBJSONView Raw
1{
2 "name": "@livelybone/react-popper",
3 "version": "1.8.2",
4 "description": "A wrap of react-popper, achieved visible controlling via click/hover event or ref.show/ref.hide/ref.toggle",
5 "main": "./lib/umd/index.js",
6 "module": "./lib/es/index.js",
7 "unpkg": "./lib/umd/index.js",
8 "types": "./index.d.ts",
9 "scripts": {
10 "build:css": "cross-env NODE_ENV=production node-sass ./src/css/index.scss ./lib/css/index.css --output-style compressed && ncp ./src/css/index.scss ./lib/css/index.scss",
11 "build:js": "cross-env NODE_ENV=production rollup -c",
12 "build:dts": "cross-env NODE_ENV=production BUILD_ENV=dts rollup -c",
13 "dev": "rimraf ./lib && cross-env BUILD_ENV=watch node watch.js",
14 "build": "rimraf ./lib && npm run build:css && npm run build:js",
15 "build:test": "rimraf ./test-lib && cross-env NODE_ENV=test rollup -c rollup.config.test.js --sourcemap",
16 "eslint": "eslint ./ --ext .js,.ts,.tsx --fix",
17 "test": "npm run build:test && cross-env NODE_ENV=test istanbul cover node_modules/mocha/bin/_mocha -- ./test",
18 "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
19 "commit": "git-cz"
20 },
21 "repository": {
22 "type": "git",
23 "url": "https://github.com/livelybone/react-popper.git"
24 },
25 "keywords": [
26 "react",
27 "popper",
28 "visible controlling",
29 "click",
30 "hover",
31 "show",
32 "hide",
33 "toggle"
34 ],
35 "author": "2631541504@qq.com",
36 "license": "MIT",
37 "bugs": {
38 "url": "https://github.com/livelybone/react-popper/issues"
39 },
40 "homepage": "https://github.com/livelybone/react-popper#readme",
41 "devDependencies": {
42 "@babel/core": "^7.5.0",
43 "@babel/plugin-transform-runtime": "^7.5.0",
44 "@babel/preset-env": "^7.5.0",
45 "@babel/register": "^7.4.4",
46 "@babel/runtime": "^7.5.1",
47 "@livelybone/singleton": "^1.1.1",
48 "@types/react": "^16.8.23",
49 "@types/react-dom": "^16.8.5",
50 "@typescript-eslint/eslint-plugin": "^1.12.0",
51 "@typescript-eslint/parser": "^1.12.0",
52 "babel-eslint": "^10.0.2",
53 "babel-plugin-istanbul": "^5.1.4",
54 "babel-preset-react-app": "^9.0.0",
55 "chai": "^4.2.0",
56 "chalk": "^2.4.2",
57 "chokidar": "^3.0.2",
58 "commitizen": "^3.0.7",
59 "conventional-changelog-cli": "^2.0.12",
60 "cross-env": "^5.2.0",
61 "cross-spawn": "^6.0.5",
62 "cz-conventional-changelog": "^2.1.0",
63 "eslint": "^5.3.0",
64 "eslint-config-react-app": "^4.0.1",
65 "eslint-plugin-flowtype": "^3.11.1",
66 "eslint-plugin-import": "^2.18.0",
67 "eslint-plugin-jsx-a11y": "^6.2.3",
68 "eslint-plugin-prettier": "^3.1.0",
69 "eslint-plugin-react": "^7.14.2",
70 "eslint-plugin-react-hooks": "^1.6.1",
71 "express": "^4.17.1",
72 "husky": "^3.0.0",
73 "istanbul": "^1.1.0-alpha.1",
74 "jsdom": "^15.1.1",
75 "lint-staged": "^9.1.0",
76 "mocha": "^5.2.0",
77 "ncp": "^2.0.0",
78 "prettier": "^1.18.2",
79 "react": "^16.8.6",
80 "react-dom": "^16.8.6",
81 "rollup": "1.7.0",
82 "rollup-plugin-babel": "^4.3.3",
83 "rollup-plugin-commonjs": "^9.2.1",
84 "rollup-plugin-dts": "^1.1.5",
85 "rollup-plugin-license": "^0.8.1",
86 "rollup-plugin-node-resolve": "^4.0.1",
87 "rollup-plugin-uglify": "^6.0.2",
88 "typescript": "^3.5.3"
89 },
90 "config": {
91 "commitizen": {
92 "path": "./node_modules/cz-conventional-changelog"
93 }
94 },
95 "husky": {
96 "hooks": {
97 "pre-commit": "lint-staged"
98 }
99 },
100 "lint-staged": {
101 "**/*.{js,ts,tsx}": [
102 "eslint --fix",
103 "git update-index --again"
104 ],
105 "**/*.scss": [
106 "prettier --write",
107 "git update-index --again"
108 ]
109 },
110 "dependencies": {
111 "react-popper": "^1.3.4"
112 }
113}