Prepare V2 corpus, editorial journal and reproducible publication boundary

This commit is contained in:
huncode committed 2026-10-26 17:46:00 +03:00
1 parent 7b3f49788d
commit 69607c52fd
498 files changed
+97671 -468

No files matched your search

@@ -0,0 +1,14 @@
import {PHP} from '@php-wasm/universal';
import {loadNodeRuntime} from '@php-wasm/node';
import {readFile} from 'node:fs/promises';
const php=new PHP(await loadNodeRuntime('8.3',{emscriptenOptions:{processId:process.pid}}));
const project=process.argv[2]||process.cwd();
const base='/tmp/progcode-php-fixture';
php.mkdir(base);
for(const name of ['offer-example.php','offer-contract.php'])php.writeFile(base+'/'+name,await readFile(project+'/docs/rebuild-v2/evidence/code/'+name));
const result=await php.run({scriptPath:base+'/offer-contract.php'});
console.log(result.text);console.log(JSON.stringify({exitCode:result.exitCode,errors:result.errors,runtime:'@php-wasm/node 3.1.60, PHP8.3'}));
if(result.exitCode!==0||result.errors)process.exitCode=1;
php.exit();
process.exit(process.exitCode||0);