Closed surprisetalk closed 1 year ago
@codydaig thoughts? It seems like a pretty good idea.
I have not tested it, but I don't have any oppositions to it.
@surprisetalk can you also add some tests for this?
@ilanbiala Good idea, I'll probably have some time tomorrow.
@surprisetalk What's the status of this PR?
@codydaig hm. This approach appeals to me, so if this one gets into master, I will can add the feature to the subgenerators. Writing tests for it will be a pain :)
@codydaig Sorry, haven't had time to finish those tests. I've been swamped with work :disappointed: @UndeadBaneGitHub The tests are indeed a pain haha
Alright! Sorry for the wait. Tests have been written. It went more smoothly than expected.
I'm aware that there are some egregious abuses of copy-and-paste. I didn't know how to work the with options
tests into the code elegantly, so I'm looking for some direction on how you would like that done.
As a side note, I added my quiet
option to all of the main app tests. Running npm test
does not get interrupted with those pesky welcome messages anymore 💁🏼
@surprisetalk can you fix the comments above?
@ilanbiala Sorry, which comments need fixing?
Okay, I cleaned up the stuff mentioned in your notes.
Sorry for the misunderstanding; I didn't notice that there were comments on my diffs.
@codydaig LGTY?
LGTM.
Looks good, can you squash down to 1 commit and I'll merge? Also, could you add in some docs to the README.md about this?
@surprisetalk can you squash down to 1 commit? Also, can you add some docs to the readme and I'll merge for the 0.4.5 version?
Developers may want to compose the meanjs generator into their Yeoman projects.
Composing the meanjs generator automatically leads end-users through the configuration process. Using optionOrPrompt allows developers to preselect prompt values. Additionally, users can supply options on the command line. This may help "super-users" who to skip the interactive process.
Even with all the prompts preselected, the meanjs generator prints information that can interrupt its parents' compositions. A
--quiet
option was added to skip these logs.If these improvements are well-received, I'll extend
optionOrPrompt
and--quiet
to the sub-generators.