clear build folders

This commit is contained in:
2025-12-16 00:36:32 +01:00
parent e9134357a7
commit e484919546
5 changed files with 2 additions and 62 deletions

4
.gitignore vendored
View File

@@ -1,3 +1,3 @@
# Build files
build/*
dist/*
# build/*
# dist/*

File diff suppressed because one or more lines are too long

Binary file not shown.

14
dist/main.js vendored
View File

@@ -1,14 +0,0 @@
'use strict';
const wasm_loader = require('wasm_loader')
var mod;
wasm_loader('douwco_hivemind_loader', 'douwco_hivemind_module').then((instance) => {
console.log("WASM module loaded.");
mod = instance;
});
module.exports.loop = function () {
if (mod !== undefined)
mod.loop();
}

24
dist/wasm_loader.js vendored
View File

@@ -1,24 +0,0 @@
'use strict';
module.exports = ((mod_js, mod_wasm, opts) => {
const mod_file = require(mod_js);
const bin_file = require(mod_wasm);
opts = opts || {};
opts.wasmBinary = bin_file;
opts.print = opts.print || ((text) => console.log(text));
opts.printErr = opts.printErr || ((text) => console.log(`error: ${text}`));
opts.onAbort = opts.onAbort || (() => console.log('WASM aborted!!!'));
// == don't call main()
if (typeof opts.noInitialRun === "undefined")
opts.noInitialRun = true;
// == don't terminate after returning from main()
if (typeof opts.noExitRuntime === "undefined")
opts.noExitRuntime = true;
return mod_file(opts);
});