diff options
author | 2021-08-13 00:45:01 +0530 | |
---|---|---|
committer | 2021-08-13 00:45:01 +0530 | |
commit | 2d27d5e66649d4f5baf127a53ee5ae524eae3a59 (patch) | |
tree | c592ea219ac8cd987fc367f57b54034c450ab2ab /src/internal-server/start/app.js | |
parent | Ferdi v5.6.0 (diff) | |
parent | 5.6.1-nightly.24 [skip ci] (diff) | |
download | ferdium-app-2d27d5e66649d4f5baf127a53ee5ae524eae3a59.tar.gz ferdium-app-2d27d5e66649d4f5baf127a53ee5ae524eae3a59.tar.zst ferdium-app-2d27d5e66649d4f5baf127a53ee5ae524eae3a59.zip |
chore: merge from nightly branch into release branch in prep for next beta
Diffstat (limited to 'src/internal-server/start/app.js')
-rw-r--r-- | src/internal-server/start/app.js | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/src/internal-server/start/app.js b/src/internal-server/start/app.js new file mode 100644 index 000000000..8b1a49f57 --- /dev/null +++ b/src/internal-server/start/app.js | |||
@@ -0,0 +1,61 @@ | |||
1 | /* | ||
2 | |-------------------------------------------------------------------------- | ||
3 | | Providers | ||
4 | |-------------------------------------------------------------------------- | ||
5 | | | ||
6 | | Providers are building blocks for your Adonis app. Anytime you install | ||
7 | | a new Adonis specific package, chances are you will register the | ||
8 | | provider here. | ||
9 | | | ||
10 | */ | ||
11 | const providers = [ | ||
12 | '@adonisjs/framework/providers/AppProvider', | ||
13 | '@adonisjs/bodyparser/providers/BodyParserProvider', | ||
14 | '@adonisjs/cors/providers/CorsProvider', | ||
15 | '@adonisjs/lucid/providers/LucidProvider', | ||
16 | '@adonisjs/drive/providers/DriveProvider', | ||
17 | '@adonisjs/validator/providers/ValidatorProvider', | ||
18 | '@adonisjs/framework/providers/ViewProvider', | ||
19 | '@adonisjs/shield/providers/ShieldProvider', | ||
20 | ]; | ||
21 | |||
22 | /* | ||
23 | |-------------------------------------------------------------------------- | ||
24 | | Ace Providers | ||
25 | |-------------------------------------------------------------------------- | ||
26 | | | ||
27 | | Ace providers are required only when running ace commands. For example | ||
28 | | Providers for migrations, tests etc. | ||
29 | | | ||
30 | */ | ||
31 | const aceProviders = [ | ||
32 | '@adonisjs/lucid/providers/MigrationsProvider', | ||
33 | ]; | ||
34 | |||
35 | /* | ||
36 | |-------------------------------------------------------------------------- | ||
37 | | Aliases | ||
38 | |-------------------------------------------------------------------------- | ||
39 | | | ||
40 | | Aliases are short unique names for IoC container bindings. You are free | ||
41 | | to create your own aliases. | ||
42 | | | ||
43 | | For example: | ||
44 | | { Route: 'Adonis/Src/Route' } | ||
45 | | | ||
46 | */ | ||
47 | const aliases = {}; | ||
48 | |||
49 | /* | ||
50 | |-------------------------------------------------------------------------- | ||
51 | | Commands | ||
52 | |-------------------------------------------------------------------------- | ||
53 | | | ||
54 | | Here you store ace commands for your package | ||
55 | | | ||
56 | */ | ||
57 | const commands = []; | ||
58 | |||
59 | module.exports = { | ||
60 | providers, aceProviders, aliases, commands, | ||
61 | }; | ||