Closed RobbieTheWagner closed 4 years ago
@villander there do not seem to be any tests around the existing urlsForPrember
, so I have no idea how to write tests for urlsFromPrember
.
We should also document this new functionality, which I can definitely do.
@rwwagner90 sorry for delay. We don't have coverage on postprocessTree
. But you can create tests like this on ember-asset-loader or ember-engines:
@villander no worries! I'm just not sure why we need tests, since none previously existed? If you guys could add an existing one for urlsForPrember
, I would be happy to try to mimic it and add one for urlsFromPrember
.
Makes sense @rwwagner90. Tests are always welcome, but we don't have any tests about it previously.
Can you provide a example this working in a public repo, and add a documentation please? with this, I can approve and add tests after merge.
@villander I used this for some client work, so I don't have it in a public repo, but I can work on a public one and docs, for sure.
@villander I'm unlikely to create a public repo using this for awhile. Can we go ahead and merge it in please?
@rwwagner90 can you add documentation for it please?
@villander just added some docs. Hopefully they work for you!
Thanks @rwwagner90
v1.0.4 publish @rwwagner90, sorry for the delay - https://www.npmjs.com/package/prember
This would allow passing not only
urlsForPrember
, but also for prember to outputurlsFromPrember
. The code and the API might not be ideal, but I have had a need to get the urls from prember for quite awhile, so it would be great if we could get this or something like it in!It doesn't work ideally because it does not seem to be possible to run addons
after
prember. Possibly because prember's build is async?Ideally, we could add this in the addon:
It seems to have no effect though, as my
treeForPublic
still executed before prember did its build.