stephane-klein / react-vite-monorepo-poc

Repository to test to setup a monorepo based on React + Vite.js
https://github.com/stephane-klein/backlog/issues/36
0 stars 0 forks source link

Setup React + ViteJS project with create-vite #1

Closed stephane-klein closed 2 years ago

stephane-klein commented 2 years ago

Setup React + ViteJS project with create-vite.

stephane-klein commented 2 years ago
stephane@nuc-i7:~/git/github.com/stephane-klein/react-vite-monorepo-poc (main %) $ pnpm create vite tmp --template react
.../share/pnpm/store/v3/tmp/dlx-1223792  |   +6 +
Packages are cloned from the content-addressable store to the virtual store.
  Content-addressable store is at: /home/stephane/.local/share/pnpm/store/v3
  Virtual store is at:             ../../../../.local/share/pnpm/store/v3/tmp/dlx-1223792/node_modules/.pnpm
.../share/pnpm/store/v3/tmp/dlx-1223792  | Progress: resolved 6, reused 6, downloaded 0, added 6, done

Scaffolding project in /home/stephane/git/github.com/stephane-klein/react-vite-monorepo-poc/tmp...

Done. Now run:

  cd tmp
  pnpm install
  pnpm run dev

after I moved tmp/* file to ./.

stephane-klein commented 2 years ago

Result : https://github.com/stephane-klein/react-vite-monorepo-poc/commit/e1d092893dbf8bb3ce710d75e97212478ddd78df

I close the issue.