LoginSignup
0

More than 5 years have passed since last update.

VideoJsをコンパイルしてみる。

Posted at

はじめに

VideoJSをコンパイルしなくてはならなくなったのでそのメモです。
CDNあるみたいだからいらないのですが。。Gitから直接ダウンロードしてコンパイルしました。

概要

  1. gruntの準備
  2. gitからダウンロード
  3. 必要なライブラリをインストール
  4. コンパイル

詳細


1. gruntの準備

gruntが動くようにインストールしときます。

$ sudo npm install -g grunt-cli

2. gitからダウンロード

Gitからソースをダウンロードします。

$ git clone https://github.com/videojs/video.js.git
Cloning into 'video.js'...
remote: Counting objects: 19039, done.
remote: Compressing objects: 100% (100/100), done.
remote: Total 19039 (delta 51), reused 0 (delta 0), pack-reused 18939
Receiving objects: 100% (19039/19039), 96.30 MiB | 457.00 KiB/s, done.
Resolving deltas: 100% (12473/12473), done.
$ cd video.js/

3. 必要なライブラリをインストール

必要なライブラリをインストールします。WARNが大量にでましたが関係なさそうだったので無視しました・・・

$npm install

4. コンパイル

最後にコンパイルする。

$grunt dist
:
Done, without errors.


Execution Time (2016-06-29 02:25:44 UTC)
loading tasks     1.7s  ▇▇▇ 6%
jshint:src        3.5s  ▇▇▇▇▇▇ 12%
browserify:dist   7.4s  ▇▇▇▇▇▇▇▇▇▇▇ 24%
uglify:build     15.8s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 52%
zip:dist          1.3s  ▇▇ 4%
Total 30.2s

あとがき

特に問題なくコンパイルできました。まぁドキュメントにのっている通りで行っているだけなので。。

その他

参考:videojs/contributing-code

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0