{"id":12311,"date":"2014-12-06T00:00:31","date_gmt":"2014-12-05T15:00:31","guid":{"rendered":"http:\/\/labs.gree.jp\/blog\/?p=12311"},"modified":"2014-12-08T11:24:54","modified_gmt":"2014-12-08T02:24:54","slug":"rejs-vanilla-js-module-builder%e3%81%ae%e7%b4%b9%e4%bb%8b","status":"publish","type":"post","link":"https:\/\/labs.gree.jp\/blog\/2014\/12\/12311\/","title":{"rendered":"rejs - Vanilla JS Module Builder\u306e\u7d39\u4ecb"},"content":{"rendered":"<p>\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u306f GREE Advent Calendar 2014 6\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002<\/p>\n<p>\u7686\u3055\u3093\u3053\u3093\u306b\u3061\u306f\uff01Reflow\u3057\u3066\u307e\u3059\u304b\uff1f<br \/>\n13\u5352\u3067Art\u90e8\u306e\u548c\u667a(<a href=\"https:\/\/github.com\/watilde\">@watilde<\/a>)\u3067\u3059\u3002\u696d\u52d9\u3067\u306f\u3001GREE Platform\u3067\u4f7f\u308f\u308c\u3066\u3044\u308b\u5185\u88fd JS\/CSS FrameWork\u306e\u30b3\u30df\u30c3\u30bf\u30fc\u3068\u304b\u3057\u3066\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3048\u304c\u304d<\/h2>\n<p>\u5f0a\u793e\u306f\u3001\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u306e\u9ece\u660e\u671f\u3088\u308a\u30d6\u30e9\u30a6\u30b6\u5411\u3051\u306e\u30a2\u30d7\u30ea\u3092\u958b\u767a\u3057\u3066\u304d\u307e\u3057\u305f\u3002\u74b0\u5883\u306e\u5909\u5316\u3078\u306e\u8ffd\u5f93\u3084\u3001\u5ea6\u91cd\u306a\u308b\u6a5f\u80fd\u8ffd\u52a0\u3067JavaScript\u306e\u30b3\u30fc\u30c9\u306e\u898f\u6a21\u306f\u80a5\u5927\u5316\u3057\u3066\u3044\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u5f79\u5272\u3054\u3068\u306b\u30e2\u30b8\u30e5\u30fc\u30eb\u5316\u3092\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u5206\u5272\u3092\u884c\u308f\u306a\u3044\u3068\u53ef\u8aad\u6027\u304c\u843d\u3061\u3001\u3058\u308f\u3058\u308f\u3068\u4fdd\u5b88\u30b3\u30b9\u30c8\u304c\u4e0a\u304c\u3063\u3066\u3044\u304d\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u53e4\u304f\u304b\u3089\u3042\u308b\u79d8\u4f1d\u306e\u30bd\u30fc\u30b9\u306fAMD\u3084CommonJS\u3067\u66f8\u304b\u308c\u3066\u3044\u306a\u3044Vanilla\u306aJS\u3067\u3059\u3002r.js\u3001Browserify\u3001Webpack \u306a\u3069\u306e\u30c4\u30fc\u30eb\u3067\u30e2\u30b8\u30e5\u30fc\u30eb\u5316\u3059\u308b\u306b\u3082\u3001\u66f8\u304d\u63db\u3048\u304c\u5927\u91cf\u306b\u767a\u751f\u3057\u3066\u5c0e\u5165\u3059\u308b\u306e\u306f\u3068\u3063\u3066\u3082\u2461\u5927\u5909\u3067\u3059\u3002<\/p>\n<p>\u305d\u3093\u306a\u80cc\u666f\u304b\u3089\u3001Vanilla JS\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u5316\u3092\u884c\u3046\u7b2c\u4e00\u6b69\u3068\u3057\u3066\u3001<strong>rejs<\/strong>\u3068\u547c\u3070\u308c\u308bVanilla JS\u306eModule Builder\u304c\u30b0\u30ea\u30fc\u3067\u306f\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u4eca\u56de\u306f\u3001\u305d\u3093\u306a<strong>rejs<\/strong>\u306e\u7d39\u4ecb\u3092\u884c\u3044\u307e\u3059\uff01<\/p>\n<h2>rejs - Vanilla JS Module Builder\u306e\u7d39\u4ecb<\/h2>\n<p>rejs\u306f\u3001\u30b0\u30ea\u30fc\u306b\u6240\u5c5e\u3059\u308bJason Parrott\u306b\u3088\u3063\u3066\u958b\u767a\u3055\u308c\u3066\u3044\u308bOSS\u306aVanilla JS Module Builder\u3067\u3059\u3002\u30b0\u30ea\u30fc\u3067\u306f\u3001\u4e00\u90e8\u306e\u30b2\u30fc\u30e0\u3084\u5185\u88fd\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u958b\u767a\u3067\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>URL: <a title=\"https:\/\/github.com\/Moncader\/rejs\" href=\"https:\/\/github.com\/Moncader\/rejs\">https:\/\/github.com\/Moncader\/rejs<\/a><\/p>\n<p><strong>rejs<\/strong>\u306e\u8aac\u660e\u3092<em>Vanilla JS Module Builder<\/em>\u3068\u3057\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u5206\u304b\u308a\u3084\u3059\u304f\u8a00\u3046\u3068\u300c\u30d5\u30a1\u30a4\u30eb\u306e\u30ea\u30b9\u30c8\u3092\u305d\u306e\u5185\u5bb9\u306b\u57fa\u3065\u3044\u3066\u30bd\u30fc\u30c8\u3057\u3066\u304f\u308c\u308b\u30c4\u30fc\u30eb\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<div id=\"attachment_12438\" style=\"width: 543px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/a.001.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-12438\" class=\"wp-image-12438 size-medium\" src=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/a.001-533x400.jpg\" alt=\"\u30d5\u30a1\u30a4\u30eb\u306e\u30ea\u30b9\u30c8\u3092\u305d\u306e\u5185\u5bb9\u306b\u57fa\u3065\u3044\u3066\u30bd\u30fc\u30c8\" width=\"533\" height=\"400\" srcset=\"https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/a.001-533x400.jpg 533w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/a.001-266x200.jpg 266w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/a.001-830x622.jpg 830w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/a.001.jpg 1024w\" sizes=\"auto, (max-width: 533px) 100vw, 533px\" \/><\/a><p id=\"caption-attachment-12438\" class=\"wp-caption-text\">\u30d5\u30a1\u30a4\u30eb\u306e\u30ea\u30b9\u30c8\u3092\u305d\u306e\u5185\u5bb9\u306b\u57fa\u3065\u3044\u3066\u30bd\u30fc\u30c8<\/p><\/div>\n<p>\u660e\u78ba\u306bexport\/import\u306e\u6a5f\u80fd\u304c\u3042\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001export\u306f\u300c\u30b0\u30ed\u30fc\u30d0\u30eb\u306b\u30d7\u30ed\u30d1\u30c6\u30a3\u751f\u3084\u3059\u300d\u3067\u3001import\u306f\u300c\u30d5\u30a1\u30a4\u30eb\u306b\u5b58\u5728\u3057\u306a\u3044\u3082\u306e\u3092\u53c2\u7167\u3059\u308b\u300d\u306a\u306e\u3067<strong>Module Builder<\/strong>\u3068\u3057\u3066\u6210\u7acb\u3057\u3066\u3044\u308b\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u4ed5\u7d44\u307f<\/h3>\n<p>\u7c21\u5358\u306b\u51e6\u7406\u306e\u6d41\u308c\u306b\u3064\u3044\u3066<\/p>\n<ol>\n<li>\u30d5\u30a1\u30a4\u30eb\u306e\u540d\u524d\u3068\u30bd\u30fc\u30b9\u3092\u53d7\u3051\u53d6\u308b<\/li>\n<li>acorn\u3092\u4f7f\u3044\u3001\u30d5\u30a1\u30a4\u30eb\u3054\u3068\u306b\u30bd\u30fc\u30b9\u306eAST\u3092\u53d6\u5f97<\/li>\n<li>AST\u306eNode\u3054\u3068\u306b\u30d5\u30a1\u30a4\u30eb\u306eGlobal Scope\u306b\u3042\u308b\u5909\u6570\u306e\u8a73\u7d30\u3068\u305d\u306e\u72b6\u614b\u3092\u4fdd\u6301<\/li>\n<li>\u30d5\u30a1\u30a4\u30eb\u306eGlobal Scope\u3054\u3068\u306b\u3001\u5185\u90e8\u3067\u5b9a\u7fa9\u3057\u3066\u3044\u308b\u5909\u6570\u3068\u4f7f\u7528\u3057\u3066\u3044\u308b\u5909\u6570\u3092\u89e3\u6790<\/li>\n<li>\u4ee5\u4e0a\u3092\u5143\u306b\u3001\u4f9d\u5b58\u95a2\u4fc2\u3092\u89e3\u6c7a\u3059\u308b\u3088\u3046\u306b\u5404Node\u3092\u9806\u5e8f\u4ed8\u3051\u3057\u3066\u30bd\u30fc\u30c8<\/li>\n<\/ol>\n<h2>\u5b9f\u969b\u306b\u4f7f\u3063\u3066\u307f\u308b<\/h2>\n<p>rejs\u3092\u4f7f\u3046\u306b\u306f\u30013\u3064\u306e\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>rejs\u306ecli<\/li>\n<li>grunt\u30d7\u30e9\u30b0\u30a4\u30f3<\/li>\n<li>gulp\u30d7\u30e9\u30b0\u30a4\u30f3<\/li>\n<\/ul>\n<p>\u305e\u308c\u305e\u308c\u3001\u5b9f\u969b\u306b\u4f7f\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u69cb\u6210\u4f8b<\/h3>\n<p>\u3044\u304d\u306a\u308a\u4f7f\u3046\u524d\u306b\u3001\u307e\u305a\u306f\u30d5\u30a1\u30a4\u30eb\u69cb\u6210\u306b\u3064\u3044\u3066\u306e\u8aac\u660e\u3067\u3059\u3002<\/p>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u6210\u3092\u4f8b\u306b\u8a71\u3092\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li>src\n<ul>\n<li>sampleOne.js<\/li>\n<li>sampleTwo.js<\/li>\n<li>sampleThree.js<\/li>\n<\/ul>\n<\/li>\n<li>dist\n<ul>\n<li>XmasPresent.js<\/li>\n<\/ul>\n<\/li>\n<li>test\n<ul>\n<li>fixture.js<\/li>\n<li>test.js<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>src<\/strong>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u3001<\/p>\n<p><strong>dist<\/strong>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4f9d\u5b58\u95a2\u4fc2\u3092\u89e3\u6c7a\u3057\u3001\u7d50\u5408\u6e08\u307f\u306e<strong>XmasPresent.js<\/strong>\u3092\u66f8\u304d\u51fa\u3059\u3068\u3044\u3046\u60f3\u5b9a\u3067\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001\u305d\u308c\u305e\u308c\u306e\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u306b\u3064\u3044\u3066\u306e\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h4>sampleOne.js<\/h4>\n<p>\u30b0\u30ed\u30fc\u30d0\u30eb\u7a7a\u9593\u306b\u5ba3\u8a00\u6e08\u307f\u3067\u3042\u308d\u3046<strong>xmas<\/strong>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e<\/p>\n<p><strong>present.box.color<\/strong>\u3068\u3044\u3046\u30d7\u30ed\u30d1\u30c6\u30a3\u306b<strong>red<\/strong>\u3068\u3044\u3046\u6587\u5b57\u5217\u3092\u5165\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"theme:github lang:js decode:true\">(function(global) {\n\n  global.xmas.present.box.color = 'Red';\n\n}(this));<\/pre>\n<h4><\/h4>\n<h4>sampleTwo.js<\/h4>\n<p>\u30b0\u30ed\u30fc\u30d0\u30eb\u7a7a\u9593\u306b\u5ba3\u8a00\u6e08\u307f\u3067\u3042\u308d\u3046<strong>xmas<\/strong>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b<\/p>\n<p><strong>present.box<\/strong>\u3068\u3044\u3046\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"theme:github lang:js decode:true\">(function() {\n\n  xmas.present = {\n    box: {}\n  };\n\n}());<\/pre>\n<h4><\/h4>\n<h4>sampleThree.js<\/h4>\n<p>\u30b0\u30ed\u30fc\u30d0\u30eb\u7a7a\u9593\u306b<code>xmas<\/code>\u3068\u3044\u3046\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5ba3\u8a00\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"theme:github lang:js decode:true\">var xmas = {};<\/pre>\n<p>\u3055\u3066\u3001\u4eca\u56de\u306e\u30b1\u30fc\u30b9\u3067\u306f<\/p>\n<p><strong>sampleThree.js<\/strong>, <strong>sampleTwo.js<\/strong>, <strong>sampleOne.js<\/strong>\u306e\u9806\u306b\u7d50\u5408\u3059\u308c\u3070\u6b63\u3057\u304f\u52d5\u4f5c\u3057\u307e\u3059\u3002<\/p>\n<p>\u671f\u5f85\u3059\u308b\u632f\u308b\u821e\u3044\u3068\u3057\u3066\u3001\u7d50\u5408\u3057\u305f\u3082\u306e\u3068\u6bd4\u8f03\u3057\u3066\u4f55\u3082\u8868\u793a\u3055\u308c\u306a\u3051\u308c\u3070OK\u3068\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"theme:terminal lang:js decode:true \">$ cat src\/sampleThree.js src\/sampleTwo.js src\/sampleOne.js &gt; dist\/fixture.js\n$ diff dist\/*.js<\/pre>\n<h3>\u4f7f\u3063\u3066\u307f\u308b<\/h3>\n<p>\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u305f\u3089\u3001\u6b21\u306f\u5b9f\u969b\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<h4>cli<\/h4>\n<p>npm\u7d4c\u7531\u3067rejs\u30b3\u30de\u30f3\u30c9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"theme:terminal lang:default decode:true\">$ npm install -g rejs<\/pre>\n<p>\u4f7f\u3044\u65b9\u306f\u3001<strong>-h<\/strong>\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"theme:terminal lang:default decode:true\">$ rejs -h\nUsage:\n    rejs [options] [file ...]\n\nExamples:\n    rejs foo.js bar.js baz.js\n    rejs --out out.js foo.js bar.js baz.js\n\nOptions:\n  -h, --help Print this message\n  -o, --out Output to single file\n  -v, --version Print rejs version<\/pre>\n<p>\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u306f\u3001<strong>rejs [options] [files ...] <\/strong>\u3068\u306a\u3063\u3066\u304a\u308a\u3001<strong>-o\u00a0<\/strong>\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u66f8\u304d\u51fa\u3059\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001<strong>dist<\/strong>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b<strong>XmasPresent.js<\/strong>\u3068\u3057\u3066\u66f8\u304d\u51fa\u305b\u3070\u3044\u3044\u306e\u3067\u3001\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308c\u3070\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<pre class=\"theme:terminal lang:default decode:true \">$ rejs --out dist\/XmasPresent.js src\/*.js<\/pre>\n<h4>Grunt\u30d7\u30e9\u30b0\u30a4\u30f3<\/h4>\n<p>\u6b21\u306b\u3001rejs\u306e\u4f5c\u8005\u304c\u958b\u767a\u3057\u3066\u3044\u308bGrunt\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u7528\u3044\u305f\u30b3\u30fc\u30c9\u4f8b\u3067\u3059\u3002<\/p>\n<p>URL: <a title=\"https:\/\/github.com\/Moncader\/grunt-rejs\" href=\"https:\/\/github.com\/Moncader\/grunt-rejs\">https:\/\/github.com\/Moncader\/grunt-rejs<\/a><\/p>\n<p>Gruntfile.js:<\/p>\n<pre class=\"theme:github lang:js decode:true\">module.exports = function(grunt) {\n  grunt.initConfig({\n    rejs: {\n      options: {},\n      target: {\n        files: {\n          'dist\/XmasPresent.js': 'src\/*.js',\n        }\n      }\n    }\n  });\n  grunt.loadNpmTasks('grunt-rejs');\n};<\/pre>\n<p>registerTask\u3092\u7701\u7565\u3057\u3066\u3044\u307e\u3059\u304c\u3001<\/p>\n<p><strong>grunt.config<\/strong>\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f7f\u3044\u30bf\u30b9\u30af\u3092\u8d70\u3089\u305b\u3066\u30d3\u30eb\u30c9\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"theme:terminal lang:default decode:true\">$ grunt rejs\n\nRunning \"rejs:target\" (rejs) task\nFile \"dist\/XmasPresent.js\" created.\n\nDone, without errors.<\/pre>\n<p>\u3053\u308c\u3067\u3001<strong>dist\/XmasPresent.js<\/strong>\u304c\u30d3\u30eb\u30c9\u3055\u308c\u307e\u3059\u3002<\/p>\n<h4>gulp\u30d7\u30e9\u30b0\u30a4\u30f3<\/h4>\n<p>\u6700\u5f8c\u306b\u3001<a title=\"@kuu\" href=\"https:\/\/github.com\/kuu\">@kuu<\/a>\u304c\u958b\u767a\u3057\u3066\u3044\u308bgulp\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u7528\u3044\u305f\u30b3\u30fc\u30c9\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>URL: <a title=\"https:\/\/github.com\/kuu\/gulp-rejs\" href=\"https:\/\/github.com\/kuu\/gulp-rejs\">https:\/\/github.com\/kuu\/gulp-rejs<\/a><\/p>\n<p>README\u3092\u53c2\u8003\u306b\u3001gulpfile\u3092\u66f8\u304d\u307e\u3059\u3002<\/p>\n<p>gulpfile.js:<\/p>\n<pre class=\"theme:github lang:js decode:true\">var gulp = require('gulp');\nvar rejs = require('gulp-rejs');\n\ngulp.task('rejs', function () {\n  return gulp.src('src\/*.js')\n    .pipe(rejs('XmasPresent.js'))\n    .pipe(gulp.dest('dist'));\n});<\/pre>\n<p>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u30d3\u30eb\u30c9\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"theme:terminal lang:js decode:true \">$ gulp rejs\n\n[11:29:55] Using gulpfile ~\/Development\/rejs-example\/gulpfile.js\n[11:29:55] Starting 'rejs'...\n[11:29:55] Finished 'rejs' after 22 ms<\/pre>\n<p>\u3084\u3063\u3071\u308agulpfile\u898b\u3084\u3059\u304f\u3066\u826f\u3044\u3067\u3059\u306d\u3002<\/p>\n<h4>Code example on Github<\/h4>\n<p>\u3053\u308c\u306b\u3066<strong>rejs<\/strong>\u306e\u7d39\u4ecb\u306f\u304a\u3057\u307e\u3044\u3067\u3059\uff01<\/p>\n<p>\u4e0b\u8a18URL\u306b\u3066\u672c\u30a8\u30f3\u30c8\u30ea\u306b\u51fa\u3066\u304f\u308b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4e00\u5f0f\u3092\u516c\u958b\u3057\u3066\u3042\u308b\u306e\u3067\u3001<\/p>\n<p>\u3054\u81ea\u7531\u306b\u3054\u5229\u7528\u304f\u3060\u3055\u3044m(_ _)m<\/p>\n<p>&nbsp;<\/p>\n<p>URL: <a title=\"https:\/\/github.com\/watilde\/rejs-example\" href=\"https:\/\/github.com\/watilde\/rejs-example\">https:\/\/github.com\/watilde\/rejs-example<\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>\u3042\u3068\u304c\u304d<\/h2>\n<p>\u4eca\u5f8c\u3082\u30b0\u30ea\u30fc\u3067\u306f\u3001\u793e\u5185\u3067\u958b\u767a\u3057\u305f\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u516c\u958b\u3057\u305f\u308aOSS\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u306b\u8ca2\u732e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u30af\u30ea\u30b9\u30de\u30b9\u3092\u5f85\u3064\u9593\u3001\u5f15\u304d\u7d9a\u304dGREE Advent Calendar 2014\u3092\u304a\u697d\u3057\u307f\u9802\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\uff01<br \/>\n\u660e\u65e5\u306f\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u90e8\u306e\u6238\u4e95\u7530\u660e\u4fca\u3055\u3093\u3068\u60c5\u5831\u30b7\u30b9\u30c6\u30e0\u90e8\u306e\u4e80\u4e95\u5229\u5149\u3055\u3093\u3067\u3059\u3002<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<h3>\u53c2\u8003\u8cc7\u6599<\/h3>\n<p>\u8a18\u4e8b\u306e\u88dc\u8db3\u3068\u3057\u3066\u3001\u8a18\u4e8b\u5185\u3067\u51fa\u3066\u304d\u305f\u30c4\u30fc\u30eb\u3084\u30e9\u30a4\u30d6\u30e9\u30ea\u306eURL\u3068\u7528\u8a9e\u306e\u8aac\u660e\u3092\u8f09\u305b\u3066\u304a\u304d\u307e\u3059\u3002\u4f75\u305b\u3066\u3054\u89a7\u9802\u3051\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h4>URL(s)<\/h4>\n<ul>\n<li><a href=\"https:\/\/github.com\/amdjs\/amdjs-api\/wiki\/AMD\">https:\/\/github.com\/amdjs\/amdjs-api\/wiki\/AMD<\/a><\/li>\n<li><a href=\"http:\/\/www.commonjs.org\/\">http:\/\/www.commonjs.org\/<\/a><\/li>\n<li><a href=\"http:\/\/requirejs.org\/docs\/optimization.html\">http:\/\/requirejs.org\/docs\/optimization.html<\/a><\/li>\n<li><a href=\"http:\/\/browserify.org\">http:\/\/browserify.org<\/a><\/li>\n<li><a href=\"http:\/\/webpack.github.io\/\">http:\/\/webpack.github.io\/<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/Moncader\/rejs\">https:\/\/github.com\/Moncader\/rejs<\/a><\/li>\n<li><a href=\"http:\/\/gruntjs.com\/\">http:\/\/gruntjs.com\/<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/Moncader\/grunt-rejs\">https:\/\/github.com\/Moncader\/grunt-rejs<\/a><\/li>\n<li><a href=\"http:\/\/gulpjs.com\/\">http:\/\/gulpjs.com\/<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/kuu\/gulp-rejs\">https:\/\/github.com\/kuu\/gulp-rejs<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/watilde\/rejs-example\">https:\/\/github.com\/watilde\/rejs-example<\/a><\/li>\n<\/ul>\n<h4>\u7528\u8a9e<\/h4>\n<ul>\n<li>Vanilla JS Module: \u30b0\u30ed\u30fc\u30d0\u30eb\u30fb\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u3092\u4ecb\u3057\u3066\u30b7\u30f3\u30dc\u30eb\u3092export\/import\u3059\u308b\u5f93\u6765\u306eJavaScript\u30b3\u30fc\u30c9<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u306f GREE Advent Calendar 2014 6\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002 \u7686\u3055\u3093\u3053\u3093\u306b\u3061\u306f\uff01Reflow\u3057\u3066\u307e\u3059\u304b\uff1f 13\u5352\u3067Art\u90e8\u306e\u548c\u667a(@watilde)\u3067\u3059\u3002\u696d\u52d9\u3067\u306f\u3001GREE Platform\u3067\u4f7f [&hellip;]<\/p>\n","protected":false},"author":116,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[54,32],"class_list":["post-12311","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-advent-calendar","tag-javascript"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/12311","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/users\/116"}],"replies":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/comments?post=12311"}],"version-history":[{"count":3,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/12311\/revisions"}],"predecessor-version":[{"id":12524,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/12311\/revisions\/12524"}],"wp:attachment":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/media?parent=12311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/categories?post=12311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/tags?post=12311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}