[Middleman 3] Middleman: インストール

サイトジェネレータの Middleman をインストールします。

rbenv を利用しています。

% middleman version
Middleman 3.2.2

Xcode CLI Tools のインストール

Xcode CLI Tools が必要。

gem install middleman

関連 gem が色々あるようですね。

% gem search --remote middleman
*** REMOTE GEMS ***
beans-middleman (1.0.14)
branchable_cdn_assets-middleman (0.5.0)
ember-middleman (0.0.3)
font-awesome-middleman (4.0.3)
guard-middleman (0.3.0)
huge-boilerplate-middleman (0.3)
jquery-middleman (3.0.4)
jquery-ui-middleman (4.1.0)
ki_middleman (1.0.0)
middleman (3.2.2, 2.0.16.1 x86-mingw32)
middleman-alias (0.0.5)
middleman-angularjs (0.0.2)
middleman-api (0.1.1)
middleman-as-middleware (0.0.2)
middleman-automatic-clowncar (0.0.1)
middleman-autoprefixer (0.2.3)
middleman-aws-deploy (0.5.0)
middleman-blog (3.5.1)
middleman-blog-authors (0.0.1)
middleman-blog-drafts (0.1.0)
middleman-blog_page (0.0.3)
middleman-bootstrap-navbar (1.0.2)
middleman-bourbon (0.0.2)
middleman-bower (1.0.2)
middleman-clementine (0.0.3)
middleman-cloudfront (0.0.6)
middleman-clowncar (0.0.1)
middleman-core (3.2.2)
middleman-core-x86-mingw32 (3.0.14)
middleman-data_model (0.0.2)
middleman-deploy (0.1.4)
middleman-deploy-with-notifications (0.0.32)
middleman-disqus (0.0.3)
middleman-dotenv (0.0.2)
middleman-ember (0.2.3)
middleman-emberscript (1.0.0)
middleman-emblem (1.1.5)
middleman-emoji (0.1.0)
middleman-faqml (0.3.0)
middleman-favicon-maker (3.5.2)
middleman-fjords (1.1.3)
middleman-foundation-navigation (0.0.1)
middleman-galley (0.0.3)
middleman-gh-pages (0.0.3)
middleman-gibberish (0.7.0)
middleman-google-analytics (0.0.3)
middleman-gravatar (0.1.9)
middleman-gsass (0.0.1)
middleman-gumby (0.0.1)
middleman-hikidoc (0.0.2)
middleman-i18n (0.1.1)
middleman-imageoptim (0.1.4)
middleman-jammit (0.3.0)
middleman-jasmine (0.3.0)
middleman-knitr (0.0.1)
middleman-kss (0.3.1)
middleman-listpages (0.0.2)
middleman-livereload (3.1.1)
middleman-minify-html (3.1.1)
middleman-more (3.1.6)
middleman-navigation (1.0.4)
middleman-neat (0.0.4)
middleman-packager (0.1.0)
middleman-pagination (1.1.0)
middleman-php (0.0.1)
middleman-proxy (0.0.1)
middleman-pry (0.0.2)
middleman-ratchet (0.1.4)
middleman-remote-data (0.1.0)
middleman-rouge (0.0.1)
middleman-s3_metadata (0.1.2)
middleman-s3_redirect (3.0.3)
middleman-s3_sync (3.0.24)
middleman-scaffold (0.0.0.2)
middleman-slickmap (0.0.4)
middleman-slim (0.1.1)
middleman-smusher (3.0.0)
middleman-spellcheck (0.3)
middleman-sprockets (3.2.0)
middleman-svg-fallback (0.1.0)
middleman-swift (0.1.0)
middleman-sync (3.0.12)
middleman-syntax (2.0.0)
middleman-tapirgo (0.0.2)
middleman-target (0.0.6)
middleman-utf8-partial (0.0.1)
middleman-webcomic (0.5.1)
middleman-weinre (0.1.0)
middleman-wizard-template (1.0.4)
middleman-xmlvalidator (0.2.1)
wp2middleman (0.0.1)

インストールします。

% gem install middleman
Fetching: rack-test-0.6.2.gem (100%)
Successfully installed rack-test-0.6.2
Fetching: thor-0.18.1.gem (100%)
Successfully installed thor-0.18.1
Fetching: rb-fsevent-0.9.4.gem (100%)
Successfully installed rb-fsevent-0.9.4
Fetching: ffi-1.9.3.gem (100%)
Building native extensions.  This could take a while...
Successfully installed ffi-1.9.3
Fetching: rb-inotify-0.9.3.gem (100%)
Successfully installed rb-inotify-0.9.3
Fetching: rb-kqueue-0.2.0.gem (100%)
Successfully installed rb-kqueue-0.2.0
Fetching: listen-1.3.1.gem (100%)
Successfully installed listen-1.3.1
Fetching: middleman-core-3.2.2.gem (100%)
Successfully installed middleman-core-3.2.2
Fetching: hike-1.2.3.gem (100%)
Successfully installed hike-1.2.3
Fetching: sprockets-2.10.1.gem (100%)
Successfully installed sprockets-2.10.1
Fetching: sprockets-sass-1.0.2.gem (100%)
Successfully installed sprockets-sass-1.0.2
Fetching: sprockets-helpers-1.0.1.gem (100%)
Successfully installed sprockets-helpers-1.0.1
Fetching: middleman-sprockets-3.2.0.gem (100%)
Successfully installed middleman-sprockets-3.2.0
Fetching: execjs-1.4.0.gem (100%)
Successfully installed execjs-1.4.0
Fetching: uglifier-2.4.0.gem (100%)
Successfully installed uglifier-2.4.0
Fetching: coffee-script-source-1.7.0.gem (100%)
Successfully installed coffee-script-source-1.7.0
Fetching: coffee-script-2.2.0.gem (100%)
Successfully installed coffee-script-2.2.0
Fetching: kramdown-1.3.1.gem (100%)
Successfully installed kramdown-1.3.1
Fetching: middleman-3.2.2.gem (100%)
Successfully installed middleman-3.2.2
Parsing documentation for coffee-script-2.2.0
Installing ri documentation for coffee-script-2.2.0
Parsing documentation for coffee-script-source-1.7.0
Installing ri documentation for coffee-script-source-1.7.0
Parsing documentation for execjs-1.4.0
Installing ri documentation for execjs-1.4.0
Parsing documentation for ffi-1.9.3
Installing ri documentation for ffi-1.9.3
Parsing documentation for hike-1.2.3
Installing ri documentation for hike-1.2.3
Parsing documentation for kramdown-1.3.1
Installing ri documentation for kramdown-1.3.1
Parsing documentation for listen-1.3.1
Installing ri documentation for listen-1.3.1
Parsing documentation for middleman-3.2.2
Installing ri documentation for middleman-3.2.2
Parsing documentation for middleman-core-3.2.2
Installing ri documentation for middleman-core-3.2.2
Parsing documentation for middleman-sprockets-3.2.0
Installing ri documentation for middleman-sprockets-3.2.0
Parsing documentation for rack-test-0.6.2
Installing ri documentation for rack-test-0.6.2
Parsing documentation for rb-fsevent-0.9.4
Installing ri documentation for rb-fsevent-0.9.4
Parsing documentation for rb-inotify-0.9.3
Installing ri documentation for rb-inotify-0.9.3
Parsing documentation for rb-kqueue-0.2.0
Installing ri documentation for rb-kqueue-0.2.0
Parsing documentation for sprockets-2.10.1
Installing ri documentation for sprockets-2.10.1
Parsing documentation for sprockets-helpers-1.0.1
Installing ri documentation for sprockets-helpers-1.0.1
Parsing documentation for sprockets-sass-1.0.2
Installing ri documentation for sprockets-sass-1.0.2
Parsing documentation for thor-0.18.1
Installing ri documentation for thor-0.18.1
Parsing documentation for uglifier-2.4.0
Installing ri documentation for uglifier-2.4.0
Done installing documentation for coffee-script, coffee-script-source, execjs, ffi, hike, kramdown, listen, middleman, middleman-core, middleman-sprockets, rack-test, rb-fsevent, rb-inotify, rb-kqueue, sprockets, sprockets-helpers, sprockets-sass, thor, uglifier after 87 seconds
19 gems installed

log として残しておきます。

動作確認

% middleman --help
Tasks:
middleman build [options]           # Builds the static site for deployment
middleman console [options]         # Start an interactive console in the con...
middleman extension NAME [options]  # Create Middleman extension scaffold NAME
middleman init NAME [options]       # Create new project NAME
middleman server [options]          # Start the preview server
middleman upgrade                   # Upgrade installed bundle
middleman version                   # Show version