LoginSignup
4
4

More than 5 years have passed since last update.

sinon.jsをbowerからインストールする時

Last updated at Posted at 2014-01-30

sinonjsはbower.jsonがあるんですが、そのまま bower install sinon だと使えず、buildする必要があります。
ただ、ビルドはビルドでrubyが必要だったりjuicerが必要だったりして面倒です。
ビルド済みのものを使いましょう。

$ bower install sinonjs --save-dev

でok.

使うときはこんな感じでpkgを設定して下さい。

<script src="/bower_components/sinonjs/sinon.js"></script>

こういう後でbuildしなきゃいけない系のライブラリが多いとbower installの後で色々とやらなきゃいけないことが多いから、bowerのためにビルド済みのリポジトリ作っておくという戦略が求められる。

4
4
0

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
4
4