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

View file

@ -2,5 +2,8 @@
"version": "Nightly-GitNext", "version": "Nightly-GitNext",
"name": "SVR.JS", "name": "SVR.JS",
"documentationURL": "https://svrjs.org/docs/tentative", "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> </code>
<p>Changes:</p> <p>Changes:</p>
<ul style="display: inline-block; margin: 0;"> <ul style="display: inline-block; margin: 0;">
<li><i>INSERT CHANGES THERE</i></li> <% changes.forEach((change) => {%>
<li><%= change %></li>
<% }); %>
</ul> </ul>
<p> <p>
<a href="/tests.html">Tests</a><br /> <a href="/tests.html">Tests</a><br />