-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
70 lines (70 loc) · 2.11 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
{
"name": "react-umd-demo",
"version": "1.0.28",
"author": "qxtang",
"description": "将 react 组件打包成 umd,支持 script 引入和 React 组件两种使用方式",
"keywords": [
"plugin",
"lib",
"component"
],
"repository": {
"type": "git",
"url": "git@github.com:qxtang/react-umd-demo.git"
},
"main": "dist/react-umd-demo.js",
"types": "typings/index.d.ts",
"scripts": {
"prepublishOnly": "yarn build",
"prepare": "npx husky install && npx husky add .husky/pre-commit \"yarn prettier && yarn lint && git add .\"",
"prettier": "prettier --write .",
"dev": "cross-env NODE_ENV=development webpack serve --config webpack.config.js",
"build:react": "cross-env NODE_ENV=production webpack --config webpack.config.react.js",
"build": "rimraf ./dist && cross-env NODE_ENV=production webpack && yarn build:react",
"lint": "eslint --fix src"
},
"files": [
"readme.md",
"dist",
"typings",
"package.json"
],
"devDependencies": {
"@babel/core": "^7.16.10",
"@babel/preset-react": "^7.16.7",
"@babel/preset-typescript": "^7.16.7",
"@reduxjs/toolkit": "^1.7.2",
"@types/lodash": "^4.14.178",
"@types/react": "^17.0.38",
"@types/react-dom": "^17.0.11",
"@typescript-eslint/eslint-plugin": "^5.10.0",
"@typescript-eslint/parser": "^5.10.0",
"antd": "^4.18.4",
"babel-loader": "^8.2.3",
"babel-plugin-import": "^1.13.3",
"copy-webpack-plugin": "^10.2.4",
"cross-env": "^7.0.3",
"css-loader": "^6.5.1",
"eslint": "^8.7.0",
"eslint-plugin-react": "^7.28.0",
"husky": "^7.0.4",
"less": "^4.1.2",
"less-loader": "^10.2.0",
"mini-css-extract-plugin": "^2.5.2",
"postcss-loader": "^6.2.1",
"preact": "^10.6.4",
"prettier": "^2.5.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-redux": "^7.2.6",
"redux": "^4.1.2",
"rimraf": "^3.0.2",
"style-loader": "^3.3.1",
"typescript": "^4.5.5",
"url-loader": "^4.1.1",
"webpack": "^5.66.0",
"webpack-bundle-analyzer": "^4.5.0",
"webpack-cli": "^4.9.1",
"webpack-dev-server": "^4.7.3"
}
}