environment.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* jshint node: true */
  2. module.exports = function(environment) {
  3. var ENV = {
  4. modulePrefix: 'yarn-ui',
  5. environment: environment,
  6. baseURL: '/',
  7. locationType: 'auto',
  8. EmberENV: {
  9. FEATURES: {
  10. // Here you can enable experimental features on an ember canary build
  11. // e.g. 'with-controller': true
  12. }
  13. },
  14. APP: {
  15. // Here you can pass flags/options to your application instance
  16. // when it is created
  17. }
  18. };
  19. if (environment === 'development') {
  20. // ENV.APP.LOG_RESOLVER = true;
  21. // ENV.APP.LOG_ACTIVE_GENERATION = true;
  22. // ENV.APP.LOG_TRANSITIONS = true;
  23. // ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
  24. // ENV.APP.LOG_VIEW_LOOKUPS = true;
  25. }
  26. if (environment === 'test') {
  27. // Testem prefers this...
  28. ENV.baseURL = '/';
  29. ENV.locationType = 'none';
  30. // keep test console output quieter
  31. ENV.APP.LOG_ACTIVE_GENERATION = false;
  32. ENV.APP.LOG_VIEW_LOOKUPS = false;
  33. ENV.APP.rootElement = '#ember-testing';
  34. }
  35. if (environment === 'production') {
  36. }
  37. return ENV;
  38. };