vizhub-issue-tracker icon indicating copy to clipboard operation
vizhub-issue-tracker copied to clipboard

Export viz using different templates

Open stushurik opened this issue 4 years ago • 1 comments

As developer, I want to build viz with chosen bundler (webpack/rollup/etc). I would like vizhub propose templates upon viz export

stushurik avatar Jan 19 '21 16:01 stushurik

This is a great idea that is definitely going to happen.

Here are the export templates/formats that I'm thinking of now:

  • [X] Export raw files as .zip (exactly as they are in the viz)
  • [X] Export raster image
  • [ ] Export as Vanilla JS Vite project (this would only work with V3 runtime, and would support imports across vizzes)
  • [ ] Export as React Vite project (this would only work with V3 runtime, would support imports across vizzes, and would wrap the main viz as a React component inside a React template project)
  • [ ] Export as Svelte project (this would only work with V3 runtime, would support imports across vizzes, and would wrap the main viz as a Svelte component inside a Svelte template project)
  • [ ] Export as Vue project (this would only work with V3 runtime, would support imports across vizzes, and would wrap the main viz as a Vue component inside a Vue template project)

Ideally each of these should be accessible via API / command line, so that users can create scripts in their package.json that pulls the latest code down from VizHub into a subdirectory of their source tree. That would make it easy for developers to integrate VizHub into their existing codebases and deployment workflows.

curran avatar Feb 10 '24 13:02 curran