update build script
This commit is contained in:
parent
1e66dfa5fc
commit
adfac282bf
1 changed files with 4 additions and 50 deletions
|
|
@ -80,7 +80,6 @@ console.log('# ace ---------');
|
||||||
|
|
||||||
var aceProject = [
|
var aceProject = [
|
||||||
aceHome + '/support/pilot/lib',
|
aceHome + '/support/pilot/lib',
|
||||||
aceHome + '/support/cockpit/lib',
|
|
||||||
aceHome + '/lib',
|
aceHome + '/lib',
|
||||||
aceHome
|
aceHome
|
||||||
];
|
];
|
||||||
|
|
@ -310,51 +309,6 @@ project.assumeAllFilesLoaded();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log('# cockpit ---------');
|
|
||||||
|
|
||||||
project.assumeAllFilesLoaded();
|
|
||||||
|
|
||||||
var cockpit = copy.createDataObject();
|
|
||||||
copy({
|
|
||||||
source: [
|
|
||||||
copy.source.commonjs({
|
|
||||||
project: project,
|
|
||||||
require: [ 'cockpit/index' ]
|
|
||||||
})
|
|
||||||
],
|
|
||||||
filter: [ copy.filter.moduleDefines ],
|
|
||||||
dest: cockpit
|
|
||||||
});
|
|
||||||
copy({
|
|
||||||
source: {
|
|
||||||
root: aceHome + '/support/cockpit/lib',
|
|
||||||
include: /.*\.css$|.*\.html$/,
|
|
||||||
exclude: /tests?\//
|
|
||||||
},
|
|
||||||
filter: [ copy.filter.addDefines ],
|
|
||||||
dest: cockpit
|
|
||||||
});
|
|
||||||
copy({
|
|
||||||
source: {
|
|
||||||
root: aceHome + '/support/cockpit/lib',
|
|
||||||
include: /.*\.png$|.*\.gif$/,
|
|
||||||
exclude: /tests?\//
|
|
||||||
},
|
|
||||||
filter: [ copy.filter.base64 ],
|
|
||||||
dest: cockpit
|
|
||||||
});
|
|
||||||
|
|
||||||
// Create the compressed and uncompressed output files
|
|
||||||
copy({
|
|
||||||
source: cockpit,
|
|
||||||
filter: copy.filter.uglifyjs,
|
|
||||||
dest: 'build/src/cockpit.js'
|
|
||||||
});
|
|
||||||
copy({
|
|
||||||
source: cockpit,
|
|
||||||
dest: 'build/src/cockpit-uncompressed.js'
|
|
||||||
});
|
|
||||||
|
|
||||||
function demo() {
|
function demo() {
|
||||||
console.log('# kitchen sink ---------');
|
console.log('# kitchen sink ---------');
|
||||||
|
|
||||||
|
|
@ -382,7 +336,7 @@ function demo() {
|
||||||
source: [
|
source: [
|
||||||
copy.source.commonjs({
|
copy.source.commonjs({
|
||||||
project: project,
|
project: project,
|
||||||
require: [ "cockpit/index", "pilot/index", "ace/defaults", "demo/boot" ]
|
require: [ "pilot/index", "ace/defaults", "demo/boot" ]
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
filter: [ copy.filter.moduleDefines ],
|
filter: [ copy.filter.moduleDefines ],
|
||||||
|
|
@ -391,7 +345,7 @@ function demo() {
|
||||||
copy({
|
copy({
|
||||||
source: {
|
source: {
|
||||||
root: project,
|
root: project,
|
||||||
include: /.*\.css$/,
|
include: /demo\/docs\/.*$/,
|
||||||
exclude: /tests?\//
|
exclude: /tests?\//
|
||||||
},
|
},
|
||||||
filter: [ copy.filter.addDefines ],
|
filter: [ copy.filter.addDefines ],
|
||||||
|
|
@ -399,8 +353,8 @@ function demo() {
|
||||||
});
|
});
|
||||||
copy({
|
copy({
|
||||||
source: {
|
source: {
|
||||||
root: aceHome + '/support/cockpit/lib',
|
root: project,
|
||||||
include: /.*\.css$|.*\.html$/,
|
include: /.*\.css$/,
|
||||||
exclude: /tests?\//
|
exclude: /tests?\//
|
||||||
},
|
},
|
||||||
filter: [ copy.filter.addDefines ],
|
filter: [ copy.filter.addDefines ],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue