2022-09-01 06:24:33 +08:00
|
|
|
/* SnappyMail Webmail (c) SnappyMail Team | Licensed under MIT */
|
2019-06-29 22:16:09 +08:00
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
const config = {
|
|
|
|
head: {
|
2022-09-02 03:16:52 +08:00
|
|
|
agpl: '/* SnappyMail Webmail (c) SnappyMail | Licensed under AGPL v3 */'
|
2019-06-29 22:16:09 +08:00
|
|
|
},
|
|
|
|
devVersion: '0.0.0',
|
|
|
|
|
|
|
|
destPath: '',
|
|
|
|
cleanPath: '',
|
|
|
|
|
|
|
|
paths: {}
|
|
|
|
};
|
|
|
|
|
|
|
|
config.paths.globjs = 'dev/**/*.js';
|
2020-10-15 22:21:52 +08:00
|
|
|
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/';
|
2019-06-29 22:16:09 +08:00
|
|
|
|
|
|
|
config.paths.less = {
|
|
|
|
main: {
|
|
|
|
src: 'dev/Styles/@Main.less',
|
|
|
|
options: {
|
2019-07-05 03:09:27 +08:00
|
|
|
paths: [path.join(__dirname, 'dev', 'Styles'), path.join(__dirname, 'vendors', 'bootstrap', 'less')]
|
2019-06-29 22:16:09 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
config.paths.css = {
|
|
|
|
main: {
|
|
|
|
name: 'app.css',
|
|
|
|
src: [
|
2020-08-31 18:45:43 +08:00
|
|
|
'vendors/normalize.css/normalize.css',
|
2021-02-04 19:54:03 +08:00
|
|
|
'vendors/fontastic/styles.css'
|
2020-09-05 18:22:46 +08:00
|
|
|
]
|
|
|
|
},
|
2021-01-19 06:01:21 +08:00
|
|
|
admin: {
|
2021-11-16 19:35:11 +08:00
|
|
|
name: 'admin.css',
|
|
|
|
src: [
|
|
|
|
'vendors/fontastic/styles.css',
|
|
|
|
'dev/Styles/@Admin.less'
|
|
|
|
]
|
2021-01-19 06:01:21 +08:00
|
|
|
},
|
2020-09-05 18:22:46 +08:00
|
|
|
boot: {
|
|
|
|
name: 'boot.css',
|
|
|
|
src: [
|
2021-04-29 04:59:42 +08:00
|
|
|
'dev/Styles/@Boot.css'
|
2019-06-29 22:16:09 +08:00
|
|
|
]
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
config.paths.js = {
|
|
|
|
libs: {
|
|
|
|
name: 'libs.js',
|
|
|
|
src: [
|
2020-09-04 23:07:35 +08:00
|
|
|
'dev/prototype.js',
|
2020-09-29 02:04:09 +08:00
|
|
|
'dev/dragdropgecko.js',
|
|
|
|
'dev/shortcuts.js',
|
2021-02-04 19:54:03 +08:00
|
|
|
'vendors/routes/hasher.js',
|
|
|
|
'vendors/routes/crossroads.js',
|
2021-02-23 00:28:54 +08:00
|
|
|
'vendors/jua/jua.js',
|
2020-10-01 17:10:40 +08:00
|
|
|
'vendors/bootstrap/js/bootstrap.native.js',
|
2020-09-17 22:27:00 +08:00
|
|
|
'vendors/knockout/build/output/knockout-latest.js',
|
2022-11-22 19:05:21 +08:00
|
|
|
// 'vendors/knockout/build/output/knockout-latest.debug.js',
|
2024-09-17 21:00:28 +08:00
|
|
|
'vendors/squire2/dist/squire-raw.js',
|
2024-03-12 23:06:17 +08:00
|
|
|
'vendors/mathiasbynens/punycode.js',
|
2024-09-14 20:00:36 +08:00
|
|
|
'vendors/turndown/turndown.js',
|
2020-09-11 18:39:56 +08:00
|
|
|
'dev/External/SquireUI.js'
|
2019-06-29 22:16:09 +08:00
|
|
|
]
|
|
|
|
},
|
2022-03-09 19:33:31 +08:00
|
|
|
sieve: {
|
|
|
|
name: 'sieve.js'
|
|
|
|
},
|
2019-06-29 22:16:09 +08:00
|
|
|
app: {
|
|
|
|
name: 'app.js'
|
|
|
|
},
|
|
|
|
admin: {
|
|
|
|
name: 'admin.js'
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
exports.config = config;
|