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

dosolkowski-work/vite-workspace-experiment

 
 

Repository files navigation

vite-workspace-experiment

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

Getting started

  1. Install pnpm. The node.js "corepack" system may be viable, 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

Languages

  • TypeScript 56.2%
  • JavaScript 30.3%
  • CSS 9.9%
  • HTML 2.0%
  • PowerShell 1.2%
  • Less 0.4%