{"id":69,"date":"2015-05-14T14:58:00","date_gmt":"2015-05-14T05:58:00","guid":{"rendered":"https:\/\/jikoman.sin-cos.com\/blog\/?p=69"},"modified":"2015-05-14T14:58:00","modified_gmt":"2015-05-14T05:58:00","slug":"google-developers5","status":"publish","type":"post","link":"https:\/\/jikoman.sin-cos.com\/blog\/2015\/05\/google-developers5\/","title":{"rendered":"Google Developers\u306b\u3066(5)"},"content":{"rendered":"<p>&gt; MAMP\u306eApache\u306e\u30eb\u30fc\u30c8\u30d5\u30a9\u30eb\u30c0\u3092app\u30d5\u30a9\u30eb\u30c0\u3084dist\u30d5\u30a9\u30eb\u30c0\u306b\u3059\u308c\u3070\u826f\u3044\u306e\u304b\uff1f<br \/>\n\u306a\u3093\u304b\u9055\u3046\u6c17\u304c\u3059\u308b\u306a\u3002\u30e2\u30e4\u3063\u3068\uff01<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u7d9a\u304d\u3002<\/p>\n<p>browserSync\u306f\u3001PHP\u306b\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001PHP\u30d5\u30a1\u30a4\u30eb\u304c\u5909\u66f4\u3055\u308c\u305f\u3089\u3001Proxy\u7d4c\u7531\u3067MAMP\u306e\u30da\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308c\u3070\u3044\u3044\u3089\u3057\u3044\u3002<\/p>\n<p>\u3067\u3001Web starter kit\u306e&#8221;gulpfile.js&#8221;\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7de8\u96c6\u3002<\/p>\n<p>\/\/ Watch files for changes &amp; reload<br \/>gulp.task(&#8216;serve&#8217;, [&#8216;styles&#8217;], function () {<br \/>&nbsp; browserSync({<br \/>&nbsp; &nbsp; notify: false,<br \/>&nbsp; &nbsp; \/\/ Customize the BrowserSync console logging prefix<br \/>&nbsp; &nbsp; logPrefix: &#8216;WSK&#8217;,<br \/>&nbsp; &nbsp; \/\/ Run as an https by uncommenting &#8216;https: true&#8217;<br \/>&nbsp; &nbsp; \/\/ Note: this uses an unsigned certificate which on first access<br \/>&nbsp; &nbsp; \/\/ &nbsp; &nbsp; &nbsp; will present a certificate warning in the browser.<br \/>&nbsp; &nbsp; \/\/ https: true,<br \/>&nbsp; &nbsp; \/\/server: [&#8216;.tmp&#8217;, &#8216;app&#8217;],<br \/>&nbsp; &nbsp; \/\/ PHP\u306e\u30da\u30fc\u30b8\u306b\u5bfe\u5fdc\u3059\u308b\u305f\u3081\u3001Proxy\u306e\u8a2d\u5b9a\u3092\u884c\u3046<br \/>&nbsp; &nbsp; proxy: &#8220;localhost:8888&#8221;,<br \/>&nbsp; &nbsp; \/\/ external \u6307\u5b9a\u3059\u308b\u3068\u3001\u5b9f\u884c\u6642\u306eURL\u304c\u5916\u90e8IP\u30a2\u30c9\u30ec\u30b9\u3067\u958b\u304f<br \/>&nbsp; &nbsp; \/\/external<br \/>&nbsp; });<br \/>&nbsp; gulp.watch([&#8216;app\/**\/*.html&#8217;], reload);<br \/>&nbsp; gulp.watch([&#8216;app\/styles\/**\/*.{scss,css}&#8217;], [&#8216;styles&#8217;, reload]);<br \/>&nbsp; gulp.watch([&#8216;app\/scripts\/**\/*.js&#8217;], [&#8216;jshint&#8217;]);<br \/>&nbsp; gulp.watch([&#8216;app\/images\/**\/*&#8217;], reload);<br \/>&nbsp; gulp.watch([&#8216;app\/**\/*.php&#8217;], reload);});<br \/>\n$ gulp serve\u3067\u30b5\u30fc\u30d0\u8d77\u52d5\u3002<br \/>\nhttp:\/\/localhost:3000\/basic.php<br \/>\n\u3068\u304b\u306eURL\u3092\u958b\u3044\u3066\u307f\u308b\u3002<br \/>\nbasic.php\u3092\u7de8\u96c6\u3057\u3066\u4fdd\u5b58\u3059\u308c\u3070\u3001\u81ea\u52d5\u7684\u306b\u66f4\u65b0\u3055\u308c\u308b\u3002\u3084\u3063\u305f\uff01\uff01<\/p>\n<p>\u3067\u3082\u3001index.html\u306ecss\u304c\u8aad\u307f\u8fbc\u307e\u308c\u306a\u3044\uff1f<br \/>\n.tmp\u30d5\u30a9\u30eb\u30c0\u304c\u5fc5\u8981\u306a\u306e\uff1f<\/p>\n<div>\n\u8abf\u3079\u308b\u304b\u3002<br \/>\n<a href=\"http:\/\/www.browsersync.io\/docs\/\">http:\/\/www.browsersync.io\/docs\/<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>&gt; MAMP\u306eApache\u306e\u30eb\u30fc\u30c8\u30d5\u30a9\u30eb\u30c0\u3092app\u30d5\u30a9\u30eb\u30c0\u3084dist\u30d5\u30a9\u30eb\u30c0\u306b\u3059\u308c\u3070\u826f\u3044\u306e\u304b\uff1f \u306a\u3093\u304b\u9055\u3046\u6c17\u304c\u3059\u308b\u306a\u3002\u30e2\u30e4\u3063\u3068\uff01 \u3068\u3044\u3046\u3053\u3068\u3067\u3001\u7d9a\u304d\u3002 browserSync\u306f\u3001PHP\u306b\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001PHP [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[130],"tags":[],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-130"],"_links":{"self":[{"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":0,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"wp:attachment":[{"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jikoman.sin-cos.com\/blog\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}