From 129ac7eb0a70b979bdd88b85684a89696e4634ed Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Fri, 11 Nov 2011 12:27:41 +0100 Subject: [PATCH] split off compat files as separate build file --- Makefile.dryice.js | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/Makefile.dryice.js b/Makefile.dryice.js index 56812e50..122c116f 100755 --- a/Makefile.dryice.js +++ b/Makefile.dryice.js @@ -95,8 +95,6 @@ var aceProject = { } if (target == "normal") { - //aceProject.push(aceHome + '/demo'); - copy({ source: "build_support/editor.html", dest: targetDir + '/editor.html' @@ -136,8 +134,7 @@ copy({ project: project, require: [ "ace/lib/fixoldbrowsers", - "ace/ace", - "pilot/index" // MIGRATION API + "ace/ace" ] }) ], @@ -176,6 +173,19 @@ if (target == "normal") { filter: [filterTextPlugin], dest: targetDir + '/src/ace-uncompressed.js' }); + + project.assumeAllFilesLoaded(); + copy({ + source: [ + copy.source.commonjs({ + project: cloneProject(project), + require: [ "pilot/index" ] + }) + ], + filter: [copy.filter.uglifyjs, filterTextPlugin], + dest: targetDir + "/src/ace-compat.js" + }); + } else if (target == "bm") { copy({ source: ace,