mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 09:02:45 +08:00
82 lines
1.7 KiB
JavaScript
82 lines
1.7 KiB
JavaScript
/* SnappyMail Webmail (c) SnappyMail Team | Licensed under MIT */
|
|
const path = require('path');
|
|
|
|
const config = {
|
|
head: {
|
|
agpl: '/* SnappyMail Webmail (c) SnappyMail | Licensed under AGPL v3 */'
|
|
},
|
|
devVersion: '0.0.0',
|
|
|
|
destPath: '',
|
|
cleanPath: '',
|
|
|
|
paths: {}
|
|
};
|
|
|
|
config.paths.globjs = 'dev/**/*.js';
|
|
config.paths.staticJS = 'snappymail/v/' + config.devVersion + '/static/js/';
|
|
config.paths.staticMinJS = 'snappymail/v/' + config.devVersion + '/static/js/min/';
|
|
config.paths.staticCSS = 'snappymail/v/' + config.devVersion + '/static/css/';
|
|
|
|
config.paths.less = {
|
|
main: {
|
|
src: 'dev/Styles/@Main.less',
|
|
options: {
|
|
paths: [path.join(__dirname, 'dev', 'Styles'), path.join(__dirname, 'vendors', 'bootstrap', 'less')]
|
|
}
|
|
}
|
|
};
|
|
|
|
config.paths.css = {
|
|
main: {
|
|
name: 'app.css',
|
|
src: [
|
|
'vendors/normalize.css/normalize.css',
|
|
'vendors/fontastic/styles.css'
|
|
]
|
|
},
|
|
admin: {
|
|
name: 'admin.css',
|
|
src: [
|
|
'vendors/fontastic/styles.css',
|
|
'dev/Styles/@Admin.less'
|
|
]
|
|
},
|
|
boot: {
|
|
name: 'boot.css',
|
|
src: [
|
|
'dev/Styles/@Boot.css'
|
|
]
|
|
}
|
|
};
|
|
|
|
config.paths.js = {
|
|
libs: {
|
|
name: 'libs.js',
|
|
src: [
|
|
'dev/prototype.js',
|
|
'dev/dragdropgecko.js',
|
|
'dev/shortcuts.js',
|
|
'vendors/routes/hasher.js',
|
|
'vendors/routes/crossroads.js',
|
|
'vendors/jua/jua.js',
|
|
'vendors/bootstrap/js/bootstrap.native.js',
|
|
'vendors/knockout/build/output/knockout-latest.js',
|
|
// 'vendors/knockout/build/output/knockout-latest.debug.js',
|
|
'vendors/squire/build/squire-raw.js',
|
|
'vendors/mathiasbynens/punycode.js',
|
|
'dev/External/SquireUI.js'
|
|
]
|
|
},
|
|
sieve: {
|
|
name: 'sieve.js'
|
|
},
|
|
app: {
|
|
name: 'app.js'
|
|
},
|
|
admin: {
|
|
name: 'admin.js'
|
|
}
|
|
};
|
|
|
|
exports.config = config;
|