Skip to content

Experimenting with creating a web UI using Vite, workspaces, and Preact or React

License

Notifications You must be signed in to change notification settings

qidydl/vite-workspace-experiment

Repository files navigation

vite-workspace-experiment

Experimenting with creating a web UI using Vite, workspaces, and Preact or React.

Getting started

  1. Install pnpm. The node.js "corepack" system may be viable (in which case you need to use corepack pnpm instead of just pnpm), or you can just use npm install -g pnpm
  2. Install dependencies from the root directory by running pnpm install
  3. Start the app from the root directory by running pnpm start
    • Changes to any code in either app or shared should be hot-reloaded
  4. Run all tests from the root directory by running pnpm test

TODO

  • Get list of VS Code extensions and settings
  • Set up library (tsc only) and app (Vite)
  • Set up tests for both library and app (vitest, testing-library)
  • Add axe accessibility scans for UI components
  • Set up Prettier, ESLint, Stylelint, Syncpack
  • Set up automated pipeline that builds, runs linting, etc.
    • Just detect and error on findings
  • Can we push most/all deps up to root package.json so they're consistent across the repo?
  • Get rid of intermediate "packages" directory
  • Referencing shared library source directly is probably "wrong" but very convenient--is there a "right" way that can be made convenient?

Reference links

About

Experimenting with creating a web UI using Vite, workspaces, and Preact or React

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published