This repository has been archived by the owner on Mar 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
74 lines (74 loc) · 2.15 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
{
"name": "react-handler",
"version": "1.0.1",
"description": "react-component that handles different states (loading, error, ...)",
"browser": "dist/react-handler.js",
"main": "lib/index.js",
"module": "es/index.js",
"jsnext:main": "es/index.js",
"files": [
"dist",
"lib",
"es",
"src"
],
"scripts": {
"build": "npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd-min",
"build:commonjs": "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 BABEL_ENV=commonjs NODE_ENV=development webpack src/index.js --o dist/react-handler.js",
"build:umd-min": "cross-env BABEL_ENV=commonjs NODE_ENV=production webpack src/index.js --o dist/react-handler.min.js",
"clean": "rimraf es dist lib coverage",
"lint": "standard --verbose | snazzy",
"prepublish": "npm run test && npm run clean && npm run build",
"test": "npm run lint && npm run test:unit",
"test:unit": "jest --coverage"
},
"repository": {
"type": "git",
"url": "https://github.com/chrishelgert/react-handler.git"
},
"author": "Chris Helgert",
"license": "MIT",
"bugs": {
"url": "https://github.com/chrishelgert/react-handler/issues"
},
"homepage": "https://github.com/chrishelgert/react-handler#readme",
"devDependencies": {
"babel-cli": "^6.18.0",
"babel-core": "^6.21.0",
"babel-eslint": "^8.0.0",
"babel-jest": "^23.0.1",
"babel-loader": "^7.1.1",
"babel-plugin-transform-object-rest-spread": "^6.20.2",
"babel-preset-es2015": "^6.18.0",
"babel-preset-react": "^6.16.0",
"cross-env": "^5.0.0",
"jest": "^23.1.0",
"prop-types": "^15.5.10",
"react": "^16.0.0",
"react-test-renderer": "^16.0.0",
"rimraf": "^2.5.4",
"snazzy": "^7.0.0",
"standard": "^11.0.1",
"webpack": "^4.11.1",
"webpack-cli": "^3.0.3"
},
"peerDependencies": {
"react": "^16.0.0"
},
"jest": {
"bail": true,
"collectCoverageFrom": [
"**/src/**/*.js"
]
},
"standard": {
"env": {
"jest": true
},
"ignore": [
"dist"
]
}
}