-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
107 lines (102 loc) · 2.06 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
var join = require('path').join;
var src = 'src';
var build = 'build';
var appcache = 'manifest.appcache';
var dirs = {
cwd: __dirname,
src: join(__dirname, src),
out: join(__dirname, build),
js: 'js',
css: 'css',
html: 'html',
assets: 'assets',
config: join(__dirname),
img: 'img',
pages: 'pages',
gulp: 'gulp',
favicon: 'favicon.ico',
logs: join(__dirname, 'logs'),
};
var env = process.env.NODE_ENV || 'development';
var server = {
// Files to exclude from static serving,
// relative to out directory
files: '!(server.js|config.js)',
dirs: {
img: '/' + dirs.img + '/',
js: '/' + dirs.js + '/',
css: '/' + dirs.css + '/',
}
};
module.exports = {
CNAME: 'evocell.net',
port: 1337,
pages: '/ /index.html',
pageItems: {
'/': '/index.html',
},
env: env,
dirs: dirs,
files: {
css: join(dirs.src, '**', dirs.css, '@(main.styl|*.main.styl)'),
html: [
{
src: join(dirs.src, dirs.html, dirs.pages, '*.jade'),
out: dirs.out,
},
],
copy: '!(*.xcf|*.psd|*.ai)',
server: 'server.js',
compress: '!(*.ico|*.gz)',
},
config: {
babelrc: '.babelrc',
jaderc: '.jade-lintrc',
jscsrc: '.jscsrc',
stylintrc: '.stylintrc',
},
watch: {
src: src,
appcache: appcache,
tasks: [
{
src: join(dirs.src, dirs.css, '**', '*.styl'),
tasks: ['build:css'],
},
{
src: join(dirs.src, dirs.html, '**', '*.jade'),
tasks: ['build:html'],
},
{
src: join(dirs.config, '*'),
tasks: ['build'],
},
{
src: 'config.js',
tasks: ['build'],
},
{
src: join(dirs.src, dirs.assets, '**', '*'),
tasks: ['build:copy'],
},
{
src: join(dirs.src, appcache),
tasks: ['build:appcache'],
},
],
},
server: server,
copy: [
{
src: join(dirs.src, dirs.assets, '**'),
out: join(dirs.out),
},
],
locals: {
env: env,
dirs: server.dirs,
contact: {
email: 'evocell@wizardsat.work',
},
},
};