4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【middleman】slimのテンプレートでinitする

Last updated at Posted at 2016-01-28

#やりたいこと
middlemanで静的サイトを作成する際に、どうせならはじめからslimでテンプレートを出したい。

#結論
以下の順番でコマンドを打ちます。

ターミナル
#middlemanのインストール
$gem install middleman
#slimのインストール
$gem install slim
#middlemanのinit
$middleman init PROJECT_NAME -T yterajima/middleman-slim

実行後ターミナルが以下のようになっていれば成功

         run  git clone --depth 1 git://github.com/yterajima/middleman-slim.git /var/folders/ng/q_w1pz_96yj7hjmk3h6pln3h0000gn/T/d20160129-57446-1qdzle6 from "."
Cloning into '/var/folders/ng/q_w1pz_96yj7hjmk3h6pln3h0000gn/T/d20160129-57446-1qdzle6'...
remote: Counting objects: 31, done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 31 (delta 0), reused 24 (delta 0), pack-reused 0
Receiving objects: 100% (31/31), 8.10 KiB | 0 bytes/s, done.
Checking connectivity... done.
       exist
      create  .gitignore
      create  Gemfile
      create  config.rb
      create  source/images/middleman-logo.svg
      create  source/index.html.slim
      create  source/javascripts/all.js
      create  source/layouts/layout.slim
      create  source/stylesheets/_normalize.scss
      create  source/stylesheets/site.css.scss

#経緯
いくつかのサイトを参考に、以下のコマンドを試したところエラー

ターミナル
$middleman init PROJECT_NAME --template slim

middlemanのバージョンが上がった際にコマンドの書き方が変わったようです。

4
5
2

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
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?