Dev Dependency - CI/CD用語集の定義
dev dependency とは、プロジェクトの実行ではなく build やテストにのみ必要なパッケージで、devDependencies に宣言されます。テストフレームワーク、linter、bundler が典型例です。
CIにおいて
CI はテストを実行するために dev dependency をインストールしますが、本番イメージでは artifact を小さくし攻撃対象領域を減らすために、それらを除外すべきです(npm ci --omit=dev)。
関連ガイド
Runtime Dependency - CI/CD Glossary DefinitionRuntime Dependency: A runtime dependency is a package the application needs to execute in production, not jus…
Optional Dependency - CI/CD Glossary DefinitionOptional Dependency: An optional dependency is a package whose installation failure does not fail the overall…
Peer Dependency - CI/CD Glossary DefinitionPeer Dependency: A peer dependency is a package that a library expects its host project to provide rather tha…