CSCI-SHU-410-SE-Project / Deskulpt

Deskulpt (Desktop + Sculpt, pronounced /'deskʌlpt/), a cross-platform desktop customization tool.
https://csci-shu-410-se-project.github.io/Deskulpt/
MIT License
2 stars 0 forks source link

MAINT migrate from `npm` to `pnpm` #141

Closed Charlie-XIAO closed 1 month ago

Charlie-XIAO commented 1 month ago

Because my disk is going to explode... Also there will be nicer diff for the lock file since it's yaml instead of json.

And I heard that pnpm has nice features for monorepos which is our case (core and several tooling packages), though I haven't explored much yet, except that now pnpm install at the project root will recursively install all dependencies for the workspaces due to the pnpm-workspace.yaml configuration which is quite nice already.

There are many things to look into for our monorepo layout, e.g. I'm planning to refactor the scripts in package.json and maybe use some tool like turborepo to ensure same versions of dependencies, make better pipelining both for building and publishing, etc. But those are future work.

[!NOTE] Make sure you delete all your node_modules (core, website, and all tooling packages) before running pnpm install.

[!NOTE] The commands that used to be npm run xxx will all become pnpm xxx now. For instance, pnpm tauri dev and pnpm tauri build -- --debug.

github-actions[bot] commented 1 month ago

✔️ Deskulpt Built Successfully!

Deskulpt binaries have been built successfully on all supported platforms. Your pull request is in excellent shape! You may check the built Deskulpt binaries here and download them to test locally.

Workflow file: .github/workflows/build.yaml. Generated for commit: 00632a4.