daily pastebin goal
76%
SHARE
TWEET

app.js

a guest Feb 13th, 2018 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'use strict';
  2.  
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Providers
  6. |--------------------------------------------------------------------------
  7. |
  8. | Providers are building blocks for your Adonis app. Anytime you install
  9. | a new Adonis specific package, chances are you will register the
  10. | provider here.
  11. |
  12. */
  13. const providers = [
  14.   '@adonisjs/framework/providers/AppProvider',
  15.   '@adonisjs/framework/providers/ViewProvider',
  16.   '@adonisjs/lucid/providers/LucidProvider',
  17.   '@adonisjs/bodyparser/providers/BodyParserProvider',
  18.   '@adonisjs/cors/providers/CorsProvider',
  19.   '@adonisjs/shield/providers/ShieldProvider',
  20.   '@adonisjs/session/providers/SessionProvider',
  21.   '@adonisjs/auth/providers/AuthProvider',
  22.   'adonis-scheduler/providers/SchedulerProvider'
  23. ];
  24.  
  25. /*
  26. |--------------------------------------------------------------------------
  27. | Ace Providers
  28. |--------------------------------------------------------------------------
  29. |
  30. | Ace providers are required only when running ace commands. For example
  31. | Providers for migrations, tests etc.
  32. |
  33. */
  34. const aceProviders = [
  35.   '@adonisjs/lucid/providers/MigrationsProvider',
  36.   'adonis-scheduler/providers/CommandsProvider'
  37. ];
  38.  
  39. /*
  40. |--------------------------------------------------------------------------
  41. | Aliases
  42. |--------------------------------------------------------------------------
  43. |
  44. | Aliases are short unique names for IoC container bindings. You are free
  45. | to create your own aliases.
  46. |
  47. | For example:
  48. |   { Route: 'Adonis/Src/Route' }
  49. |
  50. */
  51. const aliases = {
  52.   Scheduler: 'Adonis/Addons/Scheduler'
  53. };
  54.  
  55. /*
  56. |--------------------------------------------------------------------------
  57. | Commands
  58. |--------------------------------------------------------------------------
  59. |
  60. | Here you store ace commands for your package
  61. |
  62. */
  63. const commands = [];
  64.  
  65. module.exports = {providers, aceProviders, aliases, commands};
RAW Paste Data
Top