mdsmith 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README-MDSMITH.md +2 -3
- package/bin/index.js +7 -5
- package/package.json +1 -1
package/README-MDSMITH.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# Docuapi
|
|
3
3
|
|
|
4
4
|
CLI para gerar READMEs e arquivos Markdown
|
|
5
5
|
|
|
6
6
|
## 🔖 Project Info
|
|
7
|
-
- **Version:** 1.1.
|
|
7
|
+
- **Version:** 1.1.1
|
|
8
8
|
- **Package Manager:** npm
|
|
9
9
|
- **Type:** Node.js Project
|
|
10
10
|
|
|
@@ -18,7 +18,6 @@ No dependencies found.
|
|
|
18
18
|
📄 beta.js
|
|
19
19
|
📄 index.js
|
|
20
20
|
📄 mdsmith.config.json
|
|
21
|
-
📄 package-lock.json
|
|
22
21
|
📄 package.json
|
|
23
22
|
📄 README-MDSMITH.md
|
|
24
23
|
|
package/bin/index.js
CHANGED
|
@@ -77,7 +77,11 @@ function scanDir(dirPath, padding, config) {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
} else {
|
|
80
|
-
|
|
80
|
+
if (config.ignore.includes(entry.name)){
|
|
81
|
+
continue
|
|
82
|
+
} else{
|
|
83
|
+
treeContent += `${" ".repeat(padding*2)} 📄 ${entry.name}\n`
|
|
84
|
+
}
|
|
81
85
|
}
|
|
82
86
|
}
|
|
83
87
|
|
|
@@ -98,8 +102,7 @@ async function buscarNome(nome){
|
|
|
98
102
|
while(!respostaValida){
|
|
99
103
|
resposta = await perguntar(`
|
|
100
104
|
Project name not found in package.json.
|
|
101
|
-
Would you like to provide one? (y/n):
|
|
102
|
-
`)
|
|
105
|
+
Would you like to provide one? (y/n): `)
|
|
103
106
|
resposta = resposta.trim().toLowerCase()
|
|
104
107
|
|
|
105
108
|
if(resposta == "y" || resposta == "n"){
|
|
@@ -134,8 +137,7 @@ async function buscarDescricao(descricao){
|
|
|
134
137
|
while(!respostaValida){
|
|
135
138
|
resposta = await perguntar(`
|
|
136
139
|
Project description not found.
|
|
137
|
-
Would you like to provide one? (y/n):
|
|
138
|
-
`)
|
|
140
|
+
Would you like to provide one? (y/n): `)
|
|
139
141
|
resposta = resposta.trim().toLowerCase()
|
|
140
142
|
|
|
141
143
|
if(resposta == "y" || resposta == "n"){
|