You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

environment.js 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. 'use strict';
  2. module.exports = function(environment) {
  3. let ENV = {
  4. modulePrefix: 'einkaufszettel',
  5. environment,
  6. rootURL: '/',
  7. locationType: 'auto',
  8. EmberENV: {
  9. FEATURES: {
  10. // Here you can enable experimental features on an ember canary build
  11. // e.g. EMBER_NATIVE_DECORATOR_SUPPORT: true
  12. },
  13. EXTEND_PROTOTYPES: {
  14. // Prevent Ember Data from overriding Date.parse.
  15. Date: false
  16. }
  17. },
  18. APP: {
  19. // Here you can pass flags/options to your application instance
  20. // when it is created
  21. }
  22. };
  23. if (environment === 'development') {
  24. // ENV.APP.LOG_RESOLVER = true;
  25. // ENV.APP.LOG_ACTIVE_GENERATION = true;
  26. // ENV.APP.LOG_TRANSITIONS = true;
  27. // ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
  28. // ENV.APP.LOG_VIEW_LOOKUPS = true;
  29. }
  30. if (environment === 'test') {
  31. // Testem prefers this...
  32. ENV.locationType = 'none';
  33. // keep test console output quieter
  34. ENV.APP.LOG_ACTIVE_GENERATION = false;
  35. ENV.APP.LOG_VIEW_LOOKUPS = false;
  36. ENV.APP.rootElement = '#ember-testing';
  37. ENV.APP.autoboot = false;
  38. }
  39. if (environment === 'production') {
  40. // here you can enable a production-specific feature
  41. }
  42. return ENV;
  43. };