Skip to content

Refactoring bundling and publish process #266

@jusa3

Description

@jusa3
  • Remove separate rollup and esbuild logic 🔥
  • Add vite bundling setup
  • Update to Storybook v8
  • Update to Storybook v9?
  • Update to React 19?
  • Add vitest test integration for storybook with POC
  • Split into two packages (react/js)
    • src/react and src/js, each with vite.config and package.json. Dev dependencies used in both should be specified in root package.json.
    • Use npm workspaces in root package.json
    • Split storybook into src/react and src/js, try to reuse as much code as possible.
    • Remove createXXX functions from react package and mirror files into src/js to reference react file and contain createXXX-wrapper.
  • Test JS package - QueryClientProvider error
  • Add tests for React and JS widgets Storybook
    • Migrate Autocomplete and DataContent widgets to new Storybook syntax and add POC tests
    • Migrate all widget stories and add POC tests
    • Add tests
  • Adapt CI workflow: change React build and add JS npm publish step (POC: https://www.npmjs.com/package/@sasse/tss-js)
  • Adapt documentation CI workflow
  • Update demo projects
    • Update JS demo project (with local/local server iife)
    • Create new demo project (with js npm package)
  • Update docs
    • on how to use the new JS package
    • on how to develop with the new project structure

Dev branches:
https://github.com/ts4nfdi/terminology-service-suite/tree/kevinf_project_refactor
https://github.com/ts4nfdi/terminology-service-suite/tree/jusa-refactor-storybook

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions