spec-up-t 1.1.0 → 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/package.json +1 -1
- package/src/install-from-boilerplate/add-scripts-keys.js +0 -1
- package/src/install-from-boilerplate/boilerplate/spec/example-markup-in-markdown.md +40 -36
- package/src/install-from-boilerplate/config-scripts-keys.js +2 -1
- package/src/install-from-boilerplate/config-system-files.js +3 -0
- package/src/install-from-boilerplate/copy-system-files.js +30 -0
- package/src/install-from-boilerplate/custom-update.js +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-up-t",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
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": {
|
|
@@ -5,7 +5,6 @@ const path = require('path');
|
|
|
5
5
|
function addScriptsKeys(scriptKeys) {
|
|
6
6
|
// Path to the package.json of the project where this script is run
|
|
7
7
|
const packageJsonPath = path.resolve(__dirname, '../../../../', 'package.json');
|
|
8
|
-
// console.log('KORKOR packageJsonPath: ', packageJsonPath);
|
|
9
8
|
|
|
10
9
|
// Read the package.json file
|
|
11
10
|
fs.readFile(packageJsonPath, 'utf8', (err, data) => {
|
|
@@ -111,50 +111,54 @@ You can even insert content within more complex blocks, like the JSON object bel
|
|
|
111
111
|
### Tables
|
|
112
112
|
|
|
113
113
|
<pre>
|
|
114
|
-
Stage | Direct Products | ATP Yields
|
|
115
|
-
|
|
116
|
-
Glycolysis |
|
|
117
|
-
^^ |
|
|
118
|
-
Pyruvaye oxidation |
|
|
119
|
-
Citric acid cycle |
|
|
120
|
-
^^ |
|
|
121
|
-
^^ |
|
|
122
|
-
**30--32** ATP
|
|
114
|
+
| Stage | Direct Products | ATP Yields |
|
|
115
|
+
| -----------------: | --------------: | ---------: |
|
|
116
|
+
| Glycolysis | 2 ATP | |
|
|
117
|
+
| ^^ | 2 NADH | 3--5 ATP |
|
|
118
|
+
| Pyruvaye oxidation | 2 NADH | 5 ATP |
|
|
119
|
+
| Citric acid cycle | 2 ATP | |
|
|
120
|
+
| ^^ | 6 NADH | 15 ATP |
|
|
121
|
+
| ^^ | 2 FADH2 | 3 ATP |
|
|
122
|
+
| **30--32** ATP | | |
|
|
123
123
|
[Net ATP yields per hexose]
|
|
124
124
|
</pre>
|
|
125
125
|
|
|
126
|
-
Stage | Direct Products | ATP Yields
|
|
127
|
-
|
|
128
|
-
Glycolysis |
|
|
129
|
-
^^ |
|
|
130
|
-
Pyruvaye oxidation |
|
|
131
|
-
Citric acid cycle |
|
|
132
|
-
^^ |
|
|
133
|
-
^^ |
|
|
134
|
-
**30--32** ATP
|
|
126
|
+
| Stage | Direct Products | ATP Yields |
|
|
127
|
+
| -----------------: | --------------: | ---------: |
|
|
128
|
+
| Glycolysis | 2 ATP | |
|
|
129
|
+
| ^^ | 2 NADH | 3--5 ATP |
|
|
130
|
+
| Pyruvaye oxidation | 2 NADH | 5 ATP |
|
|
131
|
+
| Citric acid cycle | 2 ATP | |
|
|
132
|
+
| ^^ | 6 NADH | 15 ATP |
|
|
133
|
+
| ^^ | 2 FADH2 | 3 ATP |
|
|
134
|
+
| **30--32** ATP | | |
|
|
135
135
|
[Net ATP yields per hexose]
|
|
136
136
|
|
|
137
137
|
<pre>
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
|
141
|
-
|
|
142
|
-
|
|
|
143
|
-
|
|
|
144
|
-
|
|
|
145
|
-
|
|
146
|
-
|
|
138
|
+
| | | | | | | | |
|
|
139
|
+
| --- | --- | --- | --- | --- | --- | --- | --- |
|
|
140
|
+
| ♜ | | ♝ | ♛ | ♚ | ♝ | ♞ | ♜ |
|
|
141
|
+
| | ♟ | ♟ | ♟ | | ♟ | ♟ | ♟ |
|
|
142
|
+
| ♟ | | ♞ | | | | | |
|
|
143
|
+
| | ♗ | | | ♟ | | | |
|
|
144
|
+
| | | | | ♙ | | | |
|
|
145
|
+
| | | | | | ♘ | | |
|
|
146
|
+
| ♙ | ♙ | ♙ | ♙ | | ♙ | ♙ | ♙ |
|
|
147
|
+
| ♖ | ♘ | ♗ | ♕ | ♔ | | | ♖ |
|
|
148
|
+
|
|
147
149
|
</pre>
|
|
148
150
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
|
152
|
-
|
|
153
|
-
|
|
|
154
|
-
|
|
|
155
|
-
|
|
|
156
|
-
|
|
157
|
-
|
|
151
|
+
| | | | | | | | |
|
|
152
|
+
| --- | --- | --- | --- | --- | --- | --- | --- |
|
|
153
|
+
| ♜ | | ♝ | ♛ | ♚ | ♝ | ♞ | ♜ |
|
|
154
|
+
| | ♟ | ♟ | ♟ | | ♟ | ♟ | ♟ |
|
|
155
|
+
| ♟ | | ♞ | | | | | |
|
|
156
|
+
| | ♗ | | | ♟ | | | |
|
|
157
|
+
| | | | | ♙ | | | |
|
|
158
|
+
| | | | | | ♘ | | |
|
|
159
|
+
| ♙ | ♙ | ♙ | ♙ | | ♙ | ♙ | ♙ |
|
|
160
|
+
| ♖ | ♘ | ♗ | ♕ | ♔ | | | ♖ |
|
|
161
|
+
|
|
158
162
|
|
|
159
163
|
### Sequence Diagrams
|
|
160
164
|
|
|
@@ -10,7 +10,8 @@ const configScriptsKeys = {
|
|
|
10
10
|
"help": "cat help.txt",
|
|
11
11
|
"menu": "bash ./main.sh",
|
|
12
12
|
"addremovexrefsource": "node --no-warnings -e \"require('spec-up-t/src/add-remove-xref-source.js')\"",
|
|
13
|
-
"configure": "node --no-warnings -e \"require('spec-up-t/src/configure.js')\""
|
|
13
|
+
"configure": "node --no-warnings -e \"require('spec-up-t/src/configure.js')\"",
|
|
14
|
+
"custom-update": "npm update && node -e \"require('spec-up-t/src/install-from-boilerplate/custom-update.js')\""
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
module.exports = { configScriptsKeys };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const fs = require('fs-extra');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const { systemFiles } = require('./config-system-files.js');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Copies system files from the boilerplate directory to the root of the project.
|
|
7
|
+
* System files are defined in the `config-system-files.js` file.
|
|
8
|
+
* Files are copied recursively and can be safely overwritten.
|
|
9
|
+
*/
|
|
10
|
+
function copySystemFiles() {
|
|
11
|
+
const sourceDir = path.join(__dirname, './', 'boilerplate');
|
|
12
|
+
|
|
13
|
+
systemFiles.forEach(item => {
|
|
14
|
+
const srcPath = path.join(sourceDir, item);
|
|
15
|
+
|
|
16
|
+
// Root of the project
|
|
17
|
+
const destPath = path.join(__dirname, '../../../../', item);
|
|
18
|
+
|
|
19
|
+
try {
|
|
20
|
+
fs.cpSync(srcPath, destPath, { recursive: true });
|
|
21
|
+
console.log(`✅ Copied ${item} to ${destPath}`);
|
|
22
|
+
} catch (error) {
|
|
23
|
+
console.error(`❌ Failed to copy ${item} to ${destPath}:`);
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
console.log('✅ Copied system files to current directory.');
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
module.exports = copySystemFiles;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const { configScriptsKeys } = require('./config-scripts-keys');
|
|
2
|
+
const addScriptsKeys = require('./add-scripts-keys');
|
|
3
|
+
const copySystemFiles = require('./copy-system-files');
|
|
4
|
+
|
|
5
|
+
addScriptsKeys(configScriptsKeys);
|
|
6
|
+
|
|
7
|
+
copySystemFiles();
|
|
8
|
+
|
|
9
|
+
console.log("✅ custom update done");
|