cos-design 1.7.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/README.md +106 -8
- package/dist/index.cjs +1 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.js +189 -2
- package/package.json +89 -70
- package/dist/chunk.js +0 -3
- package/dist/chunk.js.LICENSE.txt +0 -32
- package/dist/css/index.css +0 -21
- package/dist/index.html +0 -1
- package/lib/components/canvasClock/index.d.ts +0 -7
- package/lib/components/index.d.ts +0 -1
- package/lib/css/index.css +0 -21
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -2
package/package.json
CHANGED
|
@@ -1,86 +1,105 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cos-design",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "A React component library built with Vite",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"require": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"default": "./dist/index.cjs"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
11
21
|
"files": [
|
|
22
|
+
"dist",
|
|
12
23
|
"LICENSE",
|
|
13
24
|
"README.md",
|
|
14
|
-
"
|
|
15
|
-
"lib/*"
|
|
25
|
+
"CHANGELOG.md"
|
|
16
26
|
],
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
|
|
33
|
-
"prettier": "prettier -c --write \"**/*\""
|
|
27
|
+
"sideEffects": [
|
|
28
|
+
"**/*.css",
|
|
29
|
+
"**/*.less"
|
|
30
|
+
],
|
|
31
|
+
"keywords": [
|
|
32
|
+
"cos",
|
|
33
|
+
"cos-design",
|
|
34
|
+
"react",
|
|
35
|
+
"component-library",
|
|
36
|
+
"vite",
|
|
37
|
+
"typescript"
|
|
38
|
+
],
|
|
39
|
+
"homepage": "https://github.com/jiaxiantao/cos-design#readme",
|
|
40
|
+
"bugs": {
|
|
41
|
+
"url": "https://github.com/jiaxiantao/cos-design/issues"
|
|
34
42
|
},
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
}
|
|
43
|
+
"repository": {
|
|
44
|
+
"type": "git",
|
|
45
|
+
"url": "git+https://github.com/jiaxiantao/cos-design.git"
|
|
39
46
|
},
|
|
47
|
+
"author": "jiaxiantao <jiaxiantao@souche.com>",
|
|
48
|
+
"license": "MIT",
|
|
40
49
|
"lint-staged": {
|
|
41
|
-
"**/*.less": "stylelint
|
|
42
|
-
"**/*.{
|
|
43
|
-
|
|
44
|
-
"git add"
|
|
45
|
-
],
|
|
46
|
-
"**/*.{js,jsx}": "npm run lint-staged:js",
|
|
47
|
-
"**/*.{js,ts,tsx}": "npm run lint-staged:js"
|
|
50
|
+
"**/*.less": "stylelint",
|
|
51
|
+
"**/*.{ts,tsx,less,md,json}": "prettier --write",
|
|
52
|
+
"**/*.{ts,tsx}": "eslint --fix"
|
|
48
53
|
},
|
|
49
54
|
"devDependencies": {
|
|
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
|
-
"ts-loader": "^9.2.5",
|
|
77
|
-
"typescript": "^4.3.5",
|
|
78
|
-
"webpack": "^5.51.1",
|
|
79
|
-
"webpack-cli": "^4.8.0",
|
|
80
|
-
"webpack-dev-server": "^4.0.0"
|
|
55
|
+
"@types/node": "^22.13.10",
|
|
56
|
+
"@types/react": "^18.3.18",
|
|
57
|
+
"@types/react-dom": "^18.3.5",
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "^8.26.0",
|
|
59
|
+
"@typescript-eslint/parser": "^8.26.0",
|
|
60
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
61
|
+
"eslint": "^8.57.1",
|
|
62
|
+
"eslint-config-prettier": "^10.0.2",
|
|
63
|
+
"eslint-plugin-prettier": "^5.2.3",
|
|
64
|
+
"eslint-plugin-react": "^7.37.4",
|
|
65
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
66
|
+
"husky": "^9.1.7",
|
|
67
|
+
"less": "^4.2.2",
|
|
68
|
+
"lint-staged": "^15.4.3",
|
|
69
|
+
"only-allow": "^1.2.1",
|
|
70
|
+
"prettier": "^3.5.3",
|
|
71
|
+
"react": "^18.3.1",
|
|
72
|
+
"react-dom": "^18.3.1",
|
|
73
|
+
"react-router": "^6.30.0",
|
|
74
|
+
"react-router-dom": "^6.30.0",
|
|
75
|
+
"stylelint": "^16.15.0",
|
|
76
|
+
"stylelint-config-standard": "^37.0.0",
|
|
77
|
+
"typescript": "^5.8.2",
|
|
78
|
+
"vite": "^6.2.2",
|
|
79
|
+
"vite-plugin-dts": "^4.5.3",
|
|
80
|
+
"vite-plugin-lib-inject-css": "^2.2.1"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"react": ">=16.12.0",
|
|
84
84
|
"react-dom": ">=16.12.0"
|
|
85
|
+
},
|
|
86
|
+
"engines": {
|
|
87
|
+
"node": ">=18",
|
|
88
|
+
"pnpm": ">=9"
|
|
89
|
+
},
|
|
90
|
+
"scripts": {
|
|
91
|
+
"setup": "node scripts/install.mjs",
|
|
92
|
+
"preinstall": "npx only-allow pnpm",
|
|
93
|
+
"dev": "vite",
|
|
94
|
+
"build": "tsc -p tsconfig.build.json --noEmit && vite build --mode lib",
|
|
95
|
+
"build:demo": "vite build",
|
|
96
|
+
"preview": "vite preview",
|
|
97
|
+
"pub": "pnpm build && pnpm publish",
|
|
98
|
+
"lint": "eslint \"src/**/*.{ts,tsx}\" && stylelint \"src/**/*.less\"",
|
|
99
|
+
"lint:fix": "eslint --fix \"src/**/*.{ts,tsx}\" && stylelint \"src/**/*.less\"",
|
|
100
|
+
"lint:js": "eslint \"src/**/*.{ts,tsx}\"",
|
|
101
|
+
"lint:style": "stylelint \"src/**/*.less\"",
|
|
102
|
+
"format": "prettier -c --write \"**/*.{ts,tsx,less,md,json}\"",
|
|
103
|
+
"lint-staged": "lint-staged"
|
|
85
104
|
}
|
|
86
|
-
}
|
|
105
|
+
}
|