-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
89 lines (89 loc) · 2.39 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
{
"name": "@opd/component",
"version": "1.0.0",
"description": "template for ui-engine component",
"keywords": [
"component",
"ui-engine",
"pangu"
],
"author": "kagawagao <kingsongao1221@gmail.com> (https://kingsongao.com/)",
"bugs": {
"url": "https://github.com/open-data-plan/component-template/issues"
},
"homepage": "https://github.com/open-data-plan/component-template#readme",
"license": "MIT",
"main": "lib/index.js",
"module": "es/index.js",
"directories": {
"lib": "lib",
"test": "__tests__"
},
"files": [
"lib",
"es",
"style",
"*.d.ts"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/open-data-plan/component-template.git"
},
"scripts": {
"lint": "eslint . --ext=.ts,.tsx",
"lint:fix": "eslint . --ext=.ts,.tsx --fix",
"test": "jest",
"prebuild": "npm test",
"build": "npm run build:es & npm run build:commonjs & npm run build:style",
"postbuild": "npm run build:type",
"build:es": "babel src -d es --extensions .ts,.tsx --delete-dir-on-start",
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src -d lib --extensions .ts,.tsx --delete-dir-on-start",
"build:style": "lessc style/index.less style/index.css",
"build:types": "tsc --declarationDir es & tsc --declarationDir lib",
"build:docs": "dumi build",
"preversion": "npm run build"
},
"devDependencies": {
"@babel/cli": "^7.23.9",
"@opd/babel-preset-component": "^1.13.6",
"@opd/babel-preset-lib": "^1.13.6",
"@opd/eslint-config-pangu": "^1.14.0",
"@opd/jest-preset-pangu": "^1.13.8",
"@opd/prettier-config-pangu": "^1.14.0",
"@opd/stylelint-config-pangu": "^1.14.0",
"@types/react-dom": "^18.2.19",
"cross-env": "^7.0.3",
"dumi": "^2.2.17",
"dumi-theme-default": "^1.1.24",
"husky": "9.0.11",
"lessc": "^1.0.2",
"lint-staged": "^15.2.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0",
"typescript": "^5.3.3"
},
"prettier": "@opd/prettier-config-pangu",
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --fix"
],
"*.{css,less}": [
"stylelint --fix"
],
"*.{json,md}": [
"prettier -c --write"
]
},
"dependencies": {
"@types/react": "^18.2.60"
}
}