@samselikoff wrote:
I’m working on AddonDocs, and it depends on Mirage. I want the
treeForApp
hook from AddonDocs to run before thetreeForApp
hook from Mirage (so that AddonDocs can create a file that Mirage expects, in case the host app doesn’t provide it).In AddonDocs’
package.json
I 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
treeForApp
treeForApp(app) { console.log('here in addon docs..'); // snip }
I also cracked open
node_modules/ember-cli-mirage/index.js
and 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 mirage
Any ideas what’s going on?
Posts: 1
Participants: 1