-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(engine): initialize ember-engines configuration
- Loading branch information
Showing
8 changed files
with
286 additions
and
21 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import Engine from "@ember/engine"; | ||
import loadInitializers from "ember-load-initializers"; | ||
import Resolver from "ember-resolver"; | ||
|
||
import config from "ember-emeis/config/environment"; | ||
|
||
const { modulePrefix } = config; | ||
|
||
export default class EmberEmeisEngine extends Engine { | ||
modulePrefix = modulePrefix; | ||
Resolver = Resolver; | ||
} | ||
|
||
loadInitializers(EmberEmeisEngine, modulePrefix); |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import buildRoutes from "ember-engines/routes"; | ||
|
||
export default buildRoutes(function () {}); |
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,5 +1,10 @@ | ||
"use strict"; | ||
|
||
module.exports = function (/* environment, appConfig */) { | ||
return {}; | ||
module.exports = function (environment) { | ||
const ENV = { | ||
modulePrefix: "ember-emeis", | ||
environment, | ||
}; | ||
|
||
return ENV; | ||
}; |
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,5 +1,10 @@ | ||
"use strict"; | ||
|
||
module.exports = { | ||
/* eslint-disable ember/avoid-leaking-state-in-ember-objects, node/no-unpublished-require */ | ||
|
||
const EngineAddon = require("ember-engines/lib/engine-addon"); | ||
|
||
module.exports = EngineAddon.extend({ | ||
name: require("./package").name, | ||
}; | ||
lazyLoading: { enabled: false }, | ||
}); |
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
Oops, something went wrong.