-
-
Notifications
You must be signed in to change notification settings - Fork 186
/
package.json
101 lines (101 loc) · 3.35 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
"name": "react-onclickoutside",
"version": "6.7.0",
"description": "An onClickOutside wrapper for React components",
"main": "lib/index.js",
"module": "es/index.js",
"jsnext:main": "es/index.js",
"files": [
"es",
"lib",
"dist"
],
"unpkg": "dist/react-onclickoutside.min.js",
"homepage": "https://github.com/Pomax/react-onclickoutside",
"authors": [
"Pomax <pomax@nihongoresources.com>",
"Andarist <mateuszburzynski@gmail.com>"
],
"keywords": [
"react",
"onclick",
"outside",
"onclickoutside"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/Pomax/react-onclickoutside.git"
},
"bugs": {
"url": "https://github.com/Pomax/react-onclickoutside/issues"
},
"scripts": {
"clean": "rimraf es lib dist",
"prebuild": "npm run clean",
"build": "run-p build:**",
"build:es": "cross-env BABEL_ENV=es rollup -c -i src/index.js -o es/index.js",
"build:cjs": "cross-env BABEL_ENV=cjs rollup -c -i src/index.js -o lib/index.js",
"build:umd": "cross-env BABEL_ENV=es NODE_ENV=development rollup -c rollup.umd.config.js -i src/index.js -o dist/react-onclickoutside.js",
"build:umd:min": "cross-env BABEL_ENV=es NODE_ENV=production rollup -c rollup.umd.config.js -i src/index.js -o dist/react-onclickoutside.min.js",
"lint": "eslint src/*.js ./test",
"test": "run-s test:**",
"test:basic": "run-s lint build:cjs",
"test:karma": "karma start test/karma.conf.js --single-run",
"test:nodom": "mocha test/no-dom-test.js",
"precommit": "npm test && lint-staged",
"prepublish": "test $(npm -v | tr . '\\n' | head -n 1) -ge '4' || exit 1",
"prepare": "npm run build",
"prerelease": "npm run test",
"release:patch": "npm run prerelease && npm version patch && npm publish && git push --follow-tags",
"release:minor": "npm run prerelease && npm version minor && npm publish && git push --follow-tags",
"release:major": "npm run prerelease && npm version major && npm publish && git push --follow-tags"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.31",
"@babel/plugin-proposal-class-properties": "7.0.0-beta.31",
"@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.31",
"@babel/preset-env": "7.0.0-beta.31",
"@babel/preset-stage-0": "7.0.0-beta.31",
"babel-eslint": "^8.0.2",
"babel-loader": "8.0.0-beta.0",
"chai": "^3.5.0",
"cross-env": "^5.0.0",
"eslint": "^3.4.0",
"husky": "^0.13.3",
"karma": "^1.4.0",
"karma-chai": "^0.1.0",
"karma-firefox-launcher": "^1.0.1",
"karma-mocha": "^1.3.0",
"karma-spec-reporter": "0.0.26",
"karma-webpack": "^2.0.2",
"lint-staged": "^3.4.2",
"mocha": "^3.2.0",
"npm-run-all": "^4.0.2",
"prettier": "^1.8.2",
"react": "^15.5.x",
"react-dom": "^15.5.x",
"react-test-renderer": "^15.5.x",
"require-hijack": "^1.2.1",
"rimraf": "^2.6.2",
"rollup": "^0.51.3",
"rollup-plugin-babel": "^4.0.0-beta.0",
"rollup-plugin-uglify": "^2.0.1",
"webpack": "^3.8.1"
},
"peerDependencies": {
"react": "^15.5.x || ^16.x",
"react-dom": "^15.5.x || ^16.x"
},
"lint-staged": {
"{src,test}/**/*.js": [
"prettier --print-width=120 --single-quote --trailing-comma=all --write",
"eslint --fix",
"git add"
],
"*.md": [
"prettier --write",
"git add"
]
}
}