Renamed object keys
Renamed some of the keys in the readme fields object. The names are now a little less redundent. Changelog: changed
This commit is contained in:
@@ -7,13 +7,15 @@ async function numberedList(message, finishingText) {
|
||||
finishingText = finishingText != "" ? "done" : finishingText;
|
||||
console.log(message + ` (Type '${finishingText}' after last item.)`);
|
||||
while (addResult) {
|
||||
|
||||
const result = await input({
|
||||
message: `${count}:`,
|
||||
});
|
||||
if (result == "done") {
|
||||
addResult = false;
|
||||
} else {
|
||||
results.push(result);
|
||||
results.push({ order: count, text: result });
|
||||
count++;
|
||||
}
|
||||
}
|
||||
return results;
|
||||
@@ -58,16 +60,16 @@ const initializeReadme = async () => {
|
||||
}
|
||||
|
||||
const answers = {
|
||||
projectName: await input({ message: "What's your projects name?" }),
|
||||
projectDescription: await input({ message: "Describe your project:" }),
|
||||
name: await input({ message: "What's your projects name?" }),
|
||||
description: await input({ message: "Describe your project:" }),
|
||||
runningTheProject: await numberedList(
|
||||
"What are the steps that need to be taken to run the project?",
|
||||
),
|
||||
contributionGuide: await numberedList(
|
||||
"What does it take to contribute to this project?",
|
||||
),
|
||||
projectGoal: await input({ message: "What is the Goal of the project?" }),
|
||||
projectContributors: await loopingQuestion(
|
||||
goal: await input({ message: "What is the Goal of the project?" }),
|
||||
contributors: await loopingQuestion(
|
||||
"Who are the contributors to this project?",
|
||||
"Contributor:",
|
||||
),
|
||||
@@ -76,11 +78,11 @@ const initializeReadme = async () => {
|
||||
supportedPlatforms: await supportedPlatforms(),
|
||||
roadmap: await loopingQuestion(
|
||||
"Give a list of tasks for the project Roadmap",
|
||||
"Next task:",
|
||||
"Task:",
|
||||
),
|
||||
integrations: await loopingQuestion(
|
||||
"List the integrations that this project has",
|
||||
"Next integration:",
|
||||
"Integration:",
|
||||
),
|
||||
softwareStack: await loopingQuestion(
|
||||
"List the software used in this project",
|
||||
|
||||
Reference in New Issue
Block a user