spec-up-t 1.6.6 ā 1.6.7
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-up-t",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.7",
|
|
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": {
|
|
@@ -156,6 +156,22 @@ function persistUpdatedConfig(config) {
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
+
/**
|
|
160
|
+
* Generates the initial documentation output by running the render command.
|
|
161
|
+
*/
|
|
162
|
+
function generateInitialDocs() {
|
|
163
|
+
const { execSync } = require('child_process');
|
|
164
|
+
|
|
165
|
+
try {
|
|
166
|
+
Logger.info('\nšØ Generating initial documentation...\n');
|
|
167
|
+
execSync('npm run render 4', { cwd: process.cwd(), stdio: 'inherit' });
|
|
168
|
+
Logger.success('Documentation generated in docs/ directory');
|
|
169
|
+
} catch (error) {
|
|
170
|
+
Logger.error('Error: Could not generate documentation.', error.message);
|
|
171
|
+
process.exit(1);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
159
175
|
/**
|
|
160
176
|
* Runs the interactive configuration workflow.
|
|
161
177
|
*
|
|
@@ -188,6 +204,7 @@ async function runStarterpackConfigurator({
|
|
|
188
204
|
const { config, primarySpec } = resolvePrimarySpec(loadSpecsConfig());
|
|
189
205
|
applyAnswersToSpec(primarySpec, answers);
|
|
190
206
|
persistUpdatedConfig(config);
|
|
207
|
+
generateInitialDocs();
|
|
191
208
|
} catch (error) {
|
|
192
209
|
Logger.error('Configuration aborted due to an unexpected error.', error.message);
|
|
193
210
|
process.exit(1);
|