notesium icon indicating copy to clipboard operation
notesium copied to clipboard

Suggestion & minimal implementation: Vite build

Open qq7 opened this issue 2 months ago • 1 comments

Hi Alon, it seemed a bit strange to me that you've decided to write your own bundling system instead of utilizing npm/yarn/pnpm (I went with pnpm in this pull request) with vite, the bundling tool introduced and maintained by vue team, so I decided to build this minimal example so that it's easier for you to evaluate it makes sense for you to use it in the future.

! I have not tested it with a running backend.

in web/app/: dev environment with hmr:

pnpm install
pnpm run dev

production build:

pnpm install
pnpm run build

This may also be extended with following improvements:

  • version locking (pnpn-lock.yaml in this case)
  • TypeScript (tsc)
    • Where data types are also often provided from the community, e. g.
    • https://www.npmjs.com/package/@types/codemirror
    • https://www.npmjs.com/package/@types/d3
  • ESLint
  • ...

qq7 avatar May 12 '24 12:05 qq7