/
package.json
77 lines (77 loc) · 2.05 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
{
"name": "@template/react-component-tsx",
"version": "4.2.3",
"description": "React Component Example for TypeScript.",
"private": true,
"main": "lib/index.js",
"module": "esm/index.js",
"scripts": {
"doc": "kkt build --app-src ./website",
"start": "kkt start --app-src ./website",
"watch": "tsbb watch src/*.{tsx,ts} --useBabel & npm run css:watch",
"build": "tsbb build src/*.{tsx,ts} --useBabel --bail && npm run css:build",
"css:build": "compile-less -d src -o esm",
"css:watch": "compile-less -d src -o esm --watch",
"css:build:dist": "compile-less -d src --combine lib/dist.css --rm-global",
"test": "tsbb test",
"coverage": "tsbb test --coverage --bail --updateSnapshot",
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\""
},
"repository": {
"type": "git",
"url": "https://github.com/jaywcjlove/tsbb/tree/master/example/react-component-tsx"
},
"license": "MIT",
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,jsx,tsx,ts,less,md,json}": [
"prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\""
]
},
"peerDependencies": {
"@babel/runtime": ">=7.10.0",
"react": ">=16.9.0",
"react-dom": ">=16.9.0"
},
"devDependencies": {
"@babel/runtime": "^7.21.0",
"@kkt/less-modules": "^7.5.1",
"@kkt/raw-modules": "^7.5.1",
"@kkt/scope-plugin-options": "^7.5.1",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"compile-less-cli": "^1.8.13",
"husky": "~8.0.0",
"kkt": "^7.5.1",
"lint-staged": "~13.2.0",
"prettier": "^2.8.6",
"react": "~18.2.0",
"react-dom": "~18.2.0",
"tsbb": "4.2.3"
},
"overrides": {
"typescript": "^5.1.3"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}