Include ext in dryice. Fix #986.
This commit is contained in:
parent
6eecc42409
commit
3e5fa146a1
1 changed files with 19 additions and 0 deletions
|
|
@ -245,6 +245,10 @@ function buildAce(options) {
|
|||
themes: fs.readdirSync(ACE_HOME + "/lib/ace/theme").map(function(x){
|
||||
return x.slice(-3) == ".js" && x.slice(0, -3);
|
||||
}).filter(function(x){ return !!x; }),
|
||||
extensions: fs.readdirSync(ACE_HOME + "/lib/ace/ext").map(function(x){
|
||||
if (x.slice(-3) == ".js" && !/_test/.test(x))
|
||||
return x.slice(0, -3);
|
||||
}).filter(function(x){ return !!x; }),
|
||||
workers: ["javascript", "coffee", "css", "json", "xquery"],
|
||||
keybindings: ["vim", "emacs"]
|
||||
};
|
||||
|
|
@ -349,6 +353,21 @@ function buildAce(options) {
|
|||
fs.writeFileSync(targetDir + "/theme-" + theme + ".js", js);
|
||||
});
|
||||
|
||||
console.log('# ace extensions ---------');
|
||||
|
||||
project.assumeAllFilesLoaded();
|
||||
options.extensions.forEach(function(ext) {
|
||||
console.log("extensions " + ext);
|
||||
copy({
|
||||
source: [{
|
||||
project: cloneProject(project),
|
||||
require: [ 'ace/ext/' + ext ]
|
||||
}],
|
||||
filter: filters,
|
||||
dest: targetDir + "/ext-" + ext + ".js"
|
||||
});
|
||||
});
|
||||
|
||||
console.log('# ace key bindings ---------');
|
||||
|
||||
// copy key bindings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue