spec-up-t 1.1.26 → 1.1.28
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/package.json +1 -1
- package/src/configure.js +17 -0
- package/src/create-term-index.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-up-t",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.28",
|
|
4
4
|
"description": "Technical specification drafting tool that generates rich specification documents from markdown. Forked from https://github.com/decentralized-identity/spec-up by Daniel Buchner (https://github.com/csuwildcat)",
|
|
5
5
|
"main": "./index",
|
|
6
6
|
"repository": {
|
package/src/configure.js
CHANGED
|
@@ -32,6 +32,23 @@ const rl = readline.createInterface({
|
|
|
32
32
|
output: process.stdout,
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
+
// Introduction text
|
|
36
|
+
console.log(`
|
|
37
|
+
Welcome to the Spec-Up-T Starterpack configuration tool!
|
|
38
|
+
|
|
39
|
+
You will be asked a series of questions to customize your project.
|
|
40
|
+
Here’s what each field means:
|
|
41
|
+
- "Title": The name of your project.
|
|
42
|
+
- "Description": A brief explanation of your project.
|
|
43
|
+
- "Author": The name of the person or organization creating the project.
|
|
44
|
+
- "Account": The GitHub account or organization where the repository will be hosted.
|
|
45
|
+
- "Repo": The name of the GitHub repository.
|
|
46
|
+
|
|
47
|
+
Note: "Author" refers to the creator of the project, while "Account" refers to the GitHub account or organization.
|
|
48
|
+
|
|
49
|
+
Press Enter to accept the default value shown in parentheses.
|
|
50
|
+
`);
|
|
51
|
+
|
|
35
52
|
// Questions for user input
|
|
36
53
|
const questions = [
|
|
37
54
|
{ field: 'title', prompt: 'Enter title: ', default: 'Spec-Up-T Starterpack' },
|
package/src/create-term-index.js
CHANGED
|
@@ -23,7 +23,7 @@ function createTermIndex() {
|
|
|
23
23
|
const specTermDirectoryName = config.specs.map(spec => spec.spec_terms_directory);
|
|
24
24
|
const outputPathJSON = path.join('output', 'term-index.json');
|
|
25
25
|
const files = fs.readdirSync(path.join(specDirectories[0], specTermDirectoryName[0]))
|
|
26
|
-
.filter(file => !file.startsWith('_'));
|
|
26
|
+
.filter(file => !file.startsWith('_') && file.endsWith('.md'));
|
|
27
27
|
|
|
28
28
|
const filePaths = files.map(file => specTermDirectoryName[0] + '/' + file);
|
|
29
29
|
|