-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
84 lines (84 loc) · 2.23 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
{
"name": "@kne/analytics-sdk",
"version": "0.1.2",
"description": "完成用户行为的分析上报",
"syntax": {
"esmodules": true
},
"main": "dist/index.js",
"module": "dist/index.modern.js",
"source": "src/index.js",
"scripts": {
"init": "husky && npm run init-example",
"start": "run-p start:lib start:md start:example",
"build": "run-s build:lib build:md build:example",
"init-example": "modules-dev-libs-init",
"build:md": "npx @kne/md-doc",
"start:md": "npx @kne/md-doc --watch",
"build:lib": "microbundle --format modern,cjs,umd",
"start:lib": "microbundle --format modern,cjs,umd watch --no-compress",
"build:example": "cd example && npm run build",
"start:example": "cd example && npm run start",
"test:build": "run-s build",
"test:lint": "eslint .",
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
"test:watch": "react-scripts test --env=jsdom",
"prettier": "prettier --config .prettierrc --write '{src/**/*,index,prompts}.{js,jsx,ts,tsx,json,css,scss}'",
"lint-staged": "npx lint-staged"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
"prettier --config .prettierrc --write",
"git add"
]
},
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "git+https://github.com/kne-union/analytics-sdk.git"
},
"keywords": [],
"author": "linzp",
"license": "ISC",
"bugs": {
"url": "https://github.com/kne-union/analytics-sdk/issues"
},
"homepage": "https://github.com/kne-union/analytics-sdk",
"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"
]
},
"devDependencies": {
"@kne/microbundle": "^0.15.5",
"@kne/modules-dev": "^2.0.33",
"axios": "^1.7.7",
"cross-env": "^7.0.3",
"husky": "^9.0.11",
"npm-run-all": "^4.1.5",
"prettier": "^3.2.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"short-uuid": "^5.2.0"
}
}