diff --git a/Makefile.dryice.js b/Makefile.dryice.js index f8e1383c..19ba9192 100755 --- a/Makefile.dryice.js +++ b/Makefile.dryice.js @@ -247,6 +247,46 @@ function demo(project) { }); copyFileSync(ACE_HOME + "/demo/kitchen-sink/logo.png", BUILD_DIR + "/kitchen-sink/logo.png"); + + fs.readdirSync(ACE_HOME + "/demo/").forEach(function(x) { + if (/\s|requirejs/.test(x) || !/\.(js|html)$/.test(x)) + return; + copy({ + source: ACE_HOME +"/demo/" + x, + dest: BUILD_DIR + "/demo/" + x, + filter: [function(source) { + if (/\.(js)$/.test(x)) + return source; + var removeRequireJS + source = source.replace(/')} + scripts.forEach(function(s) { + s = s.replace(/"/g, ""); + if (s == "ace/ace") { + comment("load ace") + script("ace") + } else { + var extName = s.match(/[^/]*$/)[0]; + comment("load ace " + extName + " extension"); + script("ext-" + extName); + } + }); + result.push(" diff --git a/demo/autoresize.html b/demo/autoresize.html index cc1dc5e3..2b64d96a 100644 --- a/demo/autoresize.html +++ b/demo/autoresize.html @@ -20,29 +20,37 @@
-autoresizing editor+
autoresizing editor
minHeight = 2 lines+ + + +