-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: move modules installation question and refactor prompt func
- Loading branch information
Showing
2 changed files
with
89 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,66 @@ | ||
[ | ||
{ | ||
"query": "Name of the project ?", | ||
"type": "input", | ||
"handle": "projectname" | ||
}, | ||
{ | ||
"query": "A description (optional) ?", | ||
"type": "input", | ||
"handle": "projectdesc" | ||
}, | ||
{ | ||
"query": "What kind of project is this ? ", | ||
"description": "Documentation on each 'kind' can be found here: https://github.com/SlimIO/Manifest#available-types", | ||
"type": "interactive", | ||
"handle": "type", | ||
"menu": ["Addon", "NAPI", "CLI", "Package", "Service", "Degraded"] | ||
}, | ||
{ | ||
"query": "Which unit-testing package do you want ?", | ||
"description": "If you do not know what it is, take 'japa'", | ||
"type": "interactive", | ||
"handle": "testfw", | ||
"menu": ["japa", "ava", "jest"] | ||
}, | ||
{ | ||
"query": "Which package do you want for code coverage ?", | ||
"description": "If you do not know what it is, take 'nyc'", | ||
"type": "interactive", | ||
"handle": "covpackage", | ||
"menu": ["nyc", "c8"] | ||
}, | ||
{ | ||
"query": "In which version do you want to start : 1.0.0 or 0.1.0 ", | ||
"description": "Choose 0.1.0 if the project is an experimentation (or will not be pushed to production after first draft).", | ||
"type": "interactive", | ||
"handle": "version", | ||
"menu": ["1.0.0", "0.1.0"] | ||
}, | ||
{ | ||
"query": "Do you want a .env file ?", | ||
"description": ".env file are useful to store credentials (Database, WEB API tokens etc..)", | ||
"type": "confirm", | ||
"handle": "env" | ||
}, | ||
{ | ||
"query": "Do you want a .npmrc file ?", | ||
"description": ".npmrc file are useful to configure npm (Proxy, Registery etc..)", | ||
"type": "confirm", | ||
"handle": "npmrc" | ||
}, | ||
{ | ||
"query": "Is this project must have a binary entry ?", | ||
"description": "Most of the time it's only required for CLI projects. Say 'no' if you dont know why you need this.", | ||
"type": "confirm", | ||
"handle": "binary" | ||
}, | ||
{ | ||
"query": "Do you want to install nodes modules ?", | ||
"description": "Nodes modules are required for use the project", | ||
"type": "confirm", | ||
"handle": "modules" | ||
} | ||
] | ||
{ | ||
"GEN_QUESTIONS": [ | ||
{ | ||
"query": "Name of the project ?", | ||
"type": "input", | ||
"handle": "projectname" | ||
}, | ||
{ | ||
"query": "A description (optional) ?", | ||
"type": "input", | ||
"handle": "projectdesc" | ||
}, | ||
{ | ||
"query": "What kind of project is this ? ", | ||
"description": "Documentation on each 'kind' can be found here: https://github.com/SlimIO/Manifest#available-types", | ||
"type": "interactive", | ||
"handle": "type", | ||
"menu": ["Addon", "NAPI", "CLI", "Package", "Service", "Degraded"] | ||
}, | ||
{ | ||
"query": "Which unit-testing package do you want ?", | ||
"description": "If you do not know what it is, take 'japa'", | ||
"type": "interactive", | ||
"handle": "testfw", | ||
"menu": ["japa", "ava", "jest"] | ||
}, | ||
{ | ||
"query": "Which package do you want for code coverage ?", | ||
"description": "If you do not know what it is, take 'nyc'", | ||
"type": "interactive", | ||
"handle": "covpackage", | ||
"menu": ["nyc", "c8"] | ||
}, | ||
{ | ||
"query": "In which version do you want to start : 1.0.0 or 0.1.0 ", | ||
"description": "Choose 0.1.0 if the project is an experimentation (or will not be pushed to production after first draft).", | ||
"type": "interactive", | ||
"handle": "version", | ||
"menu": ["1.0.0", "0.1.0"] | ||
}, | ||
{ | ||
"query": "Do you want a .env file ?", | ||
"description": ".env file are useful to store credentials (Database, WEB API tokens etc..)", | ||
"type": "confirm", | ||
"handle": "env" | ||
}, | ||
{ | ||
"query": "Do you want a .npmrc file ?", | ||
"description": ".npmrc file are useful to configure npm (Proxy, Registery etc..)", | ||
"type": "confirm", | ||
"handle": "npmrc" | ||
}, | ||
{ | ||
"query": "Is this project must have a binary entry ?", | ||
"description": "Most of the time it's only required for CLI projects. Say 'no' if you dont know why you need this.", | ||
"type": "confirm", | ||
"handle": "binary" | ||
} | ||
], | ||
"MODULES_QUESTIONS": { | ||
"query": "Do you want to install nodes modules ?", | ||
"description": "Nodes modules are required for use the project", | ||
"type": "confirm", | ||
"handle": "modules" | ||
} | ||
} |