bundler for jekyll

<meta name="description" content="使用 bundler 管理安装依赖库,方便我们对依赖库的查看管理,这里以在文章 create new post with jekyll 需要安装的依赖库 stringex 为例:"> </head>


Dec 25, 2014 • CoderSimple 原文传送阵



使用 bundler 管理安装依赖库,方便我们对依赖库的查看管理,这里以在文章 create new post with jekyll 需要安装的依赖库 stringex 为例:

  1. 安装 bundler: gem install bundler
  2. 在新建的工程目录下创建 Gemfile(jekyll 在使用 bundler 时必须在这里指定,否则无法运行)

     source "http://rubygems.org"
    
     group :development do
       gem 'jekyll'
       gem 'stringex'
     end
    
  3. 安装依赖:bundle install
  4. 查看已经安装的依赖 bundle show
  5. 删除依赖:bundle uninstall [name]

</body>
posted @ 2015-01-04 00:27  codersimple  阅读(164)  评论(0)    收藏  举报