-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
again some problem with the name #2
Comments
thanks for the screencast. Hmm, I thought i fixed this.
It definitely should work - this is a bug. If you look at one of the demos on the readme, I'm doing this and it doesn't ask the questions more than once. I need to figure out why... there are two reasons I can think of. In case this helps (so you can help me debug if you want). Potential reason 1: new instances Every generator function is a new instance of Generate. We do this to ensure that state is not shared across generators. Basically the equivalent of this (I know you're familiar with most of this, but maybe not the last part): var Generate = require('generate');
var app = new Generate();
function generator(app) {
}
// when a generator is run, we do something like this
// before running the `default` task, or specified task on the generator
generate(app); K, now the point is that doing the following will not share data across generators: app.data(whatever); To share data, we need to add data to app.base.data(whatever); It's possible that the answers aren't adding the data to an object that is accessible by both generators, e.g. the Potential reason 2: question property names The |
Hm. Yea, sounds more like a first reason to me too. |
In combination with latest
*-dest
and*-package
.Like so https://asciinema.org/a/79981 (that screencast looks ugly, damn, maybe becaus emy new GUI)
I can see the sense in this behaving, but I think this should work too.
edit: and again not 100% sure if problem comes from here
The text was updated successfully, but these errors were encountered: