split off compat files as separate build file
This commit is contained in:
parent
c4bcb96b3a
commit
129ac7eb0a
1 changed files with 14 additions and 4 deletions
|
|
@ -95,8 +95,6 @@ var aceProject = {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (target == "normal") {
|
if (target == "normal") {
|
||||||
//aceProject.push(aceHome + '/demo');
|
|
||||||
|
|
||||||
copy({
|
copy({
|
||||||
source: "build_support/editor.html",
|
source: "build_support/editor.html",
|
||||||
dest: targetDir + '/editor.html'
|
dest: targetDir + '/editor.html'
|
||||||
|
|
@ -136,8 +134,7 @@ copy({
|
||||||
project: project,
|
project: project,
|
||||||
require: [
|
require: [
|
||||||
"ace/lib/fixoldbrowsers",
|
"ace/lib/fixoldbrowsers",
|
||||||
"ace/ace",
|
"ace/ace"
|
||||||
"pilot/index" // MIGRATION API
|
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
|
|
@ -176,6 +173,19 @@ if (target == "normal") {
|
||||||
filter: [filterTextPlugin],
|
filter: [filterTextPlugin],
|
||||||
dest: targetDir + '/src/ace-uncompressed.js'
|
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") {
|
} else if (target == "bm") {
|
||||||
copy({
|
copy({
|
||||||
source: ace,
|
source: ace,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue