refactor: extract configs into its own package

Signed-off-by: Fernando Fernández <ferferga@hotmail.com>
This commit is contained in:
Fernando Fernández 2024-09-15 14:44:43 +02:00
parent 4fa0a56ce2
commit 4c4cdbc9db
5 changed files with 56 additions and 32 deletions

View File

@ -52,6 +52,7 @@
"@iconify/json": "2.2.246",
"@intlify/eslint-plugin-vue-i18n": "3.0.0",
"@intlify/unplugin-vue-i18n": "4.0.0",
"@jellyfin-vue/configs": "*",
"@jellyfin-vue/vite-plugins": "*",
"@rollup/plugin-virtual": "3.0.2",
"@stylistic/eslint-plugin": "2.8.0",

View File

@ -1,29 +1,6 @@
{
"extends": "@jellyfin-vue/configs/tsconfig.json",
"compilerOptions": {
"target": "ESNext",
"module": "Preserve",
"moduleResolution": "Bundler",
"esModuleInterop": true,
"resolveJsonModule": true,
"sourceMap": true,
"strict": true,
"skipLibCheck": true,
"noEmit": true,
"isolatedModules": true,
"moduleDetection": "force",
"useDefineForClassFields": true,
"noImplicitThis": true,
"noImplicitAny": true,
"noErrorTruncation": true,
"experimentalDecorators": true,
"removeComments": true,
"verbatimModuleSyntax": true,
"incremental": true,
"tsBuildInfoFile": "../node_modules/.cache/tsconfig.tsbuildinfo",
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
"types": [
"axios",
"@intlify/unplugin-vue-i18n/messages",
@ -32,12 +9,8 @@
"vite/client",
"vuetify",
"vue"
]
},
"vueCompilerOptions": {
"strictTemplates": true,
"htmlAttributes": ["aria-*", "data-*"],
"fallthroughAttributes": true
],
"baseUrl": "."
},
"include": [
"src/**/*.ts",
@ -46,6 +19,5 @@
"**/**/*.json",
"types/**/*.d.ts",
"*.config.*"
],
"exclude": ["node_modules"]
]
}

9
package-lock.json generated
View File

@ -57,6 +57,7 @@
"@iconify/json": "2.2.246",
"@intlify/eslint-plugin-vue-i18n": "3.0.0",
"@intlify/unplugin-vue-i18n": "4.0.0",
"@jellyfin-vue/configs": "*",
"@jellyfin-vue/vite-plugins": "*",
"@rollup/plugin-virtual": "3.0.2",
"@stylistic/eslint-plugin": "2.8.0",
@ -1700,6 +1701,10 @@
"url": "https://github.com/chalk/strip-ansi?sponsor=1"
}
},
"node_modules/@jellyfin-vue/configs": {
"resolved": "packages/configs",
"link": true
},
"node_modules/@jellyfin-vue/frontend": {
"resolved": "frontend",
"link": true
@ -9961,6 +9966,10 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
"packages/configs": {
"name": "@jellyfin-vue/configs",
"version": "0.0.1"
},
"packages/vite-plugins": {
"name": "@jellyfin-vue/vite-plugins",
"version": "0.0.1",

View File

@ -0,0 +1,9 @@
{
"name": "@jellyfin-vue/configs",
"version": "0.0.1",
"exports": {
"./tsconfig.json": "./tsconfig.json",
"./index.js": "./index.js"
},
"type": "module"
}

View File

@ -0,0 +1,33 @@
{
"compilerOptions": {
"target": "ESNext",
"module": "Preserve",
"moduleResolution": "Bundler",
"esModuleInterop": true,
"resolveJsonModule": true,
"sourceMap": true,
"strict": true,
"skipLibCheck": true,
"noEmit": true,
"isolatedModules": true,
"moduleDetection": "force",
"useDefineForClassFields": true,
"noImplicitThis": true,
"noImplicitAny": true,
"noErrorTruncation": true,
"experimentalDecorators": true,
"removeComments": true,
"verbatimModuleSyntax": true,
"incremental": true,
"tsBuildInfoFile": "../node_modules/.cache/tsconfig.tsbuildinfo",
"paths": {
"@/*": ["src/*"]
},
},
"vueCompilerOptions": {
"strictTemplates": true,
"htmlAttributes": ["aria-*", "data-*"],
"fallthroughAttributes": true
},
"exclude": ["node_modules"]
}