-
Notifications
You must be signed in to change notification settings - Fork 14
/
package.json
79 lines (79 loc) · 2.49 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
{
"name": "react-access",
"version": "2.0.0",
"description": "React Context driven role-access for conditional rendering of components.",
"main": "lib/index.js",
"module": "es/index.js",
"files": [
"dist",
"lib",
"es"
],
"scripts": {
"clean": "yarn rimraf dist lib es",
"build": "yarn run clean && yarn run build:cjs && yarn run build:es && yarn run build:umd && yarn run build:umd:min",
"build:cjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib",
"build:es": "cross-env BABEL_ENV=es babel src --out-dir es",
"build:umd": "cross-env NODE_ENV=development BABEL_ENV=build rollup -c -i src/index.js -o dist/react-access.js",
"build:umd:min": "cross-env NODE_ENV=production BABEL_ENV=buildProd rollup -c -i src/index.js -o dist/react-access.min.js",
"prepublish": "in-publish && yarn run test && yarn run build || not-in-publish",
"test": "jest --coverage && cat ./coverage/lcov.info | node_modules/.bin/coveralls"
},
"repository": {
"type": "git",
"url": "git+https://github.com/stevey-p/react-access.git"
},
"keywords": [
"react",
"context",
"authorization",
"auth",
"access",
"permissions"
],
"author": "Stephen Rivas Jr",
"license": "ISC",
"bugs": {
"url": "https://github.com/stevey-p/react-access/issues"
},
"homepage": "https://github.com/stevey-p/react-access#readme",
"peerDependencies": {
"prop-types": "15.x",
"react": ">=0.14.9"
},
"dependencies": {
"create-react-context": "^0.2.1"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-eslint": "^8.2.1",
"babel-jest": "^22.1.0",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-react-remove-prop-types": "^0.4.12",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-3": "^6.24.1",
"coveralls": "3.0.1",
"cross-env": "^5.2.0",
"in-publish": "2.0.0",
"jest": "^22.4.3",
"jest-dom": "^3.1.4",
"prop-types": "15.5",
"react": "^16.3.0",
"react-dom": "^16.3.0",
"react-testing-library": "^4.0.0",
"rollup": "^0.45.1",
"rollup-plugin-babel": "^2.7.1",
"rollup-plugin-commonjs": "^8.2.6",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-replace": "^1.2.1",
"rollup-plugin-uglify": "^2.0.1"
},
"jest": {
"testURL": "http://localhost/",
"coverageDirectory": "./coverage/",
"collectCoverage": true
}
}