Upgrade to Pro — share decks privately, control downloads, hide ads and more …

サーバサイドTypeScriptモノレポを半年運用した結果/How to maintain server side typescript monorepo

tom-256
October 30, 2022

サーバサイドTypeScriptモノレポを半年運用した結果/How to maintain server side typescript monorepo

Kanazawa.js #24

tom-256

October 30, 2022
Tweet

More Decks by tom-256

Other Decks in Programming

Transcript

  1. 機能面はGitHub の機能を使うとポリレポでもモノレポと近いメリット が得られる Template Repository( パッケージのテンプレート) GitHub Actions Reusable Workflow(CI

    ワークフローの共通化) GitHub Actions Repository Dispatch( リポジトリ間のCI トリガー) npm package による設定ファイルの共通化 5
  2. CI docker/build-push-action とmatrix strategy により動的なCI 構築 変更があったパッケージのみCI 実施 パッケージが増えてもCI 時間が増加しないように

    unit test... キャッシュ未導入、テスト用パッケージが重い問題 docker build...multistage build,gha cache 14
  3. . ├── Dockerfile └── apps ├── foo └── bar └──

    apps ├── foo │ └── Dockerfile └── bar └── Dockerfile 18