{"id":2911,"date":"2016-08-10T10:00:00","date_gmt":"2016-08-10T01:00:00","guid":{"rendered":"http:\/\/sitest.jp\/blog\/?p=2911"},"modified":"2016-08-10T10:46:44","modified_gmt":"2016-08-10T01:46:44","slug":"gulp%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e8%82%a5%e5%a4%a7%e5%8c%96%e3%82%92%e9%a3%9f%e3%81%84%e6%ad%a2%e3%82%81%e3%82%8b%ef%bc%81%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%88%86%e5%89%b2","status":"publish","type":"post","link":"https:\/\/sitest.jp\/blog\/?p=2911","title":{"rendered":"Gulp\u30d5\u30a1\u30a4\u30eb\u306e\u80a5\u5927\u5316\u3092\u98df\u3044\u6b62\u3081\u308b\uff01\u30d5\u30a1\u30a4\u30eb\u5206\u5272\u30c6\u30af\u30cb\u30c3\u30af"},"content":{"rendered":"<p>Node.js \u306e\u30bf\u30b9\u30af\u30e9\u30f3\u30ca\u30fc\u3001Gulp \u306f\u3068\u3066\u3082\u4fbf\u5229\u3067\u3059\u3002<br \/>\u9759\u7684\u306aWeb\u30b5\u30a4\u30c8\u3092\u4f5c\u308b\u6642\u3082\u65e2\u306b\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u3068\u3063\u3066\u6b20\u304b\u305b\u306a\u3044\u5b58\u5728\u306b\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001Gulp\u3092\u4f7f\u3063\u3066\u3042\u3093\u306a\u4e8b\u3084\u3053\u3093\u306a\u4e8b\u304c\u51fa\u6765\u308b\u304b\u3089\u3068\u3001<br \/>\u6b21\u3005\u3068\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u8db3\u3057\u3066\u3044\u304f\u3068\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u80a5\u5927\u5316\u3057\u3066\u3057\u307e\u3044\u3001<br \/>\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u304c\u975e\u5e38\u306b\u8f9b\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u5f0a\u793e\u30a8\u30f3\u30b8\u30cb\u30a2\u304c\u5b9f\u969b\u306b\u884c\u3063\u3066\u3044\u308b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u5206\u5272\u30c6\u30af\u30cb\u30c3\u30af\u3092\u3054\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">Gulp \u30b3\u30de\u30f3\u30c9\u306e\u6d41\u308c<\/h3>\n<\/div>\n<p>\u4e0b\u8a18\u306f Gulp \u30b3\u30de\u30f3\u30c9\u306e\u4e00\u9023\u306e\u6d41\u308c\u3067\u3059\u3002<\/p>\n<ul style=\"margin-left: 20px;margin-bottom: 20px;font-size: 1.1em;\">\n<li>\uff11\uff0eNode.js\u3068\u3057\u3066 gulpfile.js \u3092\u5b9f\u884c<\/li>\n<li>\uff12\uff0egulp.task \u306e\u5ba3\u8a00\u3092\u8a18\u61b6\u3057\u3066\u30bf\u30b9\u30af\u4e00\u89a7\u306b\u767b\u9332\u3057\u3066\u3044\u304f<\/li>\n<li>\uff13\uff0e\u30b5\u30d6\u30b3\u30de\u30f3\u30c9\u3092\u89e3\u6790\u3057\u3066\u3001\u30bf\u30b9\u30af\u3092\u5b9f\u884c<\/li>\n<\/ul>\n<p>\u666e\u901a\u306b\u300cnode gulpfile.js\u300d\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001<br \/>console.log\u306a\u3089\u306cgulp.task\u3092Gulp\u30b3\u30de\u30f3\u30c9\u304c\u76e3\u8996\u3057\u3066\u3044\u308b\u3068\u30a4\u30e1\u30fc\u30b8\u3057\u3084\u3059\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306d\u3002<br \/>\u666e\u901a\u306eNode.js\u3068\u540c\u3058\u30a4\u30e1\u30fc\u30b8\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u5206\u5272\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">\u30d5\u30a1\u30a4\u30eb\u5206\u5272\u30c6\u30af\u30cb\u30c3\u30af<\/h3>\n<\/div>\n<p>\u4eca\u56de\u3054\u7d39\u4ecb\u3059\u308b\u30c6\u30af\u30cb\u30c3\u30af\u306f\u4e0b\u8a18\u306e3\u3064\u3067\u3059\u3002<\/p>\n<ul style=\"margin-left: 20px;margin-bottom: 20px;font-size: 1.1em;\">\n<li>\uff11\uff0e\u30bf\u30b9\u30af\u6bce\u306b\u30d5\u30a1\u30a4\u30eb\u5206\u5272<\/li>\n<li>\uff12\uff0efs.readdirSync \u3068\u4f75\u7528\u3057\u3066\u4fdd\u5b88\u306e\u624b\u9593\u3092\u6e1b\u3089\u3059<\/li>\n<li>\uff13\uff0eAltJS \u3068\u4f75\u7528\u3057\u3066\u30b3\u30fc\u30c9\u306e\u8a18\u8ff0\u91cf\u3092\u6e1b\u3089\u3059<\/li>\n<\/ul>\n<p>\u4eca\u56de\u306f<a href=\"https:\/\/github.com\/m-ohata\/gulpfile-example\/tree\/master\/project\" title=\"null\" rel=\"nofollow\" target=\"_blank\">\u67b6\u7a7a\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8<\/a>\u3092\u7528\u610f\u3057\u307e\u3057\u305f\u3002<br \/>\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306egulpfile.js\u306b\u5bfe\u3057\u3066\u3053\u308c\u3089\u306e\u30c6\u30af\u30cb\u30c3\u30af\u30921\u3064\u305a\u3064\u5f53\u3066\u306f\u3081\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">\u67b6\u7a7a\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u72b6\u6cc1<\/h3>\n<\/div>\n<p>\u3042\u306a\u305f\u306fHTML, CSS, JavaScript\u3067\u69cb\u6210\u3055\u308c\u305f\u9759\u7684\u306aWeb\u30b5\u30a4\u30c8\u3092\u904b\u55b6\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\u9759\u7684\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u3068\u3057\u3066Jade, Stylus, CoffeeScript\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u5404\u7a2e\u30d5\u30a1\u30a4\u30eb\u3092\u5410\u304d\u51fa\u3059\u3088\u3046\u3001<br \/>Gulp\u3092\u5c0e\u5165\u3057\u3066\u305d\u306e\u4ed5\u7d44\u307f\u3092\u69cb\u7bc9\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3068\u3042\u308b\u65e5\u3001\u7279\u8a2d\u30b5\u30a4\u30c8\u3068\u3057\u3066\u5168\u304f\u5225\u30c7\u30b6\u30a4\u30f3\u306e\u30da\u30fc\u30b8\u30922\u3064\u516c\u958b\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\u305e\u308c\u305e\u308c\u300c\u30d7\u30ec\u30d3\u30e5\u30fc\u6a5f\u80fd\u300d\u3068\u300c\u30ec\u30dd\u30fc\u30c8\u6a5f\u80fd\u300d\u3068\u3044\u3046\u540d\u524d\u3067\u3059\u306e\u3067\u3001\u300cpreview, report\u300d\u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u3092\u5207\u3063\u3066\u7ba1\u7406\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\u307e\u305f\u3001CoffeeScript \u3092\u3088\u308a\u5f37\u5316\u3057\u305f LiveScript \u3068\u3044\u3046 AltJS \u3082\u5229\u7528\u3057\u305f\u3044\u3068\u65e5\u9803\u304b\u3089\u8003\u3048\u3066\u3044\u307e\u3059\u3002<br \/>\u65e2\u5b58\u306e\u30d5\u30a1\u30a4\u30eb\u3082\u591a\u6570\u5b58\u5728\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u66ab\u304f\u306f2\u3064\u306eAltJS\u30d5\u30a1\u30a4\u30eb\u304c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5185\u306b\u540c\u5c45\u3055\u305b\u3066\u3001\u5f90\u3005\u306b\u4e57\u308a\u63db\u3048\u3066\u3044\u3053\u3046\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u6bb5\u968e\u306e<a href=\"https:\/\/github.com\/m-ohata\/gulpfile-example\/blob\/master\/project\/gulpfile.js\" title=\"null\" rel=\"nofollow\" target=\"_blank\">gulpfile.js\u304c\u3053\u3061\u3089<\/a>\u3067\u3059\u3002<br \/>200\u884c\u3092\u8d85\u3048\u308b\u91cd\u91cf\u7d1agulpfile.js\u3092\u524d\u306b\u3046\u3093\u3056\u308a\u3057\u3066\u304d\u307e\u3057\u305f\u3002\u3082\u3046gulpfile.js\u306f\u89e6\u308a\u305f\u304f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\u3072\u3069\u3044\u6709\u69d8\u306a\u306e\u306b\u3001JavaScript\u30d5\u30a1\u30a4\u30eb\u3084CSS\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u6570\u304c\u591a\u304f\u3066\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u60aa\u3044\u304b\u3089\u30011\u30d5\u30a1\u30a4\u30eb\u306b\u307e\u3068\u3081\u3066\u6b32\u3057\u3044\u3068\u3044\u3046\u4f9d\u983c\u307e\u3067\u51fa\u3066\u304d\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u307e\u307e\u3067\u306f\u6d41\u77f3\u306b\u30d7\u30e9\u30b0\u30a4\u30f3\u3084\u30bf\u30b9\u30af\u306e\u8ffd\u52a0\u304c\u96e3\u3057\u3044\u306e\u3067\u3001<br \/>\u4e00\u5ea6\u30d5\u30a1\u30a4\u30eb\u5206\u5272\u3092\u884c\u3063\u3066\u3053\u308c\u3089\u306e\u6539\u4fee\u306b\u5099\u3048\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">1. \u30bf\u30b9\u30af\u6bce\u306b\u30d5\u30a1\u30a4\u30eb\u5206\u5272<\/h3>\n<\/div>\n<p>Gulp \u306f\u30bf\u30b9\u30af\u6bce\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u5206\u5272\u3057\u3084\u3059\u3044\u3088\u3046\u8a2d\u8a08\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\u5404\u30bf\u30b9\u30af\u306e\u4e00\u3064\u4e00\u3064\u306e\u52d5\u4f5c\u306f\u72ec\u7acb\u3057\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>gulpfile.js\u30d5\u30a1\u30a4\u30eb\u306e\u5b9f\u884c\u304c\u5b8c\u4e86\u3057\u305f\u6bb5\u968e\u3067<br \/>gulp.task\u30e1\u30bd\u30c3\u30c9\u5b9f\u884c\u3057\u3066\u5ba3\u8a00\u3055\u308c\u305f\u5168\u30bf\u30b9\u30af\u304c\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<br \/>require\u3057\u305f\u5148\u306e\u3001\u5916\u90e8\u306eJavaScript\u30d5\u30a1\u30a4\u30eb\u5185\u3067gulp.task\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u3066\u3082\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u65e9\u901f<a href=\"https:\/\/github.com\/m-ohata\/gulpfile-example\/tree\/master\/answers\/technique-1\" title=\"null\" rel=\"nofollow\" target=\"_blank\">\u5148\u307b\u3069\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u5bfe\u3057\u3066\u3053\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3092\u5f53\u3066\u306f\u3081\u307e\u3057\u305f<\/a>\u3002<br \/>\u4fee\u6b63\u5f8c\u306e<a href=\"https:\/\/github.com\/m-ohata\/gulpfile-example\/blob\/master\/answers\/technique-1\/gulpfile.js\" title=\"null\" rel=\"nofollow\" target=\"_blank\">gulpfile.js<\/a>\u306f\u3068\u3066\u3082\u30b7\u30f3\u30d7\u30eb\u306a\u5f62\u5f0f\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\u5404\u30bf\u30b9\u30af\u306fgulp\u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u3066\u3001\u300c\u30bf\u30b9\u30af\u540d.js\u300d\u306e\u5f62\u5f0f\u3067\u5206\u5272\u3057\u3066\u7ba1\u7406\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><code class=\"lang-JavaScript\">[&quot;clean&quot;, &quot;jade&quot;, &quot;stylus&quot;, &quot;coffee&quot;, &quot;livescript&quot;, &quot;build&quot;, &quot;watch&quot;, &quot;default&quot;]\n.forEach(function(it){\n  require(&quot;.\/gulp\/&quot;+it+&quot;.js&quot;);\n});\n<\/code><\/pre>\n<p>gulp\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u683c\u7d0d\u3057\u307e\u3057\u305f\u304c\u3001<br \/>\u5404\u30bf\u30b9\u30af\u306esrc\u306fgulpfile.js\u304c\u8d77\u70b9\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u5404\u30bf\u30b9\u30af\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u5909\u66f4\u3057\u3066\u3044\u307e\u305b\u3093\u3002<br \/>\u4e0b\u3067\u5b9f\u969b\u306b\u52d5\u4f5c\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u304c\u751f\u6210\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre><code class=\"lang-Bash\">$ gulp --tasks\n[13:58:59] Using gulpfile ~\/xxx\/gulpfile-example\/answers\/technique-1\/gulpfile.js\n[13:58:59] Tasks for ~\/xxx\/gulpfile-example\/answers\/technique-1\/gulpfile.js\n[13:58:59] \u251c\u2500\u2500 clean\n[13:58:59] \u251c\u2500\u2500 jade:app\n[13:58:59] \u251c\u2500\u2500 jade:preview\n[13:58:59] \u251c\u2500\u2500 jade:report\n[13:58:59] \u251c\u2500\u252c jade\n[13:58:59] \u2502 \u251c\u2500\u2500 jade:app\n[13:58:59] \u2502 \u251c\u2500\u2500 jade:preview\n[13:58:59] \u2502 \u2514\u2500\u2500 jade:report\n[13:58:59] \u251c\u2500\u2500 stylus:app\n[13:58:59] \u251c\u2500\u2500 stylus:preview\n[13:58:59] \u251c\u2500\u2500 stylus:report\n[13:58:59] \u251c\u2500\u252c stylus\n[13:58:59] \u2502 \u251c\u2500\u2500 stylus:app\n[13:58:59] \u2502 \u251c\u2500\u2500 stylus:preview\n[13:58:59] \u2502 \u2514\u2500\u2500 stylus:report\n[13:58:59] \u251c\u2500\u2500 coffee\n[13:58:59] \u251c\u2500\u2500 livescript\n[13:58:59] \u251c\u2500\u2500 build\n[13:58:59] \u251c\u2500\u2500 watch\n[13:58:59] \u2514\u2500\u2500 default\n\n$ gulp build\n[14:01:14] Using gulpfile ~\/work\/blog\/gulpfile-example\/answers\/technique-1\/gulpfile.js\n[14:01:14] Starting &#39;build&#39;...\n  ...\u4e2d\u7565...\n[14:01:14] Finished &#39;build&#39; after 84 ms\n[14:01:15] Using .\/src\/scripts\/coffee.coffee\n[14:01:15] Using .\/src\/scripts\/livescript.ls\n[14:01:15] Using .\/src\/templates\/preview\/index.jade\n[14:01:15] Using .\/src\/templates\/index.jade\n[14:01:15] Using .\/src\/templates\/report\/index.jade\n[14:01:15] Using .\/src\/stylesheets\/report\/css.styl\n[14:01:15] Using .\/src\/stylesheets\/css.styl\n[14:01:15] Using .\/src\/stylesheets\/preview\/css.styl\n\n$ find . | grep &#39;\\.\/dist\/&#39;\n.\/dist\/css\n.\/dist\/css\/app\n.\/dist\/css\/app\/css.css\n.\/dist\/css\/preview\n.\/dist\/css\/preview\/css.css\n.\/dist\/css\/report\n.\/dist\/css\/report\/css.css\n.\/dist\/html\n.\/dist\/html\/app\n.\/dist\/html\/app\/index.html\n.\/dist\/html\/preview\n.\/dist\/html\/preview\/index.html\n.\/dist\/html\/report\n.\/dist\/html\/report\/index.html\n.\/dist\/scripts\n.\/dist\/scripts\/coffee.js\n.\/dist\/scripts\/livescript.js\n<\/code><\/pre>\n<p>\u3053\u308c\u3067\u65b0\u3057\u3044\u30d7\u30e9\u30b0\u30a4\u30f3\u3084\u30bf\u30b9\u30af\u306e\u8ffd\u52a0\u3082\u6016\u304f\u306f\u3042\u308a\u307e\u305b\u3093\u306d\u3002<br \/>\u3057\u304b\u3057\u3001\u30bf\u30b9\u30af\u304c\u5897\u3048\u305f\u5834\u5408\u306f\u6bce\u56degulpfile.js\u3092\u7de8\u96c6\u3059\u308b\u3068\u3044\u3046\u4e00\u624b\u9593\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\u3061\u3087\u3063\u3068\u3057\u305f\u624b\u9593\u3067gulpfile.js\u304c\u30e1\u30f3\u30c6\u3044\u3089\u305a\u3068\u306a\u308b\u306e\u3067\u3001\u6b21\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3082\u30bb\u30c3\u30c8\u3067\u4f7f\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">2. fs.readdirSync \u3068\u4f75\u7528\u3057\u3066\u4fdd\u5b88\u306e\u624b\u9593\u3092\u6e1b\u3089\u3059<\/h3>\n<\/div>\n<p>Node.js\u306b\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u66f8\u304d\u3092\u53f8\u308b<a href=\"https:\/\/nodejs.org\/api\/fs.html\" title=\"null\" rel=\"nofollow\" target=\"_blank\">fs\u30e9\u30a4\u30d6\u30e9\u30ea<\/a>\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u5b9f\u88c5\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>gulpfile.js\u3068\u540c\u3058\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306btest.js\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u52d5\u304d\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/><a href=\"https:\/\/nodejs.org\/api\/fs.html#fs_fs_readdirsync_path_options\" title=\"null\" rel=\"nofollow\" target=\"_blank\">\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u901a\u308a<\/a>\u306b\u300c.\u300d\u3084\u300c..\u300d\u3092\u6392\u9664\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u4e00\u89a7\u306e\u914d\u5217\u304c\u53d6\u5f97\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<pre><code class=\"lang-Bash\">$ cat test.js\nvar fs = require(&quot;fs&quot;);\n\nfs\n  .readdirSync(__dirname+&quot;\/gulp&quot;)\n  .forEach(function(it){\n    console.log(it);\n  });\n\n$ node test.js\nbuild.js\nclean.js\ncoffee.js\ndefault.js\njade.js\nlivescript.js\nstylus.js\nwatch.js\n<\/code><\/pre>\n<p>\u3053\u3061\u3089\u306f<a href=\"https:\/\/github.com\/m-ohata\/gulpfile-example\/tree\/master\/answers\/technique-2\" title=\"null\" rel=\"nofollow\" target=\"_blank\">\u4e0a\u8a18\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3092\u53cd\u6620\u3057\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8<\/a>\u3067\u3059\u3002<br \/>\u5b9f\u969b\u306e<a href=\"https:\/\/github.com\/m-ohata\/gulpfile-example\/blob\/master\/answers\/technique-2\/gulpfile.js\" title=\"null\" rel=\"nofollow\" target=\"_blank\">gulpfile.js<\/a>\u3067\u306f\u30a8\u30c7\u30a3\u30bf\u3084\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u7b49\u3067\u30bf\u30b9\u30af\u306e\u7de8\u96c6\u3092\u3057\u3066\u3044\u308b\u9593\u306b\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u304c\u6df7\u5165\u3057\u3066\u3057\u307e\u3046\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001<br \/>\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u672b\u5c3e\u304c\u300c.js\u300d\u3067\u7d42\u308f\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u307f\u3092\u63a1\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">3. AltJS \u3068\u4f75\u7528\u3057\u3066\u30b3\u30fc\u30c9\u306e\u8a18\u8ff0\u91cf\u3092\u6e1b\u3089\u3059<\/h3>\n<\/div>\n<p><a href=\"http:\/\/qiita.com\/cognitom\/items\/4468723674199cf5f9a5\" title=\"null\" rel=\"nofollow\" target=\"_blank\">gulp 3.7 \u30ea\u30ea\u30fc\u30b9: CoffeeScript\u30cd\u30a4\u30c6\u30a3\u30d6\u306b &#8211; Qiita<\/a><\/p>\n<p>package.json\u306edevDependencies\u306b\u8a18\u8f09\u3059\u308c\u3070\u826f\u3044\u3068\u306e\u3053\u3068\u3001<br \/>\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u69d8\u5f0f\u306fGulp\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u8aad\u307f\u8fbc\u3093\u3067\u3044\u308binterpret\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u8f09\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>2016\u5e746\u6708\u73fe\u5728\u306eGulp\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f3.9.1\u3067\u3059\u3002<br \/><a href=\"https:\/\/github.com\/gulpjs\/gulp\/blob\/master\/CHANGELOG.md\" title=\"null\" rel=\"nofollow\" target=\"_blank\">\u30ea\u30ea\u30fc\u30b9\u30ce\u30fc\u30c8<\/a>\u306b\u3088\u308b\u3068Gulp 3.9\u306b\u4f34\u3044\u4f9d\u5b58\u3057\u3066\u3044\u308binterpret\u304c\u66f4\u65b0\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<br \/>\u5b9f\u969b\u306bGulp3.9.1\u304c\u4f9d\u5b58\u3057\u3066\u3044\u308binterprent\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u305f\u6240\u3001<a href=\"https:\/\/github.com\/js-cli\/js-interpret\/blob\/v1.0.0\/index.js\" title=\"null\" rel=\"nofollow\" target=\"_blank\">1.0.0<\/a>\u3067\u3057\u305f\u3002<br \/>Qiita\u306e\u8a18\u4e8b\u304b\u30891\u5e74\u9593\u3067TypeScript\u3084babel\u306b\u3082\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u4e8b\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>\u30b0\u30e9\u30c3\u30c9\u30ad\u30e5\u30fc\u30d6\u3067\u306fLiveScript\u3092\u6271\u3063\u3066\u958b\u767a\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001<br \/><a href=\"https:\/\/github.com\/m-ohata\/gulpfile-example\/tree\/master\/answers\/technique-3\" title=\"null\" rel=\"nofollow\" target=\"_blank\">\u3053\u306e\u3088\u3046\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u66f8\u304d\u63db\u3048\u307e\u3057\u305f<\/a>\u3002<\/p>\n<p>Gulp\u306f\u6027\u8cea\u4e0a\u3001CoffeeScript\u3084LiveScript\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u306e\u8a18\u8ff0\u91cf\u304c\u6e1b\u308bAltJS\u3068\u306e\u76f8\u6027\u304c\u826f\u3044\u3067\u3059\u3002<br \/>\u7279\u306bCoffeeScript\u306fJavaScript\u304c\u8aad\u307f\u66f8\u304d\u51fa\u6765\u308b\u4eba\u306a\u3089\u3070\u3059\u3050\u306b\u5165\u3063\u3066\u3044\u3051\u308b\u6577\u5c45\u306e\u4f4e\u3055\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\u7a4d\u6975\u7684\u306b\u691c\u8a0e\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">\u307e\u3068\u3081<\/h3>\n<\/div>\n<p>\u3044\u304b\u304c\u3067\u3057\u305f\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u79c1\u3082\u4ee5\u524dgulpfile.js\u306e\u80a5\u5927\u5316\u3067\u82e6\u3057\u307f\u307e\u3057\u305f\u304c\u3001<br \/>\u73fe\u5728\u306f\u3053\u306e\u3088\u3046\u306a\u30c6\u30af\u30cb\u30c3\u30af\u306b\u3088\u308a\u7d30\u5206\u5316\u3059\u308b\u3053\u3068\u306b\u6210\u529f\u3057\u3001\u3068\u3066\u3082\u4f5c\u696d\u3057\u3084\u3059\u304f\u611f\u3058\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u3001\u3053\u306e\u8a18\u4e8b\u304c\u304a\u5f79\u306b\u7acb\u3066\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<br \/>\u4ee5\u4e0a\u3001\u300cGulp\u30d5\u30a1\u30a4\u30eb\u306e\u80a5\u5927\u5316\u3092\u98df\u3044\u6b62\u3081\u308b\uff01\u30d5\u30a1\u30a4\u30eb\u5206\u5272\u30c6\u30af\u30cb\u30c3\u30af\u300d\u3067\u3057\u305f\u3002<br \/>\u6700\u5f8c\u307e\u3067\u8aad\u3093\u3067\u3044\u305f\u3060\u304d\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Node.js \u306e\u30bf\u30b9\u30af\u30e9\u30f3\u30ca\u30fc\u3001Gulp \u306f\u3068\u3066\u3082\u4fbf\u5229\u3067\u3059\u3002\u9759\u7684\u306aWeb\u30b5\u30a4\u30c8\u3092\u4f5c\u308b\u6642\u3082\u65e2\u306b\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u3068\u3063\u3066\u6b20\u304b\u305b\u306a\u3044\u5b58\u5728\u306b\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u3002 \u3057\u304b\u3057\u3001Gulp\u3092\u4f7f\u3063\u3066\u3042\u3093\u306a\u4e8b\u3084\u3053\u3093\u306a\u4e8b\u304c\u51fa\u6765\u308b\u304b\u3089\u3068\u3001\u6b21\u3005\u3068\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u8db3\u3057\u3066\u3044\u304f\u3068\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u80a5\u5927\u5316\u3057\u3066\u3057\u307e\u3044\u3001\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u304c\u975e\u5e38\u306b\u8f9b\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002 \u305d\u3053\u3067\u3001\u5f0a\u793e\u30a8\u30f3\u30b8\u30cb\u30a2\u304c\u5b9f\u969b\u306b\u884c\u3063\u3066\u3044\u308b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u5206\u5272\u30c6\u30af\u30cb\u30c3\u30af\u3092\u3054\u7d39\u4ecb\u3057\u3066\u3044 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2913,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[27],"tags":[],"acf":false,"_links":{"self":[{"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/posts\/2911"}],"collection":[{"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/comments?post=2911"}],"version-history":[{"count":7,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/posts\/2911\/revisions"}],"predecessor-version":[{"id":6831,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/posts\/2911\/revisions\/6831"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/media\/2913"}],"wp:attachment":[{"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/media?parent=2911"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/categories?post=2911"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/tags?post=2911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}