-
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.
Merge pull request #29 from theodo-group/feat/cliPrompt
Feat/cli prompt
- Loading branch information
Showing
7 changed files
with
127 additions
and
23 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,12 +1,13 @@ | ||
{ | ||
"name": "create-universal-enabler-app", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"type": "module", | ||
"description": "A generator for creating Universal Apps with the Theodo Group's Universal App Enabler", | ||
"packageManager": "[email protected]", | ||
"bin": "./bin/generate.js", | ||
"dependencies": { | ||
"fs-extra": "^11.2.0", | ||
"inquirer": "^9.2.16", | ||
"ora": "^8.0.1" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import inquirer from "inquirer"; | ||
|
||
export const getUserInput = async () => { | ||
const ui = new inquirer.ui.BottomBar(); | ||
// const platformQuestion = { | ||
// type: "checkbox", | ||
// name: "platforms", | ||
// message: "Select your desired platforms:", | ||
// choices: ["Mobile", "Web", "TV"], | ||
// }; | ||
const authUIQuestion = { | ||
type: "confirm", | ||
name: "authUI", | ||
message: "Would you like the project to include a pre-made authentication UI?", | ||
default: false, | ||
}; | ||
|
||
const questions = [authUIQuestion]; | ||
|
||
ui.log.write("Answer some questions on the setup of your project:"); | ||
const answers = await inquirer.prompt(questions); | ||
return answers; | ||
}; |
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