@samselikoff wrote:
I’m working on AddonDocs, and it depends on Mirage. I want the
treeForApphook from AddonDocs to run before thetreeForApphook from Mirage (so that AddonDocs can create a file that Mirage expects, in case the host app doesn’t provide it).In AddonDocs’
package.jsonI made sure to specify that it should run before Mirage:"ember-addon": { "configPath": "tests/dummy/config", "before": [ "ember-cli-mirage", "ember-cli-htmlbars", "ember-svg-jar" ], "after": [ "ember-modal-dialog" ] }and defined
treeForApptreeForApp(app) { console.log('here in addon docs..'); // snip }I also cracked open
node_modules/ember-cli-mirage/index.jsand added a log to Mirage’s hook:treeForApp(appTree) { console.log('here in mirage'); // snip }Here’s the output from terminal:
➜ ember-cli-addon-docs git:(fix-mirage) ✗ ember s here in mirage here in addon docs.. here in mirageAny ideas what’s going on?
Posts: 1
Participants: 1