feat(tooling): use vite-config tooling pkg

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-02-22 20:20:11 +01:00
committed by Braks
parent 7b590bd526
commit 2aa185756b
27 changed files with 662 additions and 1082 deletions
+2 -4
View File
@@ -49,16 +49,14 @@
"@types/d3": "^7.4.0",
"@vue-flow/eslint-config": "workspace:*",
"@vue-flow/tsconfig": "workspace:*",
"@vitejs/plugin-vue": "^4.0.0",
"@vue-flow/vite-config": "workspace:*",
"autoprefixer": "^10.4.13",
"postcss": "^8.4.21",
"postcss-cli": "^10.1.0",
"postcss-nested": "^6.0.1",
"ts-patch": "^2.1.0",
"typescript-transform-paths": "^3.4.6",
"unplugin-auto-import": "^0.14.4",
"unplugin-vue-macros": "^1.8.2",
"vite": "^4.1.3",
"vite": "^4.1.4",
"vue-tsc": "^1.1.5"
},
"publishConfig": {
+2 -9
View File
@@ -1,7 +1,4 @@
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// Generated by unplugin-auto-import
// Generated by 'unplugin-auto-import'
export {}
declare global {
const $$: typeof import('vue/macros')['$$']
@@ -168,6 +165,7 @@ declare global {
const rendererPointToPoint: typeof import('./utils/graph')['rendererPointToPoint']
const resetRecentHandle: typeof import('./utils/handle')['resetRecentHandle']
const resolveComponent: typeof import('vue')['resolveComponent']
const resolveDirective: typeof import('vue')['resolveDirective']
const resolveRef: typeof import('@vueuse/core')['resolveRef']
const resolveUnref: typeof import('@vueuse/core')['resolveUnref']
const shallowReactive: typeof import('vue')['shallowReactive']
@@ -378,8 +376,3 @@ declare global {
const watchWithFilter: typeof import('@vueuse/core')['watchWithFilter']
const whenever: typeof import('@vueuse/core')['whenever']
}
// for type re-export
declare global {
// @ts-ignore
export type { Component,ComponentPublicInstance,ComputedRef,InjectionKey,PropType,Ref,VNode } from 'vue'
}
+5
View File
@@ -24,5 +24,10 @@
},
"include": [
"./src"
],
"references": [
{
"path": "./tsconfig.node.json"
}
]
}
+11
View File
@@ -0,0 +1,11 @@
{
"compilerOptions": {
"composite": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"],
"files": ["package.json"]
}
-1
View File
@@ -6,7 +6,6 @@ import AutoImport from 'unplugin-auto-import/vite'
import replace from '@rollup/plugin-replace'
import pkg from './package.json'
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: {