New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should we be using .remote()? #9
Comments
I've spotted the same behaviour having to delete the hidden yeoman cache Let me know what is decided as the nancy generator does the same :) |
I agree with @jchannon in that keeping the examples distinct allows us to update the samples without updating the generator. This is especially useful since the K runtime is not yet stable and has breaking API changes. Additionally, using |
@shirhatti @jchannon thanks for the comments. What I'm hearing is that we chose to use Instead I think it would be better to have the content directly embedded in the npm package. Updating the npm package is pretty easy, and gives people an opportunity to pick the specific version they are interested in using. For now let's just change the code to add |
I have just made the update to pass |
Another drawback of using .remote, it makes it more difficult to test locally. From what I can tell the best we can do is push to a remote branch and update |
using .remote() makes it somewhat challenging when contributing. for example adding an additional project type means submitting 2 PRs; one to the generator and on to the vnext_examples OR hosting the new example. I would like to see it similar to the angular generator. |
@spboyer I agree let's get rid of using In addition to this, I discussed with @jchannon and @nosami and we don't think that the generators should be under LigerShark. Instead we should move them under OmniSharp. Currently we have the following repositories that are related which should be combined. I think we should simplify this and bring it down to a single repository on OmniSharp and get rid of using I think the correct order to execute this is as follows.
Thoughts? I'm on vacation until Sunday so I can only do minimal work until then. I can get the new repo in OmniSharp created and I can add you as a contributor. FYI @kenwarner seemed like was very interested in helping with generators in the past (haven't heard much recently though) so maybe he can help as well? |
OK I have created the new repo at https://github.com/OmniSharp/generator-aspnet/. I've moved the sample files under samples including the nancy ones from @jchannon. I've created an issue to update index.js to pull from this new repo OmniSharp/generator-aspnet#1. |
@spboyer I have given you push access to https://github.com/OmniSharp/generator-aspnet/. |
Migrated to OmniSharp/generator-aspnet#26 |
@shirhatti in the current implementation we are using
.remote()
in index.js to retrieve the template content. What I've noticed is that when calling.remote()
if the git repo exists on the client cache then it will not be refreshed. There is arefresh
parameter on remote(). If we specifytrue
for refresh then the git repo will be cloned each time when the generator is invoked. On my box in order to get rid of yeoman cache I had to removeyo
.Is using
.remote()
the right approach here? I looked at the generator-angular and they include the files directly inside the npm package then use .template() and .copy() to write the files.The code to always update when using remote is below.
cc @jchannon
The text was updated successfully, but these errors were encountered: