fix typo and make sure js files in modes don't accumulate
This commit is contained in:
parent
ac44381658
commit
582eb0ad67
1 changed files with 8 additions and 8 deletions
|
|
@ -121,7 +121,7 @@ copy({
|
||||||
|
|
||||||
console.log('# cockpit ---------');
|
console.log('# cockpit ---------');
|
||||||
|
|
||||||
project.assmeAllFilesLoaded();
|
project.assumeAllFilesLoaded();
|
||||||
project.addRoot(aceHome + '/support/cockpit/lib');
|
project.addRoot(aceHome + '/support/cockpit/lib');
|
||||||
|
|
||||||
var cockpit = copy.createDataObject();
|
var cockpit = copy.createDataObject();
|
||||||
|
|
@ -167,17 +167,17 @@ copy({
|
||||||
|
|
||||||
|
|
||||||
// create modes
|
// create modes
|
||||||
project.assmeAllFilesLoaded();
|
project.assumeAllFilesLoaded();
|
||||||
|
["css", "html", "javascript", "php", "python", "xml", "ruby", "java", "c_cpp", "coffee"].forEach(function(mode) {
|
||||||
["css", "html", "javascript", "php", "python", "xml", "ruby", "java", "c_cpp"].forEach(function(mode) {
|
console.log("mode " + mode);
|
||||||
copy({
|
copy({
|
||||||
source: [
|
source: [
|
||||||
copy.source.commonjs({
|
copy.source.commonjs({
|
||||||
project: project,
|
project: project.clone(),
|
||||||
require: [ 'ace/mode/' + mode ]
|
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"
|
dest: "build/src/mode-" + mode + ".js"
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
@ -253,12 +253,12 @@ copy({
|
||||||
});
|
});
|
||||||
|
|
||||||
// copy key bindings
|
// copy key bindings
|
||||||
|
project.assumeAllFilesLoaded();
|
||||||
["vim", "emacs"].forEach(function(keybinding) {
|
["vim", "emacs"].forEach(function(keybinding) {
|
||||||
project.assmeAllFilesLoaded();
|
|
||||||
copy({
|
copy({
|
||||||
source: [
|
source: [
|
||||||
copy.source.commonjs({
|
copy.source.commonjs({
|
||||||
project: project,
|
project: project.clone(),
|
||||||
require: [ 'ace/keyboard/keybinding/' + keybinding ]
|
require: [ 'ace/keyboard/keybinding/' + keybinding ]
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue