snappymail/tasks/config.js

87 lines
1.7 KiB
JavaScript
Raw Normal View History

/* SnappyMail Webmail (c) SnappyMail Team | Licensed under MIT */
2019-06-29 22:16:09 +08:00
const path = require('path');
const config = {
head: {
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';
config.paths.static = 'snappymail/v/' + config.devVersion + '/static/';
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.assets = {
src: ['assets/**/*.*', 'assets/**/.htaccess']
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: [
'vendors/normalize.css/normalize.css',
'vendors/fontastic/styles.css'
]
},
2021-01-19 06:01:21 +08:00
admin: {
name: 'admin.css',
src: [
'vendors/fontastic/styles.css',
'dev/Styles/@Admin.less'
]
2021-01-19 06:01:21 +08:00
},
boot: {
name: 'boot.css',
src: [
'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',
'dev/External/ifvisible.js',
'dev/dragdropgecko.js',
'dev/shortcuts.js',
'vendors/routes/hasher.js',
'vendors/routes/crossroads.js',
'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',
2020-09-22 17:04:45 +08:00
'vendors/squire/build/squire-raw.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;