Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
workflow_dispatch:

env:
NODE_VERSION: '18'
PYTHON_VERSION: '3.11'
NODE_VERSION: '22.12.x'
PYTHON_VERSION: '3.13'

jobs:
changes:
Expand Down
33 changes: 17 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions services/frontend/apps/admin-app/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
],
"defaultConfiguration": "production",
"options": {
"outputPath": "dist/apps/admin-app"
"outputPath": "dist/apps/admin-app",
"configFile": "apps/admin-app/vite.config.mts"
},
"configurations": {
"development": {
Expand All @@ -26,7 +27,8 @@
"executor": "@nx/vite:dev-server",
"defaultConfiguration": "development",
"options": {
"buildTarget": "admin-app:build"
"buildTarget": "admin-app:build",
"configFile": "apps/admin-app/vite.config.mts"
},
"configurations": {
"development": {
Expand All @@ -45,4 +47,4 @@
}
},
"tags": []
}
}
4 changes: 2 additions & 2 deletions services/frontend/apps/admin-app/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"src/**/*.ts",
"**/*.vue",
"env.d.ts",
"vite.config.ts"
"vite.config.mts"
]
}
}
43 changes: 43 additions & 0 deletions services/frontend/apps/admin-app/vite.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/// <reference types="vitest" />
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite';
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
import vue from '@vitejs/plugin-vue';
import { fileURLToPath } from 'url';
import { defineConfig, loadEnv } from 'vite';
const CWD = process.cwd();

export default defineConfig(({ mode }) => {
const envs = loadEnv(mode, CWD);
return {
...envs,
cacheDir: '../../node_modules/.vite/admin-app',
server: {
port: 4300,
host: 'localhost',

fs: {
allow: [
'../../libs/i18n'
],
},
},
plugins: [
vue(),
nxViteTsPaths(),
VueI18nPlugin({
include: '../../libs/i18n/admin/locales/**',
}),
],

resolve: {
alias: {
'@admin-app/i18n': fileURLToPath(
new URL('../../libs/i18n/admin/index.ts', import.meta.url)
),
'@shared/style': fileURLToPath(
new URL('../../libs/shared/global.css', import.meta.url)
),
},
},
}
});
8 changes: 5 additions & 3 deletions services/frontend/apps/chat-app/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
],
"defaultConfiguration": "production",
"options": {
"outputPath": "dist/apps/chat-app"
"outputPath": "dist/apps/chat-app",
"configFile": "apps/chat-app/vite.config.mts"
},
"configurations": {
"development": {
Expand All @@ -26,7 +27,8 @@
"executor": "@nx/vite:dev-server",
"defaultConfiguration": "development",
"options": {
"buildTarget": "chat-app:build"
"buildTarget": "chat-app:build",
"configFile": "apps/chat-app/vite.config.mts"
},
"configurations": {
"development": {
Expand All @@ -45,4 +47,4 @@
}
},
"tags": []
}
}
4 changes: 2 additions & 2 deletions services/frontend/apps/chat-app/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"src/**/*.ts",
"**/*.vue",
"env.d.ts",
"vite.config.ts"
"vite.config.mts"
]
}
}
43 changes: 43 additions & 0 deletions services/frontend/apps/chat-app/vite.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/// <reference types="vitest" />
import { defineConfig, loadEnv } from 'vite'
import vue from '@vitejs/plugin-vue';
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
import { fileURLToPath } from 'url';
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite';
const CWD = process.cwd();

export default defineConfig(({ mode }) => {
const envs = loadEnv(mode, CWD);
return {
...envs,
cacheDir: '../../node_modules/.vite/chat-app',
server: {
port: 4200,
host: 'localhost',

fs: {
allow: [
'../../libs/i18n'
],
},
},
plugins: [
vue(),
nxViteTsPaths(),
VueI18nPlugin({
include: '../../libs/chat-app/i18n/locales/**',
}),
],

resolve: {
alias: {
'@chat-app/i18n': fileURLToPath(
new URL('../../libs/i18n/chat/index.ts', import.meta.url)
),
'@shared/style': fileURLToPath(
new URL('../../libs/shared/global.css', import.meta.url)
)
},
}
}
});
7 changes: 5 additions & 2 deletions services/frontend/libs/shared/utils/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@
}
},
"test": {
"executor": "@nx/vite:test"
"executor": "@nx/vite:test",
"options": {
"configFile": "libs/shared/utils/vite.config.mts"
}
}
},
"tags": []
}
}
4 changes: 2 additions & 2 deletions services/frontend/libs/shared/utils/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"src/**/*.ts"
],
"exclude": [
"vite.config.ts",
"vite.config.mts",
"src/**/*.spec.ts",
"src/**/*.test.ts"
]
}
}
4 changes: 2 additions & 2 deletions services/frontend/libs/shared/utils/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
},
"include": [
"src/**/*.ts",
"vite.config.ts",
"vite.config.mts",
"src/**/*.test.ts",
"src/**/*.spec.ts",
"src/**/*.d.ts"
]
}
}
15 changes: 15 additions & 0 deletions services/frontend/libs/shared/utils/vite.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { defineConfig } from 'vite'

import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin'

export default defineConfig({
root: __dirname,
cacheDir: '../../node_modules/.vite/libs/shared/utils',

plugins: [nxViteTsPaths()],
test: {
globals: true,
environment: 'node',
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}']
},
})
Loading
Loading