1
0
Fork 0
forked from svrjs/svrjs

Make change log for specific SVR.JS version generated by the build script

This commit is contained in:
Dorian Niemiec 2024-08-27 10:49:36 +02:00
parent 1001d6ca41
commit 79f8f2ddf9
3 changed files with 10 additions and 4 deletions

View file

@ -9,7 +9,7 @@ const dependencies =
const requiredDependencyList = Object.keys(dependencies);
let dependencyList = Object.keys(dependencies);
const svrjsInfo = JSON.parse(fs.readFileSync(__dirname + "/svrjs.json"));
const { name, version, documentationURL } = svrjsInfo;
const { name, version, documentationURL, changes } = svrjsInfo;
// Function to find and add all dependencies into the dependencyList array.
function findAllDependencies(curList) {
@ -119,6 +119,7 @@ const indexPage = layoutTemplate({
name: name,
version: version,
documentationURL: documentationURL,
changes: changes,
}),
});

View file

@ -2,5 +2,8 @@
"version": "Nightly-GitNext",
"name": "SVR.JS",
"documentationURL": "https://svrjs.org/docs/tentative",
"statisticsServerCollectEndpoint": "https://statistics.svrjs.org/collect.svr"
"statisticsServerCollectEndpoint": "https://statistics.svrjs.org/collect.svr",
"changes": [
"INSERT CHANGES THERE"
]
}

View file

@ -78,7 +78,9 @@
</code>
<p>Changes:</p>
<ul style="display: inline-block; margin: 0;">
<li><i>INSERT CHANGES THERE</i></li>
<% changes.forEach((change) => {%>
<li><%= change %></li>
<% }); %>
</ul>
<p>
<a href="/tests.html">Tests</a><br />