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
+
+

 
 
 
 
+
+
 
 
diff --git a/demo/emmet.html b/demo/emmet.html
index 1a1ed6ba..122085d9 100644
--- a/demo/emmet.html
+++ b/demo/emmet.html
@@ -22,19 +22,20 @@
 
 

 
-
-
-
-
-
+
 
+
+
 
 
 
diff --git a/demo/ie7.html b/demo/ie7.html
index 3a525f86..f5db8667 100644
--- a/demo/ie7.html
+++ b/demo/ie7.html
@@ -5,7 +5,7 @@
   
   ACE Editor StatusBar Demo