ocadaruma / sbt-youtube   0.1.1

MIT License GitHub

No more compile time boredom!

Scala versions: 2.10
sbt plugins: 0.13

sbt-youtube

No more compile time boredom!

This plugin is inspired by sbt-musical.

Requirements

You have to add a chromedriver directory to PATH or specify chromedriver path via webdriver.chrome.driver system property.

$ export PATH="$PATH:/path/to/chromedriver_directory"
or
$ sbt -Dwebdriver.chrome.driver=/path/to/chromedriver

If you've installed chromedriver via homebrew, you don't need to do this.

Usage

Installation

Add the plugin in project/plugins.sbt:

addSbtPlugin("com.mayreh" % "sbt-youtube" % "0.1.1")

Setup playlist in (project root)/youtube.sbt:

// list of youtube video ids.
youtubePlaylist ++= Seq(
  // Perfume
  "q6T0wOMsNrI", // FLASH
  "K54CYowOqxM", // レーザービーム
  "7PtvnaEo9-0", // Spring of Life
  "H4znsXCH_2Y", // Spending all my time
  "guqVgQFvXXY", // Cling Cling
  "CYL3DnyA4e0", // Sweet Refrain
  "vhfYis6VuXY", // Pick Me Up
  "ihNaFCEd0Ms"  // 1mm
)

As global plugin

You can also install as global plugin. ~/.sbt/0.13/plugins/plugins.sbt:

addSbtPlugin("com.mayreh" % "sbt-youtube" % "0.1.1")

Playlist in ~/.sbt/0.13/youtube.sbt:

import com.mayreh.sbt.youtube.SbtPlugin.Keys._ 

// list of youtube video ids.
youtubePlaylist ++= Seq(
  // Perfume
  "q6T0wOMsNrI", // FLASH
  "K54CYowOqxM", // レーザービーム
  "7PtvnaEo9-0", // Spring of Life
  "H4znsXCH_2Y", // Spending all my time
  "guqVgQFvXXY", // Cling Cling
  "CYL3DnyA4e0", // Sweet Refrain
  "vhfYis6VuXY", // Pick Me Up
  "ihNaFCEd0Ms"  // 1mm
)

Hook any command

Prefix u to any command.

$ sbt
> u compile

License

Published under the MIT License.