do not interprete mjs files from 84 as node-scripts

This commit is contained in:
Alexander Wunschik
2022-03-30 20:34:41 +02:00
parent 306e420869
commit e97820ae11
3 changed files with 7 additions and 5 deletions

View File

@@ -14,6 +14,10 @@ const path = require('path');
const TITLE = 'BASIC Computer Games';
const JAVASCRIPT_FOLDER = 'javascript';
const IGNORE_FOLDERS_START_WITH = ['.', '00_', 'buildJvm', 'Sudoku'];
const IGNORE_FILES = [
// "84 Super Star Trek" has it's own node/js implementation (using xterm)
'cli.mjs', 'superstartrek.mjs'
];
function createGameLinks(game) {
const creatFileLink = (file, name = path.basename(file)) => {
@@ -98,7 +102,8 @@ function findJSFilesInFolder(folder) {
const entries = [
...htmlFiles,
...mjsFiles
];
].filter(file => !IGNORE_FILES.includes(file));
console.log(entries);