mirror of
https://github.com/antd-tiny-vue/antd-tiny-vue.git
synced 2025-01-09 23:59:09 +08:00
feat: add bunder
This commit is contained in:
parent
febc297d5e
commit
ae025850b0
13
package.json
13
package.json
@ -13,13 +13,23 @@
|
||||
],
|
||||
"license": "MIT",
|
||||
"author": "aibayanyu",
|
||||
"main": "dist/index.js",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
"types": "lib/index.d.ts",
|
||||
"files": [
|
||||
"lib",
|
||||
"es",
|
||||
"dist",
|
||||
"README.md"
|
||||
],
|
||||
"scripts": {
|
||||
"test": "vitest",
|
||||
"prepare": "husky install",
|
||||
"dev": "vitepress dev",
|
||||
"build:site": "vitepress build",
|
||||
"build:lib": "vite build --config vite.build.config.ts",
|
||||
"build:umd": "vite build --config vite.bundle.config.ts",
|
||||
"copy:css": "cpx \"components/style/*.css\" dist",
|
||||
"preview": "vitepress preview"
|
||||
},
|
||||
"dependencies": {
|
||||
@ -39,6 +49,7 @@
|
||||
"@mistjs/tsconfig-vue": "^1.1.2",
|
||||
"@types/node": "^18.15.10",
|
||||
"@vitejs/plugin-vue-jsx": "^3.0.1",
|
||||
"cpx": "^1.5.0",
|
||||
"eslint": "^8.36.0",
|
||||
"husky": "^8.0.3",
|
||||
"lint-staged": "^13.2.0",
|
||||
|
1004
pnpm-lock.yaml
generated
1004
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
13
vite.bundle.config.ts
Normal file
13
vite.bundle.config.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import vueJsx from '@vitejs/plugin-vue-jsx'
|
||||
export default defineConfig({
|
||||
plugins: [vueJsx()],
|
||||
build: {
|
||||
lib: {
|
||||
entry: 'components/index.ts',
|
||||
name: 'Antd',
|
||||
fileName: () => `antd.js`,
|
||||
formats: ['umd']
|
||||
}
|
||||
}
|
||||
})
|
Loading…
Reference in New Issue
Block a user