diff options
Diffstat (limited to 'adonisrc.ts')
-rw-r--r-- | adonisrc.ts | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/adonisrc.ts b/adonisrc.ts new file mode 100644 index 0000000..02f47b0 --- /dev/null +++ b/adonisrc.ts | |||
@@ -0,0 +1,83 @@ | |||
1 | import { defineConfig } from '@adonisjs/core/app' | ||
2 | |||
3 | export default defineConfig({ | ||
4 | /* | ||
5 | |-------------------------------------------------------------------------- | ||
6 | | Commands | ||
7 | |-------------------------------------------------------------------------- | ||
8 | | | ||
9 | | List of ace commands to register from packages. The application commands | ||
10 | | will be scanned automatically from the "./commands" directory. | ||
11 | | | ||
12 | */ | ||
13 | commands: [ | ||
14 | () => import('@adonisjs/core/commands'), | ||
15 | () => import('@adonisjs/lucid/commands'), | ||
16 | () => import('@adonisjs/mail/commands'), | ||
17 | () => import('adonis5-jwt/build/commands'), | ||
18 | ], | ||
19 | /* | ||
20 | |-------------------------------------------------------------------------- | ||
21 | | Preloads | ||
22 | |-------------------------------------------------------------------------- | ||
23 | | | ||
24 | | List of modules to import before starting the application. | ||
25 | | | ||
26 | */ | ||
27 | preloads: [ | ||
28 | () => import('./start/routes.js'), | ||
29 | () => import('./start/kernel.js'), | ||
30 | () => import('./start/events.js'), | ||
31 | ], | ||
32 | /* | ||
33 | |-------------------------------------------------------------------------- | ||
34 | | Service providers | ||
35 | |-------------------------------------------------------------------------- | ||
36 | | | ||
37 | | List of service providers to import and register when booting the | ||
38 | | application | ||
39 | | | ||
40 | */ | ||
41 | providers: [ | ||
42 | () => import('./providers/AppProvider.js'), | ||
43 | () => import('@adonisjs/core/providers/app_provider'), | ||
44 | () => import('@adonisjs/core/providers/hash_provider'), | ||
45 | { file: () => import('@adonisjs/core/providers/repl_provider'), environment: ['repl', 'test'] }, | ||
46 | () => import('@adonisjs/core/providers/edge_provider'), | ||
47 | () => import('@adonisjs/lucid/database_provider'), | ||
48 | () => import('@adonisjs/auth/auth_provider'), | ||
49 | () => import('@adonisjs/shield/shield_provider'), | ||
50 | () => import('@adonisjs/session/session_provider'), | ||
51 | () => import('@adonisjs/mail/mail_provider'), | ||
52 | () => import('adonis5-jwt'), | ||
53 | () => import('./providers/LegacyHasherProvider.js'), | ||
54 | ], | ||
55 | metaFiles: [ | ||
56 | { | ||
57 | pattern: 'resources/views/**/*.edge', | ||
58 | reloadServer: false, | ||
59 | }, | ||
60 | { | ||
61 | pattern: 'public/**', | ||
62 | reloadServer: false, | ||
63 | }, | ||
64 | ], | ||
65 | /* | ||
66 | |-------------------------------------------------------------------------- | ||
67 | | Tests | ||
68 | |-------------------------------------------------------------------------- | ||
69 | | | ||
70 | | List of test suites to organize tests by their type. Feel free to remove | ||
71 | | and add additional suites. | ||
72 | | | ||
73 | */ | ||
74 | tests: { | ||
75 | suites: [ | ||
76 | { | ||
77 | name: 'functional', | ||
78 | files: ['tests/functional/**/*.spec(.ts|.js)'], | ||
79 | timeout: 60_000, | ||
80 | }, | ||
81 | ], | ||
82 | }, | ||
83 | }) | ||