Skip to content

Instantly share code, notes, and snippets.

@bootstraponline
Created October 22, 2012 05:39
Show Gist options
  • Save bootstraponline/3929881 to your computer and use it in GitHub Desktop.
Save bootstraponline/3929881 to your computer and use it in GitHub Desktop.
Ace patch
diff --git a/Makefile.dryice.js b/Makefile.dryice.js
index 3109f84..4bb5fe6 100755
--- a/Makefile.dryice.js
+++ b/Makefile.dryice.js
@@ -308,7 +308,7 @@ var buildAce = function(options) {
if (!options.requires)
options.requires = [options.exportModule];
- var targetDir = options.targetDir + options.suffix;
+ var targetDir = options.targetDir + options.suffix + "/ace";
var name = options.name;
var project = copy.createCommonJsProject(aceProject);
@@ -346,7 +346,7 @@ var buildAce = function(options) {
require: [ 'ace/mode/' + mode ]
}],
filter: getWriteFilters(options, "mode"),
- dest: targetDir + "/mode-" + mode + ".js"
+ dest: targetDir + "/mode/" + mode + ".js"
});
});
@@ -361,7 +361,7 @@ var buildAce = function(options) {
require: ["ace/theme/" + theme]
}],
filter: getWriteFilters(options, "theme"),
- dest: targetDir + "/theme-" + theme.replace("_theme", "") + ".js"
+ dest: targetDir + "/theme/" + theme.replace("_theme", "") + ".js"
});
});
@@ -376,7 +376,7 @@ var buildAce = function(options) {
require: [ 'ace/ext/' + ext ]
}],
filter: getWriteFilters(options, "ext"),
- dest: targetDir + "/ext-" + ext + ".js"
+ dest: targetDir + "/ext/" + ext + ".js"
});
});
@@ -391,7 +391,7 @@ var buildAce = function(options) {
require: [ 'ace/keyboard/' + keybinding ]
}],
filter: getWriteFilters(options, "keybinding"),
- dest: targetDir + "/keybinding-" + keybinding + ".js"
+ dest: targetDir + "/keybinding/" + keybinding + ".js"
});
});
@@ -423,7 +423,7 @@ var buildAce = function(options) {
worker
],
filter: options.compress ? [copy.filter.uglifyjs] : [],
- dest: targetDir + "/worker-" + mode + ".js"
+ dest: targetDir + "/worker/" + mode + ".js"
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment