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

chore: Use berry #187

Closed
wants to merge 5 commits into from
Closed

chore: Use berry #187

wants to merge 5 commits into from

Conversation

neet
Copy link
Member

@neet neet commented Aug 12, 2020

Resolve #79

Zero-installs

  • リポジトリが大きくなるけど、 yarn install するならディスク上の容量は結局変わらない。
  • @actions/cacheの設定がめんどくさいことを考えると、CIではめちゃめちゃ嬉しいかもしれない。
  • ただ、dockerイメージを書くときに、.yarnをCOPYしたときにyarn workspaces focusの意味がなくなる(ドキュメントにもそう書いてあった)ので、使わないかなぁ。
  • https://yarnpkg.com/features/zero-installs

Plug'n'Play

  • Yarn側がモジュールを持つようになったので, yarn node しないといけないらしい
  • 一応node_modulesをリンカに使えるらしいけど、将来的にはどうしようもなさそう
  • https://yarnpkg.com/features/pnp

PnPify

  • ESLintとかTypeScriptがモジュール解決にrequireじゃないオレオレの機構を使っているから、それをラップするやつなんだけど、VSCodeと連携させるためにSDKを生成しないといけない
  • モンキーパッチを当ててるので、めちゃめちゃバグを踏みそう
  • ESLint側がYarn Plug'n'Playを使えば解決する問題なので、それまでまとうかな
  • https://yarnpkg.com/advanced/editor-sdks

Node-modules linker

Some people can't migrate to Plug'n'Play installs just yet. That's fine! Some of our contributors don't use it! Yarn supports node_modules installs too! And thanks to Larixer's impressive work, we're happy to report that even large and complex repositories have successfully upgraded to Yarn 2.
https://dev.to/arcanis/yarn-2-1-git-workspaces-focused-installs-loose-mode-live-playground-4kfc

Plugins

  • workspace-toolsforeach (~= lerna run)とか focus (特定のパッケージ以外の依存を消すやつ) をするためのやつ
  • typescriptyarn add 時に@types/* を入れてくれるやつ
  • versionlerna version と同じ。changelogがまだないので、conventional-changelogの生成をさせないといけないかもしれない’。
  • constraints ─ Prologが書けるようになるやつ(いる??)

Deploy workflow

yarn version
yarn workspaces foreach npm publish 

@neet neet added this to In progress in v0.2.0 Aug 12, 2020
@visible visible locked and limited conversation to collaborators Aug 14, 2020
@neet neet closed this Aug 14, 2020
v0.2.0 automation moved this from In progress to Done Aug 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
v0.2.0
  
Done
Development

Successfully merging this pull request may close these issues.

Minify the size of the Docker image
1 participant