mojito-cli creates wrong mojit-template concerning to controller.server.js #1301
Comments
@ItsAsbreuk Thanks for reporting this issue. A card is added to our todo list. |
@ItsAsbreuk : when Mojito 0.8.0 was released, mojito-cli-create was updated too. You might need to update mojito-cli by "npm install --global mojito-cli". Please let me know if you still see the same issue after that. |
@lzhan just updated mojito-cli and indeed that solved the problem. Strange, if I remembered right, i did update the mojito-cli when i updated mojito to version 8. I must have been wrong... The problem is solved then. Thanks, |
@ItsAsbreuk No problem. Thanks. |
this is why I fought very hard to get the archetypes in mojito pkg rather than the global cli :/ |
well, I'm not a principal developer, but here are my pennies:
just the way i see it. Kind regards, |
@ItsAsbreuk some of those thoughts make sense, and in fact they are the recommended way to use the cli, but the reality is a little bit different. Imagine an scenario where you have two mojito projects, one using mojito 0.7 (which you can't update for business reasons, which is very common) and another one using the bleeding edge of mojito, then how do you solve the The archetypes are bound to the mojito version installed in your project, and the cli should rely on that pkg, and the content of the pkg to resolve which archetype to install, that way you get updated archetypes with every new version of mojito without having to update a cli. anyhow, this was slippering, and I don't recall the exact reason why @isao did this, there must be a reason. |
my thoughts were having one mojito-cli (of coarse). and make it sniffing inside the mojito-project for the version it is using. this way don't know if this is the way to go or posible, but maybe something to think about. |
@caridy the archetypes needed to be in the cli because I recall proposing a config for the cli commands, which in the I'll submit a PR in a few to have |
@ItsAsbreuk thanks for the feedback and suggestion. pull isao/mojito-cli-create#6 will use a locally installed mojito/archetypes directory to look for matching archetypes which should help with
|
@isao ok, great! |
inside controller.server.js ac.models.get() calls the model by modulename.
As from 0.8.0 that is changed into the modelname.
The text was updated successfully, but these errors were encountered: