wikipedia-game-solver/apps/api/adonisrc.ts
Théo LUDWIG 4add77856e
All checks were successful
Chromatic / chromatic (push) Successful in 2m58s
CI / ci (push) Successful in 4m43s
CI / commitlint (push) Successful in 15s
chore: try Adonis Tuyau
2024-08-16 01:50:11 +01:00

75 lines
1.7 KiB
TypeScript

import { defineConfig } from "@adonisjs/core/app"
export default defineConfig({
commands: [
async () => {
return await import("@adonisjs/core/commands")
},
async () => {
return await import("@adonisjs/lucid/commands")
},
async () => {
return await import("@tuyau/core/commands")
},
async () => {
return await import("@tuyau/openapi/commands")
},
],
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")
},
async () => {
return await import("@adonisjs/limiter/limiter_provider")
},
async () => {
return await import("@tuyau/core/tuyau_provider")
},
async () => {
return await import("@tuyau/openapi/openapi_provider")
},
],
preloads: [
async () => {
return await import("#start/database.ts")
},
async () => {
return await import("#start/routes.ts")
},
async () => {
return await import("#start/kernel.ts")
},
],
tests: {
suites: [
{
files: ["**/*.test.ts"],
name: "functional",
timeout: 30_000,
},
],
forceExit: false,
},
})