-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44d55b2
commit 1bbaf0d
Showing
14 changed files
with
177 additions
and
62 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import Application from '@ember/application'; | ||
import compatModules from '@embroider/virtual/compat-modules'; | ||
import Resolver from 'ember-resolver'; | ||
import loadInitializers from 'ember-load-initializers'; | ||
import config from './config/environment'; | ||
|
||
const templates = import.meta.glob(`templates/**/*`, { eager: true }); | ||
|
||
export default class App extends Application { | ||
modulePrefix = config.modulePrefix; | ||
podModulePrefix = config.podModulePrefix; | ||
Resolver = Resolver.withModules(compatModules); | ||
Resolver = Resolver.withModules({ | ||
...templates, | ||
}); | ||
} | ||
|
||
loadInitializers(App, config.modulePrefix, compatModules); |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,33 @@ | ||
import loadConfigFromMeta from '@embroider/config-meta-loader'; | ||
export default { | ||
modulePrefix: 'app-template-minimal', | ||
environment: import.meta.env.DEV ? 'development' : 'production', | ||
rootURL: '/', | ||
locationType: 'history', | ||
EmberENV: { | ||
EXTEND_PROTOTYPES: false, | ||
FEATURES: { | ||
// Here you can enable experimental features on an ember canary build | ||
// e.g. EMBER_NATIVE_DECORATOR_SUPPORT: true | ||
}, | ||
}, | ||
|
||
export default loadConfigFromMeta('app-template'); | ||
...(import.meta.env.MODE === 'test' | ||
? { | ||
locationType: 'none', | ||
} | ||
: {}), | ||
APP: { | ||
// Here you can pass flags/options to your application instance | ||
// when it is created | ||
...(import.meta.env.MODE === 'test' | ||
? { | ||
// keep test console output quieter | ||
LOG_ACTIVE_GENERATION: false, | ||
LOG_VIEW_LOOKUPS: false, | ||
|
||
rootElement: '#ember-testing', | ||
autoboot: false, | ||
} | ||
: {}), | ||
}, | ||
}; |
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters