mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 19:08:20 +00:00
Fixed path aliases, added @ for components
This commit is contained in:
parent
ca284c9bcb
commit
871d3f2303
4 changed files with 42 additions and 2 deletions
|
@ -48,6 +48,7 @@
|
||||||
"unplugin-vue-macros": "^2.6.1",
|
"unplugin-vue-macros": "^2.6.1",
|
||||||
"vite": "^4.5.0",
|
"vite": "^4.5.0",
|
||||||
"vite-plugin-pages": "^0.31.0",
|
"vite-plugin-pages": "^0.31.0",
|
||||||
|
"vite-tsconfig-paths": "^4.2.1",
|
||||||
"vue-tsc": "^1.8.22"
|
"vue-tsc": "^1.8.22"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
|
|
36
client/pnpm-lock.yaml
generated
36
client/pnpm-lock.yaml
generated
|
@ -30,6 +30,7 @@ specifiers:
|
||||||
vee-validate: ^4.11.8
|
vee-validate: ^4.11.8
|
||||||
vite: ^4.5.0
|
vite: ^4.5.0
|
||||||
vite-plugin-pages: ^0.31.0
|
vite-plugin-pages: ^0.31.0
|
||||||
|
vite-tsconfig-paths: ^4.2.1
|
||||||
vue: ^3.3.7
|
vue: ^3.3.7
|
||||||
vue-i18n: ^9.6.2
|
vue-i18n: ^9.6.2
|
||||||
vue-router: ^4.2.5
|
vue-router: ^4.2.5
|
||||||
|
@ -76,6 +77,7 @@ devDependencies:
|
||||||
unplugin-vue-macros: 2.6.2_q64zeehrg4w2rr4xbfppgk6lgq
|
unplugin-vue-macros: 2.6.2_q64zeehrg4w2rr4xbfppgk6lgq
|
||||||
vite: 4.5.0
|
vite: 4.5.0
|
||||||
vite-plugin-pages: 0.31.0_vite@4.5.0
|
vite-plugin-pages: 0.31.0_vite@4.5.0
|
||||||
|
vite-tsconfig-paths: 4.2.1_cnaluuumdmttzz4zpr3jp6tchm
|
||||||
vue-tsc: 1.8.22_typescript@5.2.2
|
vue-tsc: 1.8.22_typescript@5.2.2
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
@ -2036,6 +2038,10 @@ packages:
|
||||||
slash: 3.0.0
|
slash: 3.0.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/globrex/0.1.2:
|
||||||
|
resolution: {integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==}
|
||||||
|
dev: true
|
||||||
|
|
||||||
/gopd/1.0.1:
|
/gopd/1.0.1:
|
||||||
resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==}
|
resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==}
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -3015,6 +3021,19 @@ packages:
|
||||||
typescript: 5.2.2
|
typescript: 5.2.2
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/tsconfck/2.1.2_typescript@5.2.2:
|
||||||
|
resolution: {integrity: sha512-ghqN1b0puy3MhhviwO2kGF8SeMDNhEbnKxjK7h6+fvY9JAxqvXi8y5NAHSQv687OVboS2uZIByzGd45/YxrRHg==}
|
||||||
|
engines: {node: ^14.13.1 || ^16 || >=18}
|
||||||
|
hasBin: true
|
||||||
|
peerDependencies:
|
||||||
|
typescript: ^4.3.5 || ^5.0.0
|
||||||
|
peerDependenciesMeta:
|
||||||
|
typescript:
|
||||||
|
optional: true
|
||||||
|
dependencies:
|
||||||
|
typescript: 5.2.2
|
||||||
|
dev: true
|
||||||
|
|
||||||
/tslib/2.6.2:
|
/tslib/2.6.2:
|
||||||
resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==}
|
resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==}
|
||||||
dev: false
|
dev: false
|
||||||
|
@ -3312,6 +3331,23 @@ packages:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/vite-tsconfig-paths/4.2.1_cnaluuumdmttzz4zpr3jp6tchm:
|
||||||
|
resolution: {integrity: sha512-GNUI6ZgPqT3oervkvzU+qtys83+75N/OuDaQl7HmOqFTb0pjZsuARrRipsyJhJ3enqV8beI1xhGbToR4o78nSQ==}
|
||||||
|
peerDependencies:
|
||||||
|
vite: '*'
|
||||||
|
peerDependenciesMeta:
|
||||||
|
vite:
|
||||||
|
optional: true
|
||||||
|
dependencies:
|
||||||
|
debug: 4.3.4
|
||||||
|
globrex: 0.1.2
|
||||||
|
tsconfck: 2.1.2_typescript@5.2.2
|
||||||
|
vite: 4.5.0
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- supports-color
|
||||||
|
- typescript
|
||||||
|
dev: true
|
||||||
|
|
||||||
/vite/4.5.0:
|
/vite/4.5.0:
|
||||||
resolution: {integrity: sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw==}
|
resolution: {integrity: sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw==}
|
||||||
engines: {node: ^14.18.0 || >=16.0.0}
|
engines: {node: ^14.18.0 || >=16.0.0}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"baseUrl": ".",
|
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"target": "ESNext",
|
"target": "ESNext",
|
||||||
"lib": ["DOM", "ESNext"],
|
"lib": ["DOM", "ESNext"],
|
||||||
|
@ -20,8 +19,10 @@
|
||||||
"vite-plugin-pages/client",
|
"vite-plugin-pages/client",
|
||||||
"unplugin-vue-macros/macros-global"
|
"unplugin-vue-macros/macros-global"
|
||||||
],
|
],
|
||||||
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"~/*": ["src/*"]
|
"~/*": ["src/*"],
|
||||||
|
"@/*": ["src/components/*"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"vueCompilerOptions": {
|
"vueCompilerOptions": {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
|
import TSConfigPaths from 'vite-tsconfig-paths';
|
||||||
import Vue from '@vitejs/plugin-vue';
|
import Vue from '@vitejs/plugin-vue';
|
||||||
import Pages from 'vite-plugin-pages';
|
import Pages from 'vite-plugin-pages';
|
||||||
import Markdown from 'unplugin-vue-markdown/vite';
|
import Markdown from 'unplugin-vue-markdown/vite';
|
||||||
|
@ -28,6 +29,7 @@ export default defineConfig({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
|
TSConfigPaths(),
|
||||||
Macros({
|
Macros({
|
||||||
plugins: {
|
plugins: {
|
||||||
vue: Vue({
|
vue: Vue({
|
||||||
|
|
Loading…
Add table
Reference in a new issue