-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
executable file
·94 lines (94 loc) · 2.36 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
{
"name": "react-promiseful",
"version": "2.0.0",
"description": "A React component and hook render children conditionally based on a promise state",
"main": "lib/index.js",
"module": "es/index.js",
"homepage": "https://github.com/moxystudio/react-promiseful#readme",
"author": "André Cruz <andre@moxy.studio>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/moxystudio/react-promiseful.git"
},
"keywords": [
"react",
"promise",
"state",
"status",
"timeout",
"delay",
"suspense",
"hook"
],
"bugs": {
"url": "https://github.com/moxystudio/react-promiseful/issues"
},
"files": [
"lib",
"es"
],
"scripts": {
"build:commonjs": "BABEL_ENV=commonjs babel src -d lib --delete-dir-on-start",
"build:es": "BABEL_ENV=es babel src -d es --delete-dir-on-start",
"build": "npm run build:commonjs && npm run build:es",
"test": "jest --coverage",
"lint": "eslint --ignore-path .gitignore .",
"prerelease": "npm t && npm run lint && npm run build",
"release": "standard-version",
"predeploy": "npm run build && cd demo && npm i && npm run build",
"deploy": "gh-pages -d demo/build",
"postrelease": "git push --follow-tags origin HEAD && npm publish"
},
"jest": {
"setupFilesAfterEnv": [
"@testing-library/react/cleanup-after-each"
],
"collectCoverageFrom": [
"src/**/*"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
]
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"peerDependencies": {
"react": "^16.8.0"
},
"dependencies": {
"delay": "^4.2.0",
"lodash": "^4.17.11",
"prop-types": "^15.7.2"
},
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.3.4",
"@commitlint/config-conventional": "^8.0.0",
"@testing-library/react": "^8.0.1",
"babel-jest": "^24.5.0",
"babel-preset-moxy": "^3.0.4",
"commitlint": "^8.0.0",
"eslint": "^5.13.0",
"eslint-config-moxy": "^7.1.0",
"gh-pages": "^2.0.1",
"husky": "^2.1.0",
"jest": "^24.5.0",
"lint-staged": "^8.1.4",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"standard-version": "^6.0.1"
}
}