/
package.json
117 lines (117 loc) · 3.17 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
"name": "ycoffee",
"version": "0.1.9",
"private": false,
"author": "yuyunzhi",
"description": "一个好用的组件库",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"license": "MIT",
"keywords": [
"Component",
"UI",
"React"
],
"files": [
"dist"
],
"homepage": "http://yuyunzhi.com/ycoffee",
"repository": {
"type": "git",
"url": "https://github.com/yuyunzhi/ycoffee"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.29",
"@fortawesome/free-solid-svg-icons": "^5.13.1",
"@fortawesome/react-fontawesome": "^0.1.11",
"@types/react-transition-group": "^4.4.0",
"axios": "^0.19.2",
"classnames": "^2.2.6",
"react-transition-group": "^4.4.1",
"tiny-pinyin": "^1.3.2"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"scripts": {
"clean": "rimraf ./dist",
"start": "react-scripts start",
"test": "react-scripts test",
"eject": "react-scripts eject",
"lint": "eslint . --ext .js,.ts,.tsx src",
"build": "npm run clean && npm run build-ts && npm run build-css",
"build-css": "node-sass ./src/styles/index.scss ./dist/index.css",
"test:nowatch": "cross-env CI=true react-scripts test",
"build-ts": "tsc -p tsconfig.build.json",
"storybook": "start-storybook -p 9009 -s public",
"build-storybook": "build-storybook -s public",
"prepublishOnly": "npm run lint && npm run build"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"eslintConfig": {
"extends": [
"react-app",
"prettier"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@storybook/addon-actions": "^5.3.19",
"@storybook/addon-info": "^5.3.21",
"@storybook/addon-links": "^5.3.19",
"@storybook/addons": "^5.3.19",
"@storybook/preset-create-react-app": "^3.1.2",
"@storybook/react": "^5.3.19",
"@testing-library/jest-dom": "^5.11.0",
"@testing-library/react": "^9.3.2",
"@types/classnames": "^2.2.10",
"@types/jest": "^24.0.0",
"@types/node": "^12.0.0",
"@types/react": "^16.9.0",
"@types/react-dom": "^16.9.0",
"airbnb": "^0.0.2",
"babel-loader": "8.1.0",
"cross-env": "^7.0.2",
"css-loader": "^3.6.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-jest": "^24.1.5",
"eslint-plugin-prettier": "^3.3.1",
"git-cz": "^4.7.6",
"husky": "^4.2.5",
"lint-staged": ">=10",
"node-sass": "^4.14.1",
"postcss-loader": "^3.0.0",
"prettier": "2.2.1",
"react": "^16.13.1",
"react-docgen-typescript-loader": "^3.7.2",
"react-dom": "^16.13.1",
"react-scripts": "3.4.1",
"sass-loader": "^8.0.2",
"style-loader": "^1.2.1",
"typescript": "~3.7.2",
"webpack": "4.42.0"
},
"lint-staged": {
"*.{js,css,md,ts,tsx}": "prettier --write"
}
}