Use pnpm instead of npm
See original GitHub issueIs your feature request related to a problem? Please describe. pnpm makes a better use of your drive, is faster than npm and results in more predictable behaviors (you cannot use packages not listed in the dependencies because they are not located in node_modules). I have seen a lot of people in the Vue ecosystem starting to use it and since this template is Vue by default I think it makes sense to switch as well.
Describe the solution you’d like Remove npm lockfile, generate pnpm lockfile and replace all npm instructions with pnpm counterparts (cli is largely the same though)
Additional context Comparison between npm and pnpm version if this template.
git clone https://github.com/cawa-93/vite-electron-builder.git npm
cd npm
npm install
results in a 580.8 MB directory
git clone https://github.com/cawa-93/vite-electron-builder.git pnpm
cd pnpm
rm package-lock.json
pnpm install
results in a 424.2 kB directory
I know that the space is still used somewhere else, but since those version of required packages can be reused for other node projects the space is utilized in a much better. If you have 2 electron apps based on this template you save 580.1 MB of space (size of node_modules with npm). If you have 3 of them you save 1160.2 MB and so on.
Will make a PR if the author approves.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (2 by maintainers)
Top GitHub Comments
@seahindeniz My opinion on this does not change: Everyone chooses the package manager he likes. As part of this template, I’m keeping neutral and using the built-in default.
That makes sense. I think it is safe to close the issue.