This repository has been archived by the owner on Feb 28, 2020. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've added a headless mode functionality to the generator so that the user is able to use this generator without the prompts.
The user must supply a
--headless
option to the end of theyo nodeserver
command. This will create a project using the given defaults much alike using the prompt without entering any values.To create a custom project the user can do something like:
yo nodeserver --headless='{"name":"projectname","services":["watson conversation","cloudant"]}'
I've updated the readme to reflect the added feature as well as listing out which services will be valid to make using headless mode easier.
Testing: I've added three tests.
IMO I don't think we need to add anymore testing as I have shown that the behaviour of headless mode is the same as using prompts.
Would recommend that you viewed the commits with
?w=1
added to the end of the url as my atom has removed a lot of whitespace.