mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-14 11:44:54 +08:00
107 lines
3.2 KiB
JavaScript
107 lines
3.2 KiB
JavaScript
/* RainLoop Webmail (c) RainLoop Team | Licensed under AGPL 3 */
|
|
const path = require('path');
|
|
const { argv } = require('yargs');
|
|
|
|
const config = {
|
|
head: {
|
|
rainloop: '/* RainLoop Webmail (c) RainLoop Team | Licensed under RainLoop Software License */',
|
|
agpl: '/* RainLoop Webmail (c) RainLoop Team | Licensed under AGPL v3 */'
|
|
},
|
|
devVersion: '0.0.0',
|
|
releasesPath: 'build/dist/releases',
|
|
community: !argv.pro,
|
|
source: !!argv.source,
|
|
watch: false,
|
|
watchInterval: 1000,
|
|
googleCompile: false,
|
|
|
|
rainloopBuilded: false,
|
|
destPath: '',
|
|
cleanPath: '',
|
|
zipSrcPath: '',
|
|
zipFile: '',
|
|
zipFileShort: '',
|
|
|
|
paths: {}
|
|
};
|
|
|
|
config.paths.globjs = 'dev/**/*.js';
|
|
config.paths.static = 'rainloop/v/' + config.devVersion + '/static/';
|
|
config.paths.staticJS = 'rainloop/v/' + config.devVersion + '/static/js/';
|
|
config.paths.staticMinJS = 'rainloop/v/' + config.devVersion + '/static/js/min/';
|
|
config.paths.staticCSS = 'rainloop/v/' + config.devVersion + '/static/css/';
|
|
config.paths.momentLocales = 'rainloop/v/' + config.devVersion + '/app/localization/moment/';
|
|
|
|
config.paths.assets = {
|
|
src: 'assets/**/*.*'
|
|
};
|
|
|
|
config.paths.less = {
|
|
main: {
|
|
src: 'dev/Styles/@Main.less',
|
|
watch: ['dev/Styles/*.less'],
|
|
options: {
|
|
paths: [path.join(__dirname, 'dev', 'Styles'), path.join(__dirname, 'vendors', 'bootstrap', 'less')]
|
|
}
|
|
}
|
|
};
|
|
|
|
config.paths.css = {
|
|
main: {
|
|
name: 'app.css',
|
|
src: [
|
|
'node_modules/normalize.css/normalize.css',
|
|
'vendors/jquery-ui/css/smoothness/jquery-ui-1.12.1.custom.css',
|
|
'vendors/fontastic/styles.css',
|
|
'vendors/inputosaurus/inputosaurus.css',
|
|
'vendors/flags/flags-fixed.css',
|
|
'node_modules/opentip/css/opentip.css',
|
|
'vendors/lightgallery/dist/css/lightgallery.min.css',
|
|
'vendors/lightgallery/dist/css/lg-transitions.min.css',
|
|
'dev/Styles/_progressjs.css'
|
|
]
|
|
}
|
|
};
|
|
|
|
config.paths.js = {
|
|
moment: {
|
|
locales: ['node_modules/moment/locale/*.js']
|
|
},
|
|
libs: {
|
|
name: 'libs.js',
|
|
src: [
|
|
'dev/polyfill.js',
|
|
'node_modules/jquery/dist/jquery.slim.min.js',
|
|
'vendors/jquery-ui/js/jquery-ui-1.12.1.custom.min.js', // custom
|
|
'vendors/inputosaurus/inputosaurus.js', // custom (modified)
|
|
'vendors/routes/signals.min.js', // fixed
|
|
'vendors/routes/hasher.min.js', // fixed
|
|
'vendors/routes/crossroads.min.js', // fixed
|
|
'vendors/jua/jua.min.js', // custom
|
|
'vendors/keymaster/keymaster.js', // custom (modified)
|
|
'vendors/qr.js/qr.min.js', // fixed (license)
|
|
'vendors/bootstrap/js/bootstrap.min.js', // fixed
|
|
'dev/prototype-date.js',
|
|
'node_modules/knockout/build/output/knockout-latest.js',
|
|
'node_modules/knockout-sortable/build/knockout-sortable.min.js ',
|
|
'node_modules/simplestatemanager/dist/ssm.min.js',
|
|
'node_modules/autolinker/dist/Autolinker.min.js',
|
|
'node_modules/opentip/lib/opentip.js',
|
|
'node_modules/opentip/lib/adapter-jquery.js',
|
|
'vendors/lightgallery/dist/js/lightgallery.min.js', // license
|
|
'vendors/lightgallery/dist/js/lg-fullscreen.min.js',
|
|
'vendors/lightgallery/dist/js/lg-thumbnail.min.js',
|
|
'vendors/lightgallery/dist/js/lg-zoom.min.js',
|
|
'vendors/lightgallery/dist/js/lg-autoplay.min.js',
|
|
'node_modules/ifvisible.js/src/ifvisible.min.js'
|
|
]
|
|
},
|
|
app: {
|
|
name: 'app.js'
|
|
},
|
|
admin: {
|
|
name: 'admin.js'
|
|
}
|
|
};
|
|
|
|
exports.config = config;
|