-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
81 lines (76 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
var globs = {
pre_scripts: '/**/*.coffee',
pre_styles: '/**/*.styl',
scripts: '/**/*.js',
styles: '/**/*.css',
fonts: '/**/*.{eot,svg,ttf,woff}',
images: '/**/*.{gif,jpg,jpeg,png,svg}',
pages: '/**/*.html',
jekyll: '/**/*.{html,xml,txt,md,markdown,csv,json,yml}',
text: '/**/*.{html,xml,txt,md,markdown,csv,json,yml,css,js}',
favicon: '*.ico'
};
var paths = {
src: './src',
build: './build',
site: './site',
assets: '/assets',
fonts: '/assets/fonts',
images: '/assets/images',
scripts: '/assets/scripts',
styles : '/assets/styles'
};
var resources = {
src: {
fonts: paths.src + paths.fonts + globs.fonts,
images: paths.src + paths.images + globs.images,
scripts: paths.src + paths.scripts + globs.pre_scripts,
styles: paths.src + paths.styles + globs.pre_styles,
pages: paths.src + globs.pages,
favicon: paths.src + globs.favicon
},
build: {
fonts: paths.build + paths.fonts + globs.fonts,
images: paths.build + paths.images + globs.images,
scripts: paths.build + paths.scripts + globs.scripts,
styles: paths.build + paths.styles + globs.styles,
pages: paths.build + globs.pages,
favicon: paths.build + globs.favicon
},
site: {
fonts: paths.site + paths.fonts + globs.fonts,
images: paths.site + paths.images + globs.images,
scripts: paths.site + paths.scripts + globs.scripts,
styles: paths.site + paths.styles + globs.styles,
pages: paths.site + globs.pages,
favicon: paths.site + globs.favicon
},
};
var assets = {
scripts: [
{ entry: 'head.coffee', out: 'head.js' },
{ entry: 'main.coffee', out: 'main.js' }
],
styles: [
{ entry: 'main.styl', out: 'main.css' }
]
};
var server = {
build: {
port: 4000,
host: 'localhost',
base_url: ''
},
site: {
port: 5000,
host: 'localhost',
base_url: ''
}
};
module.exports = {
globs: globs,
paths: paths,
resources: resources,
assets: assets,
server: server
};