Node API
asg017 opened this issue · comments
Alex Garcia commented
Currently dataflow is a CLI that you install and use by itself, but I could see how a Node API would be useful. Here's some ideas of what could be exposed (and how users could use it):
- Compiling
.ojs
code to.js
- Dataflow specific compiling, not compiling ojs in general (use the compiler for that)
- For plugins like webpack, esbuild, rollup, etc.
- Start the
dataflow run
dev server with options - Export the StandardLibrary to make it install-able (basically with observablehq/htl
Víctor Martínez commented
fyi running dataflow under electron with nodeIntegration: true
is a quick way to achieve this