mirror of
https://github.com/zsviczian/obsidian-excalidraw-plugin.git
synced 2026-11-27 06:32:42 +00:00
25 lines
825 B
JavaScript
25 lines
825 B
JavaScript
/* eslint-disable no-console */
|
|
// to run: node generate-script-library.mjs
|
|
import { fileURLToPath } from 'url';
|
|
import { runUnifiedGeneration } from './excalidraw-docs-generator-core.mjs';
|
|
|
|
function main() {
|
|
console.log('[script-library] Running unified documentation generator (full mode)...');
|
|
const result = runUnifiedGeneration({
|
|
mode: 'full',
|
|
args: process.argv.slice(2).filter(arg => arg !== '--no-template-sync'),
|
|
syncTemplate: !process.argv.includes('--no-template-sync'),
|
|
});
|
|
console.log('[script-library] Wrote outputs:', result.generated);
|
|
console.log('[script-library] Processed scripts:', result.scriptsProcessed);
|
|
}
|
|
|
|
if (process.argv[1] === fileURLToPath(import.meta.url)) {
|
|
try {
|
|
main();
|
|
} catch (e) {
|
|
console.error('[script-library] Failed:', e);
|
|
process.exit(1);
|
|
}
|
|
}
|