-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
83 lines (83 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
{
"name": "react-truncated-component",
"version": "1.0.4",
"description": "A React component to truncate text with format",
"author": "juangl",
"license": "MIT",
"repository": "juangl/react-truncated-component",
"main": "dist/index.js",
"module": "dist/index.es.js",
"jsnext:main": "dist/index.es.js",
"engines": {
"node": ">=8",
"npm": ">=5"
},
"scripts": {
"test": "cross-env CI=1 SKIP_PREFLIGHT_CHECK=true react-scripts test",
"flow": "flow check --max-warnings=0 src && flow check example",
"test:watch": "react-scripts test",
"build": "rollup -c",
"start": "rollup -c -w",
"prepare": "yarn run build",
"prettier": "prettier --write '**/*.{js,json,css,md}'",
"eslint-check-config": "eslint --print-config . | eslint-config-prettier-check",
"lint": "eslint src"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/*.js": [
"eslint"
],
"**/*.{js,json,css,md}": [
"prettier --write",
"yarn test --findRelatedTests",
"git add"
]
},
"peerDependencies": {
"react": "^15.0.0 || ^16.0.0 || ^17.0.0",
"react-dom": "^15.0.0 || ^16.0.0 || ^17.0.0"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-flow": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"@svgr/rollup": "^2.4.1",
"@testing-library/react": "^8.0.1",
"babel-eslint": "^9.0.0",
"cross-env": "^5.1.4",
"eslint": "^5.10.0",
"eslint-config-prettier": "^3.3.0",
"eslint-config-react-app": "^3.0.5",
"eslint-plugin-flowtype": "^3.2.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-node": "^7.0.1",
"eslint-plugin-prettier": "^3.0.0",
"eslint-plugin-react": "^7.11.1",
"flow-bin": "^0.89.0",
"husky": "^1.2.1",
"jest-dom": "^3.4.0",
"lint-staged": "^8.1.0",
"prettier": "1.15.3",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-scripts": "^3.0.1",
"rollup": "^0.67.4",
"rollup-plugin-babel": "^4.1.0",
"rollup-plugin-commonjs": "^9.1.3",
"rollup-plugin-node-resolve": "^3.3.0",
"rollup-plugin-peer-deps-external": "^2.2.0",
"rollup-plugin-postcss": "^1.6.2",
"rollup-plugin-url": "^1.4.0"
},
"files": [
"dist"
]
}