Make dynamic playlists with TypeScript.
Find some YouTube videos and copy their video ID's from the URL.
// youtube.com/watch?v=dQw4w9WgXcQ
const neverGonnaGiveYouUp = 'dQw4w9WgXcQ'
// youtube.com/watch?v=yPYZpwSpKmA
const togetherForever = 'yPYZpwSpKmA'
Playlist.yield('Rick Astley', [
neverGonnaGiveYouUp,
togetherForever,
]);
Playlist.yield('Never gonna be done', function*() {
while(true) {
yield neverGonnaGiveYouUp;
}
});
Once you want
- version control,
- manual testing,
- automated testing, or
- your own IDE setup,
your workspace can be upgraded to a Git repository:
- In playlistjs, download your existing workspace as a tar file
- Clone playlistjs template Git workspace
$ git clone https://github.com/probeiuscorp/playlistjs-sample.git playlist
- Extract tar into clone, then commit and push to any Git hosting provider
- In playlistjs, select "Convert to Git repository"
- Enter clone-worthy URL of hosted Git repository