2024-08-09 23:51:41 +02:00
|
|
|
import { defineConfig } from "@adonisjs/core/app"
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
commands: [
|
|
|
|
async () => {
|
|
|
|
return await import("@adonisjs/core/commands")
|
|
|
|
},
|
|
|
|
async () => {
|
|
|
|
return await import("@adonisjs/lucid/commands")
|
|
|
|
},
|
2024-08-16 02:50:11 +02:00
|
|
|
async () => {
|
|
|
|
return await import("@tuyau/core/commands")
|
|
|
|
},
|
|
|
|
async () => {
|
|
|
|
return await import("@tuyau/openapi/commands")
|
|
|
|
},
|
2024-08-09 23:51:41 +02:00
|
|
|
],
|
|
|
|
providers: [
|
|
|
|
async () => {
|
|
|
|
return await import("@adonisjs/core/providers/app_provider")
|
|
|
|
},
|
|
|
|
async () => {
|
|
|
|
return await import("@adonisjs/core/providers/hash_provider")
|
|
|
|
},
|
|
|
|
{
|
|
|
|
file: async () => {
|
|
|
|
return await import("@adonisjs/core/providers/repl_provider")
|
|
|
|
},
|
|
|
|
environment: ["repl", "test"],
|
|
|
|
},
|
|
|
|
async () => {
|
|
|
|
return await import("@adonisjs/core/providers/vinejs_provider")
|
|
|
|
},
|
|
|
|
async () => {
|
|
|
|
return await import("@adonisjs/cors/cors_provider")
|
|
|
|
},
|
|
|
|
async () => {
|
|
|
|
return await import("@adonisjs/lucid/database_provider")
|
|
|
|
},
|
|
|
|
async () => {
|
|
|
|
return await import("@adonisjs/auth/auth_provider")
|
|
|
|
},
|
2024-08-12 15:13:24 +02:00
|
|
|
async () => {
|
|
|
|
return await import("@adonisjs/limiter/limiter_provider")
|
|
|
|
},
|
2024-08-16 02:50:11 +02:00
|
|
|
async () => {
|
|
|
|
return await import("@tuyau/core/tuyau_provider")
|
|
|
|
},
|
|
|
|
async () => {
|
|
|
|
return await import("@tuyau/openapi/openapi_provider")
|
|
|
|
},
|
2024-08-09 23:51:41 +02:00
|
|
|
],
|
|
|
|
preloads: [
|
2024-08-10 02:32:34 +02:00
|
|
|
async () => {
|
2024-08-15 15:14:21 +02:00
|
|
|
return await import("#start/database.ts")
|
2024-08-10 02:32:34 +02:00
|
|
|
},
|
2024-08-09 23:51:41 +02:00
|
|
|
async () => {
|
2024-08-15 15:14:21 +02:00
|
|
|
return await import("#start/routes.ts")
|
2024-08-09 23:51:41 +02:00
|
|
|
},
|
|
|
|
async () => {
|
2024-08-15 15:14:21 +02:00
|
|
|
return await import("#start/kernel.ts")
|
2024-08-09 23:51:41 +02:00
|
|
|
},
|
|
|
|
],
|
|
|
|
tests: {
|
|
|
|
suites: [
|
|
|
|
{
|
|
|
|
files: ["**/*.test.ts"],
|
|
|
|
name: "functional",
|
|
|
|
timeout: 30_000,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
forceExit: false,
|
|
|
|
},
|
|
|
|
})
|