-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Expand file tree
/
Copy pathpackage.json
More file actions
176 lines (176 loc) · 6.52 KB
/
Copy pathpackage.json
File metadata and controls
176 lines (176 loc) · 6.52 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
{
"name": "naive-ui",
"version": "2.44.1",
"packageManager": "pnpm@11.10.0",
"description": "A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast",
"author": "07akioni",
"license": "MIT",
"homepage": "https://www.naiveui.com",
"repository": {
"type": "git",
"url": "https://github.com/tusen-ai/naive-ui"
},
"keywords": [
"naive-ui",
"component library",
"ui framework",
"ui",
"vue"
],
"sideEffects": false,
"main": "lib/index.js",
"module": "es/index.mjs",
"unpkg": "dist/index.js",
"jsdelivr": "dist/index.js",
"types": "es/index.d.ts",
"files": [
"README.md",
"dist",
"es",
"generic",
"lib",
"volar.d.ts",
"web-types.json"
],
"engines": {
"node": ">=20"
},
"scripts": {
"start": "pnpm run dev",
"dev": "pnpm run clean && pnpm run gen-version && pnpm run gen-volar-dts && NODE_ENV=development vite",
"build:package": "pnpm run gen-version && pnpm run clean && pnpm run gen-volar-dts && tsc -b --force tsconfig.esm.json && tsx scripts/pre-build/pre-cjs-build.ts && tsc -b --force tsconfig.cjs.json && pnpm run build:dist && pnpm run test:umd && pnpm run test:esm && pnpm run post-build && rimraf {es,lib}/*.tsbuildinfo",
"build:package:vapor": "pnpm run gen-version && pnpm run clean && pnpm run gen-volar-dts && tsc -p src/tsconfig.esm.json --noEmit && tsc -p src/tsconfig.cjs.json --noEmit && BUILD_FORMAT=esm tsdown && tsc -p themes/tusimple/tsconfig.esm.json --noEmit && BUILD_FORMAT=cjs tsdown && tsc -p themes/tusimple/tsconfig.cjs.json --noEmit && pnpm run build:dist && pnpm run test:umd && pnpm run test:esm && pnpm run post-build",
"build:dist": "BUILD_ENV=development vite build -c vite.build.mts && BUILD_ENV=production vite build -c vite.build.mts",
"build:themes": "tsc -b --force themes/tusimple/tsconfig.esm.json && tsc -b --force themes/tusimple/tsconfig.cjs.json",
"build:site": "bash ./scripts/pre-build-site/pre-build-site.sh && NODE_ENV=production NODE_OPTIONS=--max-old-space-size=4096 vite build && bash ./scripts/post-build-site/post-build-site.sh",
"clean": "rimraf site lib es dist node_modules/naive-ui themes/tusimple/es themes/tusimple/lib",
"release:package": "pnpm run test && pnpm run build:package && pnpm publish --no-git-checks",
"release:changelog": "tsx scripts/release-changelog.ts",
"lint": "pnpm run lint:code && pnpm run lint:type",
"lint:type": "pnpm run lint:src-type && pnpm run lint:demo-type",
"lint:code": "eslint \"{src,build,scripts,demo}/**/*.{ts,tsx,js,vue,md}\"",
"lint:fix": "eslint --fix \"{src,build,scripts,demo}/**/*.{ts,tsx,js,vue,md}\"",
"lint:src-type": "tsc -b --force tsconfig.esm.json",
"lint:demo-type": "NODE_OPTIONS=--max-old-space-size=4096 vue-tsc -p src/tsconfig.demo.json",
"format": "pnpm run format:code && pnpm run format:md && pnpm run lint:fix",
"format:code": "prettier --write \"{src,demo,scripts,build}/**/*.{vue,js,ts,tsx}\"",
"format:md": "prettier --write --parser markdown --prose-wrap never \"(src|demo)/**/*.md\"",
"test": "vitest run",
"test:update": "vitest --run --update",
"test:cov": "vitest run --coverage",
"test:watch": "vitest --watch",
"test:umd": "vitest run umd-test/index.spec.js",
"test:esm": "vitest run esm-test/index.spec.js",
"gen-version": "tsx scripts/gen-version.ts",
"gen-volar-dts": "tsx scripts/gen-component-declaration.ts",
"post-build": "tsx scripts/post-build/index.ts",
"build:site:ts": "bash ./scripts/pre-build-site/pre-build-site.sh && TUSIMPLE=true NODE_ENV=production NODE_OPTIONS=--max-old-space-size=4096 vite build && bash ./scripts/post-build-site/post-build-site.sh",
"prepare": "husky",
"transpile-docs": "tsx scripts/md-to-vue.ts",
"release:site": "TUSIMPLE=true pnpm run build:site && node build-doc/generate-deploy-sh.js && sudo bash build-doc/deploy-doc.sh"
},
"web-types": "./web-types.json",
"peerDependencies": {
"vue": "^3.0.0"
},
"dependencies": {
"@css-render/plugin-bem": "^0.15.14",
"@css-render/vue3-ssr": "^0.15.14",
"@types/lodash": "^4.17.20",
"@types/lodash-es": "^4.17.12",
"async-validator": "^4.2.5",
"css-render": "^0.15.14",
"csstype": "^3.1.3",
"date-fns": "^4.1.0",
"date-fns-tz": "^3.2.0",
"evtd": "^0.2.4",
"highlight.js": "^11.8.0",
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
"seemly": "^0.3.10",
"treemate": "^0.3.11",
"vdirs": "^0.1.8",
"vooks": "^0.2.12",
"vueuc": "^0.4.65"
},
"devDependencies": {
"@antfu/eslint-config": "^5.3.0",
"@babel/core": "^7.28.0",
"@babel/generator": "^7.28.0",
"@babel/parser": "^7.28.0",
"@babel/preset-env": "^7.28.0",
"@babel/traverse": "^7.28.0",
"@lylajs/web": "^2.1.0",
"@rollup/plugin-babel": "^7.0.0",
"@types/babel__core": "^7.20.5",
"@types/babel__generator": "^7.27.0",
"@types/babel__traverse": "^7.28.0",
"@types/estree": "^1.0.1",
"@types/fs-extra": "^11.0.4",
"@types/node": "^24.0.12",
"@types/superagent": "^8.1.9",
"@vicons/fluent": "^0.13.0",
"@vicons/ionicons4": "^0.13.0",
"@vicons/ionicons5": "^0.13.0",
"@vitejs/plugin-vue": "^6.0.6",
"@vitest/coverage-v8": "^4.1.5",
"@vue/compiler-sfc": "^3.5.21",
"@vue/server-renderer": "^3.5.21",
"@vue/test-utils": "^2.4.6",
"autoprefixer": "^10.4.21",
"codesandbox": "^2.2.3",
"cssnano": "^7.1.0",
"deepmerge": "^4.3.1",
"eslint": "^9.6.0",
"express": "^5.1.0",
"fast-glob": "^3.3.1",
"fflate": "^0.8.2",
"fs-extra": "^11.3.0",
"grapheme-splitter": "^1.0.4",
"husky": "^9.1.7",
"inquirer": "^12.7.0",
"jsdom": "^27.0.0",
"katex": "^0.16.28",
"lint-staged": "^16.1.6",
"marked": "^12.0.2",
"oxc-transform": "^0.128.0",
"prettier": "^3.6.2",
"rimraf": "^6.0.1",
"superagent": "^10.2.2",
"tsdown": "^0.22.2",
"tsx": "^4.20.3",
"typescript": "^6.0.3",
"vfonts": "^0.0.3",
"vite": "^8.0.10",
"vitest": "^4.1.5",
"vue": "^3.5.21",
"vue-jsx-vapor": "^3.2.9",
"vue-router": "^4.5.1",
"vue-tsc": "^3.0.7"
},
"lint-staged": {
"*.js": [
"prettier --write",
"eslint --fix"
],
"*.ts": [
"prettier --write",
"eslint --fix"
],
"*.tsx": [
"prettier --write",
"eslint --fix"
],
"*.vue": [
"prettier --parser=vue --write",
"eslint --fix"
],
"*.css": [
"prettier --write"
],
"*.md": [
"prettier --write --parser markdown --prose-wrap never",
"eslint --fix"
]
}
}