Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
87 lines
2.2 KiB
JavaScript
Executable file
87 lines
2.2 KiB
JavaScript
Executable file
{
|
|
appDir: '..',
|
|
baseUrl: 'js',
|
|
dir: '../../../build_stage/email',
|
|
mainConfigFile: '../js/config.js',
|
|
paths: {
|
|
prim: 'empty:'
|
|
},
|
|
/*
|
|
wrap: {
|
|
start: 'plog("@@@ START OF BUILD LAYER");',
|
|
end: 'plog("@@@ END OF BUILD LAYER");'
|
|
},
|
|
*/
|
|
|
|
// Be sure to normalize all define() calls by extracting
|
|
// dependencies so Function toString is not needed, and
|
|
// lower capability devices like Tarako can optimize
|
|
// memory by discarding function sources. This is
|
|
// automatically done when an 'optimize' value other than
|
|
// 'none' is used. This setting makes sure it happens for
|
|
// builds where 'none' is used for 'optimize'.
|
|
normalizeDirDefines: 'all',
|
|
|
|
// Rewrite the waitSeconds config so that we never time out
|
|
// waiting for modules to load in production. See js/config.js
|
|
// for more details.
|
|
onBuildWrite: function(id, url, contents) {
|
|
if (id === 'config') {
|
|
return contents.replace(/waitSeconds:\s*\d+/, 'waitSeconds: 0');
|
|
} else {
|
|
return contents;
|
|
}
|
|
},
|
|
|
|
modules: [
|
|
{
|
|
name: 'config',
|
|
include: [
|
|
'alameda',
|
|
'l10nbase',
|
|
'moz_intl',
|
|
'tmpl',
|
|
'text',
|
|
'value_selector',
|
|
'folder_depth_classes',
|
|
'iframe_shims',
|
|
'cards/editor_mixins',
|
|
|
|
// gesture_detector used by both compose and message_reader layer, so
|
|
// just include it in the base layer.
|
|
'shared/js/gesture_detector',
|
|
|
|
// Bundle most likely card
|
|
'cards/message_list'
|
|
]
|
|
},
|
|
{
|
|
name: 'cards/compose',
|
|
exclude: ['config']
|
|
},
|
|
{
|
|
name: 'cards/message_reader',
|
|
exclude: ['config']
|
|
}
|
|
],
|
|
|
|
// Optimization is handled by build.js
|
|
optimize: 'none',
|
|
|
|
// Just strip comments, no code compression or mangling.
|
|
// Only active if optimize: 'uglify2'
|
|
uglify2: {
|
|
// Comment out the output section to get rid of line
|
|
// returns and tabs spacing.
|
|
output: {
|
|
beautify: true
|
|
}
|
|
},
|
|
|
|
fileExclusionRegExp: /^\.|^test$|^build$|^docs$|^ext$|^services.js$/,
|
|
|
|
// Keeping build dir since Makefile cleans it up and
|
|
// preps build dir with the shared directory
|
|
keepBuildDir: true,
|
|
removeCombined: true
|
|
}
|