Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: use yarn #165

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

build: use yarn #165

wants to merge 3 commits into from

Conversation

ambar
Copy link
Contributor

@ambar ambar commented Dec 2, 2020

在 npm 不支持 workspace 之前 ,yarn 可能是必要的选择,当前 fork 这个项目使用 npm 安装太久了(几十分钟没装好),而 yarn 安装只要不到一分钟,并且它们的磁盘占用空间差别巨大:

wxa du -hs mina-webpack-npm
885M	mina-webpack-npmwxa du -hs mina-webpack-yarn
278M	mina-webpack-yarn

yarn 优势是会尽量提升 node modules,只需要一个 lock file(对比:11,512 additions and 49,431 deletions.)。

相关:https://classic.yarnpkg.com/en/docs/cli/workspaces

TODO:

ava 提升到 root 更好,版本一致,当前项目有 v1 和 v2,统一版本到 v2 或 v3 都会提示出错。

@ambar
Copy link
Contributor Author

ambar commented Dec 3, 2020

看起来是首次安装是时间差异巨大。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant