-
Notifications
You must be signed in to change notification settings - Fork 0
/
_config_.js
43 lines (33 loc) · 1.22 KB
/
_config_.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
"use strict";
const CONFIG = {};
CONFIG.name = 'Purple Berry Login';
CONFIG.siteUrl = '';
CONFIG.server = {};
CONFIG.server.host = '127.0.0.1';
CONFIG.server.port = 8000;
CONFIG.server.base = {};
CONFIG.server.base.dev = './www';
CONFIG.server.base.prod = './dist';
CONFIG.dirs = {};
CONFIG.dirs.src = {};
CONFIG.dirs.src.root = 'www';
CONFIG.dirs.src.assets = CONFIG.dirs.src.root + '/static/assets';
// assets
CONFIG.dirs.src.fonts = CONFIG.dirs.src.assets + '/fonts';
CONFIG.dirs.src.images = CONFIG.dirs.src.assets + '/images';
CONFIG.dirs.src.favicons = CONFIG.dirs.src.assets + '/favicons';
CONFIG.dirs.src.icons = CONFIG.dirs.src.assets + '/icons';
CONFIG.dirs.src.scss = CONFIG.dirs.src.root + '/static/src/scss';
CONFIG.dirs.src.css = CONFIG.dirs.src.root + '/static/compiled/css';
CONFIG.dirs.src.devJs = CONFIG.dirs.src.root + '/static/src/js';
CONFIG.dirs.src.js = CONFIG.dirs.src.root + '/static/compiled/js';
CONFIG.dirs.dest = {};
CONFIG.dirs.dest.root = 'dist';
for (var dir in CONFIG.dirs.src) {
if (dir !== 'root') {
var destinationDir = CONFIG.dirs.src[dir].replace(CONFIG.dirs.src.root, CONFIG.dirs.dest.root);
// set destination dir path
CONFIG.dirs.dest[dir] = destinationDir;
}
}
module.exports = CONFIG;