|
1 | | -import { defineConfig } from '@adonisjs/core/app' |
2 | | - |
3 | | -export default defineConfig({ |
4 | | - /* |
5 | | - |-------------------------------------------------------------------------- |
6 | | - | Experimental flags |
7 | | - |-------------------------------------------------------------------------- |
8 | | - | |
9 | | - | The following features will be enabled by default in the next major release |
10 | | - | of AdonisJS. You can opt into them today to avoid any breaking changes |
11 | | - | during upgrade. |
12 | | - | |
13 | | - */ |
14 | | - experimental: { |
15 | | - mergeMultipartFieldsAndFiles: true, |
16 | | - shutdownInReverseOrder: true, |
17 | | - }, |
18 | | - |
19 | | - /* |
20 | | - |-------------------------------------------------------------------------- |
21 | | - | Commands |
22 | | - |-------------------------------------------------------------------------- |
23 | | - | |
24 | | - | List of ace commands to register from packages. The application commands |
25 | | - | will be scanned automatically from the "./commands" directory. |
26 | | - | |
27 | | - */ |
28 | | - commands: [ |
29 | | - () => import('@adonisjs/core/commands'), |
30 | | - () => import('@adonisjs/lucid/commands'), |
31 | | - () => import('@tuyau/core/commands'), |
32 | | - () => import('@adonisjs-community/modules/commands'), |
33 | | - () => import('@jrmc/adonis-attachment/commands'), |
34 | | - () => import('@adonisjs/mail/commands'), |
35 | | - () => import('@adonisjs/bouncer/commands'), |
36 | | - () => import('@foadonis/shopkeeper/commands'), |
37 | | - ], |
38 | | - |
39 | | - /* |
40 | | - |-------------------------------------------------------------------------- |
41 | | - | Service providers |
42 | | - |-------------------------------------------------------------------------- |
43 | | - | |
44 | | - | List of service providers to import and register when booting the |
45 | | - | application |
46 | | - | |
47 | | - */ |
48 | | - providers: [ |
49 | | - () => import('@adonisjs/core/providers/app_provider'), |
50 | | - () => import('@adonisjs/core/providers/hash_provider'), |
51 | | - { |
52 | | - file: () => import('@adonisjs/core/providers/repl_provider'), |
53 | | - environment: ['repl', 'test'], |
54 | | - }, |
55 | | - () => import('@adonisjs/core/providers/vinejs_provider'), |
56 | | - () => import('@adonisjs/cors/cors_provider'), |
57 | | - () => import('@adonisjs/lucid/database_provider'), |
58 | | - () => import('@adonisjs/session/session_provider'), |
59 | | - () => import('@adonisjs/auth/auth_provider'), |
60 | | - () => import('@tuyau/core/tuyau_provider'), |
61 | | - () => import('@adonisjs-community/girouette/girouette_provider'), |
62 | | - () => import('@jrmc/adonis-attachment/attachment_provider'), |
63 | | - () => import('@adonisjs/drive/drive_provider'), |
64 | | - () => import('@adonisjs/mail/mail_provider'), |
65 | | - () => import('@adonisjs/bouncer/bouncer_provider'), |
66 | | - () => import('@holoyan/adonisjs-permissions/role_permission_provider'), |
67 | | - () => import('@foadonis/shopkeeper/shopkeeper_provider'), |
68 | | - ], |
69 | | - |
70 | | - /* |
71 | | - |-------------------------------------------------------------------------- |
72 | | - | Preloads |
73 | | - |-------------------------------------------------------------------------- |
74 | | - | |
75 | | - | List of modules to import before starting the application. |
76 | | - | |
77 | | - */ |
78 | | - preloads: [() => import('#start/routes'), () => import('#start/kernel')], |
79 | | - |
80 | | - /* |
81 | | - |-------------------------------------------------------------------------- |
82 | | - | Tests |
83 | | - |-------------------------------------------------------------------------- |
84 | | - | |
85 | | - | List of test suites to organize tests by their type. Feel free to remove |
86 | | - | and add additional suites. |
87 | | - | |
88 | | - */ |
89 | | - tests: { |
90 | | - suites: [ |
91 | | - { |
92 | | - files: ['app/**/tests/unit/**/*.spec(.ts|.js)'], |
93 | | - name: 'unit', |
94 | | - timeout: 2000, |
95 | | - }, |
96 | | - { |
97 | | - files: ['app/**/tests/functional/**/*.spec(.ts|.js)'], |
98 | | - name: 'functional', |
99 | | - timeout: 30000, |
100 | | - }, |
101 | | - ], |
102 | | - forceExit: false, |
103 | | - }, |
104 | | -}) |
| 1 | +import { defineConfig } from '@adonisjs/core/app' |
| 2 | + |
| 3 | +export default defineConfig({ |
| 4 | + /* |
| 5 | + |-------------------------------------------------------------------------- |
| 6 | + | Experimental flags |
| 7 | + |-------------------------------------------------------------------------- |
| 8 | + | |
| 9 | + | The following features will be enabled by default in the next major release |
| 10 | + | of AdonisJS. You can opt into them today to avoid any breaking changes |
| 11 | + | during upgrade. |
| 12 | + | |
| 13 | + */ |
| 14 | + experimental: { |
| 15 | + mergeMultipartFieldsAndFiles: true, |
| 16 | + shutdownInReverseOrder: true, |
| 17 | + }, |
| 18 | + |
| 19 | + /* |
| 20 | + |-------------------------------------------------------------------------- |
| 21 | + | Commands |
| 22 | + |-------------------------------------------------------------------------- |
| 23 | + | |
| 24 | + | List of ace commands to register from packages. The application commands |
| 25 | + | will be scanned automatically from the "./commands" directory. |
| 26 | + | |
| 27 | + */ |
| 28 | + commands: [ |
| 29 | + () => import('@adonisjs/core/commands'), |
| 30 | + () => import('@adonisjs/lucid/commands'), |
| 31 | + () => import('@tuyau/core/commands'), |
| 32 | + () => import('@adonisjs-community/modules/commands'), |
| 33 | + () => import('@jrmc/adonis-attachment/commands'), |
| 34 | + () => import('@adonisjs/mail/commands'), |
| 35 | + () => import('@adonisjs/bouncer/commands'), |
| 36 | + () => import('@foadonis/shopkeeper/commands'), |
| 37 | + ], |
| 38 | + |
| 39 | + /* |
| 40 | + |-------------------------------------------------------------------------- |
| 41 | + | Service providers |
| 42 | + |-------------------------------------------------------------------------- |
| 43 | + | |
| 44 | + | List of service providers to import and register when booting the |
| 45 | + | application |
| 46 | + | |
| 47 | + */ |
| 48 | + providers: [ |
| 49 | + () => import('@adonisjs/core/providers/app_provider'), |
| 50 | + () => import('@adonisjs/core/providers/hash_provider'), |
| 51 | + { |
| 52 | + file: () => import('@adonisjs/core/providers/repl_provider'), |
| 53 | + environment: ['repl', 'test'], |
| 54 | + }, |
| 55 | + () => import('@adonisjs/core/providers/vinejs_provider'), |
| 56 | + () => import('@adonisjs/cors/cors_provider'), |
| 57 | + () => import('@adonisjs/lucid/database_provider'), |
| 58 | + () => import('@adonisjs/session/session_provider'), |
| 59 | + () => import('@adonisjs/auth/auth_provider'), |
| 60 | + () => import('@tuyau/core/tuyau_provider'), |
| 61 | + () => import('@adonisjs-community/girouette/girouette_provider'), |
| 62 | + () => import('@jrmc/adonis-attachment/attachment_provider'), |
| 63 | + () => import('@adonisjs/drive/drive_provider'), |
| 64 | + () => import('@adonisjs/mail/mail_provider'), |
| 65 | + () => import('@adonisjs/bouncer/bouncer_provider'), |
| 66 | + () => import('@holoyan/adonisjs-permissions/role_permission_provider'), |
| 67 | + () => import('@foadonis/shopkeeper/shopkeeper_provider'), |
| 68 | + () => import('@facteurjs/adonisjs/facteur_provider'), |
| 69 | + () => import('@adonisjs/transmit/transmit_provider'), |
| 70 | + ], |
| 71 | + |
| 72 | + /* |
| 73 | + |-------------------------------------------------------------------------- |
| 74 | + | Preloads |
| 75 | + |-------------------------------------------------------------------------- |
| 76 | + | |
| 77 | + | List of modules to import before starting the application. |
| 78 | + | |
| 79 | + */ |
| 80 | + preloads: [() => import('#start/routes'), () => import('#start/kernel')], |
| 81 | + |
| 82 | + /* |
| 83 | + |-------------------------------------------------------------------------- |
| 84 | + | Tests |
| 85 | + |-------------------------------------------------------------------------- |
| 86 | + | |
| 87 | + | List of test suites to organize tests by their type. Feel free to remove |
| 88 | + | and add additional suites. |
| 89 | + | |
| 90 | + */ |
| 91 | + tests: { |
| 92 | + suites: [ |
| 93 | + { |
| 94 | + files: ['app/**/tests/unit/**/*.spec(.ts|.js)'], |
| 95 | + name: 'unit', |
| 96 | + timeout: 2000, |
| 97 | + }, |
| 98 | + { |
| 99 | + files: ['app/**/tests/functional/**/*.spec(.ts|.js)'], |
| 100 | + name: 'functional', |
| 101 | + timeout: 30000, |
| 102 | + }, |
| 103 | + ], |
| 104 | + forceExit: false, |
| 105 | + }, |
| 106 | +}) |
0 commit comments