From fcb3331d695c07473e850bf7f51c51a6c2fbbc17 Mon Sep 17 00:00:00 2001 From: nightwing Date: Fri, 20 Jun 2014 02:26:10 +0400 Subject: [PATCH] remove special build version for bookmarklet --- Makefile.dryice.js | 27 ---- ...{editor_textarea.html => bookmarklet.html} | 69 +++++----- lib/ace/ext/textarea.js | 118 +++++++----------- 3 files changed, 79 insertions(+), 135 deletions(-) rename build_support/{editor_textarea.html => bookmarklet.html} (62%) diff --git a/Makefile.dryice.js b/Makefile.dryice.js index 19ba9192..f0f1f391 100755 --- a/Makefile.dryice.js +++ b/Makefile.dryice.js @@ -69,8 +69,6 @@ function main(args) { ace(); } else if (type == "demo") { demo(); - } else if (type == "bm") { - bookmarklet(); } else if (type == "full") { demo(ace()); bookmarklet(); @@ -98,7 +96,6 @@ function main(args) { console.log(" minimal Places necessary Ace files out in build dir; uses configuration flags below [default]"); console.log(" normal Runs four Ace builds--minimal, minimal-noconflict, minimal-min, and minimal-noconflict-min"); console.log(" demo Runs demo build of Ace"); - console.log(" bm Runs bookmarklet build of Ace"); console.log(" full all of above"); console.log(" highlighter "); console.log("args:"); @@ -113,30 +110,6 @@ function main(args) { console.log(" output generated in " + type + __dirname + "/" + BUILD_DIR) } -function bookmarklet() { - var targetDir = BUILD_DIR + "/textarea"; - copy({ - source: "build_support/editor_textarea.html", - dest: targetDir + '/editor.html' - }); - copy({ - source: "build_support/style.css", - dest: targetDir + '/style.css' - }); - - buildAce({ - targetDir: targetDir + "/src", - ns: "__ace_shadowed__", - exportModule: "ace/ext/textarea", - compress: false, - noconflict: true, - suffix: "", - name: "ace-bookmarklet", - workers: [], - keybindings: [] - }); -} - function ace() { console.log('# ace ---------'); diff --git a/build_support/editor_textarea.html b/build_support/bookmarklet.html similarity index 62% rename from build_support/editor_textarea.html rename to build_support/bookmarklet.html index bb691c11..f3d95ee7 100644 --- a/build_support/editor_textarea.html +++ b/build_support/bookmarklet.html @@ -20,7 +20,7 @@ function foo() { var bar = true; }
SourceUrl:
-
+

@@ -49,63 +49,60 @@ function foo() {