{"id":16191,"date":"2014-06-19T21:00:19","date_gmt":"2014-06-19T12:00:19","guid":{"rendered":"http:\/\/www.sssg.org\/blogs\/hiro345\/?p=16191"},"modified":"2014-06-20T13:57:30","modified_gmt":"2014-06-20T04:57:30","slug":"bootstrap3%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9","status":"publish","type":"post","link":"https:\/\/www.hiro345.net\/blogs\/hiro345\/archives\/16191.html","title":{"rendered":"Bootstrap3\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u4f7f\u3046\u74b0\u5883\u3092\u7528\u610f\u3059\u308b\u306b\u306f"},"content":{"rendered":"<p>Bootstrap3\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u4f7f\u3046\u74b0\u5883\u3092\u7528\u610f\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u304b\u78ba\u8a8d\u3092\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u300c<a href=\"http:\/\/getbootstrap.com\/\">Bootstrap<\/a>\u300d\u304b\u3089\u30a2\u30fc\u30ab\u30a4\u30d6\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<br \/>\nDownload\u306e\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u914d\u5e03\u7248\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u7248\u3001Sass\u7248\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30dc\u30bf\u30f3\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<p><strong>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/strong><br \/>\n\u57fa\u672c\u306f\u3001\u914d\u5e03\u7248\uff08<a href=\"https:\/\/github.com\/twbs\/bootstrap\/releases\/download\/v3.1.1\/bootstrap-3.1.1-dist.zip\">bootstrap-3.1.1-dist.zip<\/a>\uff09\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u4f7f\u3044\u307e\u3059\u3002\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3092\u3057\u305f\u308a\u3001\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u7248\uff08<a href=\"https:\/\/github.com\/twbs\/bootstrap\/archive\/v3.1.1.zip\">v3.1.1.zip(\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u7248)<\/a>\uff09\u3092\u4f7f\u3044\u307e\u3059\u3002Less\u30b3\u30f3\u30d1\u30a4\u30e9\u304c\u5fc5\u8981\u3067Node.js\u3001Grunt\u3001Less.js\u3001uglify-js\u306a\u3069\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3082\u5fc5\u8981\u3067\u3059\u3002Saas\u7248\uff08<a href=\"https:\/\/github.com\/twbs\/bootstrap-sass\/archive\/v3.1.1.tar.gz\">v3.1.1.tar.gz(Saas\u7248)<\/a>\uff09\u306fRails\u3084Compass\u3084Sass\u3057\u304b\u4f7f\u308f\u306a\u3044\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u4f7f\u3044\u307e\u3059\uff0e<\/p>\n<p>\u3053\u3053\u3067\u306f\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u7248\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u5c55\u958b\u3057\u3066\u3042\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n$ unzip v3.1.1.zip\r\n<\/pre>\n<p><strong>jekyll<\/strong><br \/>\nBootstrap\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066Ruby\u30d7\u30ed\u30b0\u30e9\u30e0\u306ejekyll\u3067HTML\u3078\u5909\u63db\u3059\u308c\u3070\u3001Web\u30d6\u30e9\u30a6\u30b6\u3067\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u898b\u308c\u3070\u3044\u3044\u306e\u3067\u5fc5\u9808\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002jekyll\u306fRubyGem\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u7c21\u5358\u306b\u3067\u304d\u307e\u3059\u3002ruby, gem\u30b3\u30de\u30f3\u30c9\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3068\u3059\u308b\u3068\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3059\u308c\u3070jekyll\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u3001 bootstrap-3.1.1 \u3078\u79fb\u52d5\u3057\u3066\u3001jekyll serve\u3092\u8d77\u52d5\u3059\u308b\u3068\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3078 http:\/\/localhost:9001 \u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n$ gem install jekyll\r\n$ cd bootstrap-3.1.1\/\r\n$ jekyll serve\r\n<\/pre>\n<p><strong>Node.js<\/strong><br \/>\nNode.js\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306fCentOS6\u3092\u4f7f\u3046\u5834\u5408\u306fepel\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f7f\u3046\u306e\u304c\u7c21\u5358\u3067\u3059\u300232bit\u7248Linux\u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u4e0b\u8a18\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n$ rpm -ivh http:\/\/ftp.riken.jp\/Linux\/fedora\/epel\/6\/i386\/epel-release-6-8.noarch.rpm\r\n<\/pre>\n<p>64bit\u7248Linux\u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u4e0b\u8a18\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n$ rpm -ivh http:\/\/ftp.riken.jp\/Linux\/fedora\/epel\/6\/x86_64\/epel-release-6-8.noarch.rpm\r\n<\/pre>\n<p>epel\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u7528\u610f\u3067\u304d\u305f\u306a\u3089\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306bnodejs\u3068npm\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n$ yum install nodejs npm --enablerepo=epel\r\n<\/pre>\n<p><strong>Grunt\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><br \/>\nGrunt\u304c\u5fc5\u8981\u306a\u3060\u3068\u3044\u3046\u3053\u3068\u306a\u306e\u3067\u3001npm install\u30b3\u30de\u30f3\u30c9\u3067grunt-cli\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n$ npm install -g grunt-cli.\r\n<\/pre>\n<p><strong>npm install\u306e\u5b9f\u884c<\/strong><br \/>\nbootstrap-3.1.1\/package.json \u306b\u5fc5\u8981\u306aNode.js\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u8a18\u8ff0\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u307e\u3059\u3002\u4f9d\u5b58\u95a2\u4fc2\u306e\u554f\u984c\u3067 grunt 0.4.2 \u304c\u5fc5\u8981\u306a\u306e\u3067\u3001\u6b21\u306e\u3088\u3046\u306b package.json \u3092\u4fee\u6b63\u3057\u307e\u3059\u3002\u300c&#8221;grunt&#8221;: &#8220;~0.4.2&#8221;,\u300d\u306e\u6307\u5b9a\u30920.4.2\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n&quot;grunt&quot;: &quot;0.4.2&quot;,\r\n<\/pre>\n<p>\u66f8\u304d\u63db\u3048\u305f\u3089 npm install\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n$ npm install\r\n<\/pre>\n<p><strong>\u914d\u5e03\u7269\u306e\u751f\u6210<\/strong><br \/>\ngrunt\u30b3\u30de\u30f3\u30c9\u3067dist\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u751f\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n$ grunt dist\r\n<\/pre>\n<p><a href=\"http:\/\/lesscss.org\/\">Less.js<\/a>\u3001<a href=\"http:\/\/lisperator.net\/uglifyjs\/\">UglifyJS<\/a>\u3001<a href=\"http:\/\/jshint.com\/\">JSHint<\/a>\u3001<a href=\"http:\/\/qunitjs.com\/\">QUnit<\/a>\u3001<a href=\"http:\/\/phantomjs.org\/\">PhantomJS<\/a>\u3068\u3044\u3063\u305f\u3082\u306e\u3092\u4f7f\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><strong>\u30b5\u30f3\u30d7\u30eb<\/strong><br \/>\nexamples\u304cdocs\u306b\u3042\u308b\u306e\u3067\u3001\u305d\u3053\u304b\u3089\u9069\u5f53\u306b\u597d\u307f\u306e\u3082\u306e\u3092\u9078\u3093\u3067\u4f7f\u3063\u3066\u307f\u308c\u3070\u826f\u3044\u3067\u3057\u3087\u3046\u3002carousel\u3068\u304bJustified nav\u3068\u304bJustified nav\u3068\u304b\u826f\u3055\u305d\u3046\u3067\u3059\u3002\u5c0f\u3055\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u3064\u3044\u3066\u77e5\u308a\u305f\u3044\u306a\u3089\u3001theme\u3092\u53c2\u7167\u3059\u308b\u3068\u7406\u89e3\u3057\u3084\u3059\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p><strong>\u53c2\u8003\u6587\u732e<\/strong><br \/>\n\u66f8\u7c4d\u306f\u3042\u307e\u308a\u306a\u3044\u307f\u305f\u3044\u3067\u3059\u306d\u3002Web\u4e0a\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u8003\u306b\u3059\u308b\u306e\u304c\u826f\u3044\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<ul>\n<li><a type=\"amzn\" asin=\"1449343910\">Bootstrap <\/a><\/li>\n<li><a type=\"amzn\" asin=\"4777517993\">\u306f\u3058\u3081\u3066\u306eBootstrap (I\u30fbO BOOKS)<\/a><\/li>\n<\/ul>\n<div>\n<iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=1449343910&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" height=\"240\" width=\"320\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=4777517993&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" height=\"240\" width=\"320\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Bootstrap3\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u4f7f\u3046\u74b0\u5883\u3092\u7528\u610f\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u304b\u78ba\u8a8d\u3092\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u300cBootstrap\u300d\u304b\u3089\u30a2\u30fc\u30ab\u30a4\u30d6\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002 Download\u306e\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u914d\u5e03\u7248\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u7248\u3001 &hellip; <a href=\"https:\/\/www.hiro345.net\/blogs\/hiro345\/archives\/16191.html\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[577,365],"class_list":["post-16191","post","type-post","status-publish","format-standard","hentry","category-linux","tag-bootstrap","tag-node-js"],"_links":{"self":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/16191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/comments?post=16191"}],"version-history":[{"count":16,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/16191\/revisions"}],"predecessor-version":[{"id":16207,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/16191\/revisions\/16207"}],"wp:attachment":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/media?parent=16191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/categories?post=16191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/tags?post=16191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}