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
6 changes: 3 additions & 3 deletions apps/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"url": "https://github.com/cloud-pi-native/console"
},
"scripts": {
"build": "run-s icons type-check build-only",
"build": "pnpm run icons && pnpm run type-check && pnpm run build-only",
"build-only": "vite --mode=production build",
"build:clean": "rimraf ./dist ./tsconfig.tsbuildinfo",
"dev": "vite --mode=development",
"format": "NODE_OPTIONS='--no-warnings=ExperimentalWarning' eslint ./ --fix",
"format:style": "stylelint ./src/**/*.{css,vue} --fix",
"icons": "vue-dsfr-icons -s scripts/icons.js -t src/icon-collections.ts",
"integ": "vite --mode=integration",
"lint": "run-p lint:*",
"lint": "pnpm run --parallel \"/^lint:.*/\"",
Comment thread
StephaneTrebel marked this conversation as resolved.
"lint:style": "stylelint ./src/**/*.{css,vue}",
"lint:ts": "NODE_OPTIONS='--no-warnings=ExperimentalWarning' eslint ./",
"preview": "vite preview --port 8080",
Expand Down Expand Up @@ -60,9 +60,9 @@
"@vitejs/plugin-vue": "^6.0.4",
"@vitest/coverage-v8": "^2.1.9",
"@vue/eslint-config-typescript": "^14.7.0",
"chalk": "^5.6.2",
"eslint-plugin-vue": "^10.8.0",
"jsdom": "^25.0.1",
"npm-run-all": "^4.1.5",
"rimraf": "^6.1.3",
"stylelint": "^17.4.0",
"stylelint-config-html": "^1.1.0",
Expand Down
8 changes: 7 additions & 1 deletion apps/server-nestjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@
"start": "nest start",
"start:debug": "nest start --debug --watch",
"start:dev": "nest start --watch",
"start:prod": "node dist/main"
"start:prod": "node dist/main",
"pretest": "pnpm run db:generate",
"test": "vitest run",
"test:watch": "vitest",
"pretest:cov": "pnpm run db:generate",
"test:cov": "vitest run --coverage",
"test:debug": "vitest --inspect"
},
"dependencies": {
"@cpn-console/argocd-plugin": "workspace:^",
Expand Down
23 changes: 0 additions & 23 deletions apps/server-nestjs/test/app.e2e-spec.ts

This file was deleted.

18 changes: 18 additions & 0 deletions apps/server-nestjs/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import path from 'node:path'
import { defineConfig } from 'vitest/config'

export default defineConfig({
test: {
globals: true,
environment: 'node',
include: ['src/**/*.spec.ts', 'test/**/*.e2e-spec.ts'],
alias: {
'@cpn-console/shared': path.resolve(__dirname, '../../packages/shared/src/index.ts'),
'@cpn-console/hooks': path.resolve(__dirname, '../../packages/hooks/src/index.ts'),
},
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
},
},
})
6 changes: 4 additions & 2 deletions apps/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@
"lint": "eslint ./",
"prepublishOnly": "pnpm run db:generate",
"start": "npm run db:deploy && node dist/server.js",
"test": "pnpm run db:generate ; vitest run",
"test:cov": "pnpm run db:generate ; vitest run --coverage",
"pretest": "pnpm run db:generate",
"test": "vitest run",
"pretest:cov": "pnpm run db:generate",
"test:cov": "vitest run --coverage",
"test:e2e": "pnpm run dev",
"test:e2e-ci": "pnpm run start"
},
Expand Down
14 changes: 0 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,5 @@
"eslint": "^10.0.3",
"husky": "^9.1.7",
"lint-staged": "^16.3.3"
},
"pnpm": {
"patchedDependencies": {
"fastify-keycloak-adapter@2.3.2": "patches/fastify-keycloak-adapter@2.3.2.patch",
"@gouvminint/vue-dsfr": "patches/@gouvminint__vue-dsfr.patch"
},
"allowUnusedPatches": true,
"onlyBuiltDependencies": [
"@prisma/client",
"@prisma/engines",
"esbuild",
"prisma",
"vue-demi"
]
}
}
6 changes: 3 additions & 3 deletions packages/shared/src/contracts/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import {
CleanedClusterSchema,
ClusterDetailsSchema,
ClusterUsageSchema,
EnvironmentSchema,
UserSchema,
} from '../schemas/index.js'
} from '../schemas/cluster.js'
import { EnvironmentSchema } from '../schemas/environment.js'
import { UserSchema } from '../schemas/user.js'
import { baseHeaders, ErrorSchema } from './_utils.js'

export const ClusterParams = z.object({
Expand Down
Loading
Loading