Skip to content

Commit

Permalink
chore: 优化脚手架构建
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiu-Jun committed Sep 6, 2024
1 parent 6eea05b commit 0944e86
Show file tree
Hide file tree
Showing 11 changed files with 10,856 additions and 278 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,3 @@ pnpm-debug.log*
*.sw?
dist/*
dev-dist/*

auto-imports.d.ts
components.d.ts
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dist
node_modules
src/types/auto-imports.d.ts
src/types/components.d.ts
.hbuilderx
5 changes: 3 additions & 2 deletions build/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ export const createVitePlugins = (
}),
AutoImport({
imports: ['vue'],
dts: './src/types/auto-imports.d.ts',
dts: path.resolve(__dirname, "../src/types/auto-imports.d.ts"),
eslintrc: {
enabled: true
},
resolvers: [ElementPlusResolver()],
}),
Components({
resolvers: [ElementPlusResolver()],
dts: path.resolve(__dirname, "../src/types/components.d.d.ts"),
}),
VitePWA({
registerType: "autoUpdate",
Expand Down Expand Up @@ -95,7 +96,7 @@ export const createVitePlugins = (
background_color: "#000000",
},
devOptions: {
enabled: true,
enabled: false,
}
}),
createSvgIconsPlugin({
Expand Down
44 changes: 44 additions & 0 deletions components.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
export {}

declare module 'vue' {
export interface GlobalComponents {
Alpha: typeof import('./src/components/ColorPicker/Alpha.vue')['default']
Checkboard: typeof import('./src/components/ColorPicker/Checkboard.vue')['default']
ColorButton: typeof import('./src/components/ColorButton.vue')['default']
ColorPicker: typeof import('./src/components/ColorPicker/index.vue')['default']
Contextmenu: typeof import('./src/components/Contextmenu/index.vue')['default']
EditableInput: typeof import('./src/components/ColorPicker/EditableInput.vue')['default']
ExportImage: typeof import('./src/components/FileExport/ExportImage.vue')['default']
ExportJSON: typeof import('./src/components/FileExport/ExportJSON.vue')['default']
ExportPDF: typeof import('./src/components/FileExport/ExportPDF.vue')['default']
ExportPSD: typeof import('./src/components/FileExport/ExportPSD.vue')['default']
ExportSVG: typeof import('./src/components/FileExport/ExportSVG.vue')['default']
Extraction: typeof import('./src/components/ImageMatting/extraction.vue')['default']
FileExport: typeof import('./src/components/FileExport/index.vue')['default']
FileInput: typeof import('./src/components/FileInput.vue')['default']
FileUpload: typeof import('./src/components/FileUpload/index.vue')['default']
FullscreenSpin: typeof import('./src/components/FullscreenSpin.vue')['default']
HomePopover: typeof import('./src/components/HomePopover.vue')['default']
Hue: typeof import('./src/components/ColorPicker/Hue.vue')['default']
ImageFillColor: typeof import('./src/components/ImageFillColor.vue')['default']
ImageMatting: typeof import('./src/components/ImageMatting/index.vue')['default']
Lang: typeof import('./src/components/Lang/index.vue')['default']
LinePointMarker: typeof import('./src/components/LinePointMarker.vue')['default']
LoginDialog: typeof import('./src/components/LoginDialog/index.vue')['default']
Matting: typeof import('./src/components/ImageMatting/matting.vue')['default']
MenuContent: typeof import('./src/components/Contextmenu/MenuContent.vue')['default']
OpenGpt: typeof import('./src/components/GPTModal/OpenGpt.vue')['default']
ReferencePopover: typeof import('./src/components/ReferencePopover.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
Saturation: typeof import('./src/components/ColorPicker/Saturation.vue')['default']
SvgIcon: typeof import('./src/components/SvgIcon/index.vue')['default']
SwipeInput: typeof import('./src/components/SwipeInput.vue')['default']
TextColorButton: typeof import('./src/components/TextColorButton.vue')['default']
}
}
Loading

0 comments on commit 0944e86

Please sign in to comment.