fe6f2bfe76
Open a .pd file, drag boxes and pull cords, save it back as a file Pd will load. Dragging is Dragology: `d.vary` moves a box, and a cord drag is `d.closest(...).whenFar(vary)` over every inlet in the patch, so the plug snaps to an inlet and cancels on empty space. The parser is a byte-exact round trip. Two Pd format details that matter: `#X connect` indices count comments, and `;;` (an empty record) is not the same as a blank line. Anything unmodelled — arrays, `#X declare`, subpatches — is preserved verbatim. Tests run real Pd: patches round trip, an edited patch loads in `pd -nogui` without new complaints, and the bridge carries a message into a running Pd and back. The bridge writes to server/patches/ and runs `pd -nogui` itself, so saving and hearing the patch is one button.
18 lines
431 B
JSON
18 lines
431 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "es2022",
|
|
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
"module": "ESNext",
|
|
"moduleResolution": "bundler",
|
|
"jsx": "react-jsx",
|
|
"strict": true,
|
|
"noEmit": true,
|
|
"isolatedModules": true,
|
|
"allowImportingTsExtensions": true,
|
|
"verbatimModuleSyntax": true,
|
|
"types": ["vite/client", "node"],
|
|
"skipLibCheck": false
|
|
},
|
|
"include": ["src", "test", "server"]
|
|
}
|