Open13

npm 的 sbt 理解

simocheesimochee

sbt vs npm 雑比較

Feature sbt npm
プロジェクト定義 build.sbt package.json
依存関係管理 libraryDependencies dependencies
レジストラ Maven / Ivy npm
ビルド sbt compile N/A
テスト sbt test N/A
パッケージング sbt package npm pack
レジストラに公開 sbt publish npm publish
タスク実行 カスタムタスク定義 npm-scripts
インタラクティブシェル sbt N/A
プロジェクト生成 sbt new npm init
プラグイン project/plugins.sbt npm-scripts
simocheesimochee

npm がパッケージマネージャー (Node Package Manager だしね) なのに対して、 sbt はビルドツール (Simple|Scala Build Tool だしね) なので担当する範囲はかなり違いそう

simocheesimochee

リファレンスマニュアルを読む
https://www.scala-sbt.org/1.x/docs/index.html?_