From 582eb0ad67557425af2445555c4af2c2780523e7 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Tue, 8 Feb 2011 17:23:34 +0100 Subject: [PATCH] fix typo and make sure js files in modes don't accumulate --- Makefile.dryice.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile.dryice.js b/Makefile.dryice.js index 93c990d1..edb31070 100755 --- a/Makefile.dryice.js +++ b/Makefile.dryice.js @@ -121,7 +121,7 @@ copy({ console.log('# cockpit ---------'); -project.assmeAllFilesLoaded(); +project.assumeAllFilesLoaded(); project.addRoot(aceHome + '/support/cockpit/lib'); var cockpit = copy.createDataObject(); @@ -167,17 +167,17 @@ copy({ // create modes -project.assmeAllFilesLoaded(); - -["css", "html", "javascript", "php", "python", "xml", "ruby", "java", "c_cpp"].forEach(function(mode) { +project.assumeAllFilesLoaded(); +["css", "html", "javascript", "php", "python", "xml", "ruby", "java", "c_cpp", "coffee"].forEach(function(mode) { + console.log("mode " + mode); copy({ source: [ copy.source.commonjs({ - project: project, + project: project.clone(), require: [ 'ace/mode/' + mode ] }) ], - filter: [ copy.filter.moduleDefines, copy.filter.uglifyjs ], + filter: [ copy.filter.debug, copy.filter.moduleDefines, copy.filter.uglifyjs ], dest: "build/src/mode-" + mode + ".js" }); }); @@ -253,12 +253,12 @@ copy({ }); // copy key bindings +project.assumeAllFilesLoaded(); ["vim", "emacs"].forEach(function(keybinding) { - project.assmeAllFilesLoaded(); copy({ source: [ copy.source.commonjs({ - project: project, + project: project.clone(), require: [ 'ace/keyboard/keybinding/' + keybinding ] }) ],