giter8ã¨sbtã§Scalaãæ¸ã
æè¿Scalaãæ¸ãã¨ãã¯giter8ã¨sbtã使ã£ã¦ã¦ã便å©ãªã®ã§ã¡ã¢ãã¦ã軽ãæé ãªã©ãæ¸ãã¦ã¿ã¾ãã
giter8
GitHubã«ä¸ãã£ã¦ããhogehoge.g8
ã¿ãããªãªãã¸ããªããã³ãã¬ã¼ãã¨ãã¦ãSBTãªããã¸ã§ã¯ããçæãã¦ããã便å©ãªã¤ãã§ãã
OSX & Homebrewã使ã£ã¦ãããªãã
$ brew install giter8
ã§å ¥ãã¾ãã
ãã¨ãã°ãhttps://github.com/rkmathi/basic-project.g8ã使ããããªãã
$ g8 rkmathi/basic-project
ã§çæã§ãã¾ãã
hoge
ãã©ã³ãã使ããããªãã
$ g8 rkmathi/basic-project -b hoge
ã®ããã«ã-b <branch name>
ãªãã·ã§ã³ã使ããã¨ãã§ãã¾ãã
æé
1. giter8ãsbtãã¤ã³ã¹ãã¼ã«
OSXãªãã°ä¸ã«æ¸ããã¨ããã
$ brew install sbt $ brew install giter8
ã§OKã§ãã
2. giter8ã§SBTããã¸ã§ã¯ããä½æãã
èªåãã¤ãã£ãrkmathi/basic-project
ã¯ããã¼ã¸ã§ã³ã¨çµç¹åã¨ããã¸ã§ã¯ãåãæå®ããããã«ãã¦ãã¾ãã
$ g8 rkmathi/basic-project version [0.0.1-M1]: organization [com.example]: name [basic-project]: Template applied in ./basic-project $
3. å®è¡ãã
runã§å®è¡ãtestã§ScalaTestå®è¡ãassemblyã§sbt-assembly
ã§ã®JARåºåãã§ãã¾ãã
$ cd basic-project $ sbt ... $ run $ test $ assembly
giter8便å©Ëê³Ë