element-plus-vite-starter
element-plus-vite-starter copied to clipboard
feat: (action) Cache node modules
feat: (action) Cache node modules
Use caching to speed up the build of actions. Improved dependency package installation time by approximately 60%
Use caching to speed up the build of actions. Improved dependency package installation time by approximately 60%
We didn't add a dependency to it before, partly because we didn't want to pin a package manager.
package-lock.json
/ yarn.lock
/ pnpm-lock.yaml
Maybe we need to discuss.
As a starter / template, I think the better way is to ignore or exclude lock file, and then the template is always up-to-date. Besides, I don't think we should make a specific package manager as default. It's up to users.
For now, it may not be necessary, but if caching is needed, I actually prefer PNPM, which has a smaller and faster lockfile.