forked from zestjs/zestjs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zest.cson
82 lines (69 loc) · 1.74 KB
/
zest.cson
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
modules: ['cs!$/zestjs.org', 'cs!$/samples']
port: 8082
pageTemplate: 'cs!$/html'
###
environments:
# useful for testing page loads at network speeds
dev:
staticLatency: 200
renderDelay: 200
###
404:
title: 'Page Not Found'
body: (o) ->
render: '@cs!site/doc-page/doc-page'
options:
section: ''
data: [
chapterName: 'Not Found'
sections: [
sectionName: 'There isn\'t a page called ' + o._url
markdown: """
[Return to the Homepage](/)
"""
]
]
require:
paths:
www: '../'
site: '../zestjs.org'
app: '../zestjs.org/sample-files'
map:
'*':
selector: 'jquery'
build:
stubModules: ['cs']
zestLayer:
include: [
# Includes the 'attachment' of cs!site/doc-page/doc-page.
# ie All assets needed just for the attachment of this component and
# its dependencies instead of rendering, ignoring the module itself.
'$attach!cs!site/doc-page/doc-page'
'app/button1'
'app/button2'
'app/button3'
'app/button4'
'app/button5'
'app/button6'
'app/button7'
'app/button8'
'app/button9'
'app/dialog1'
'app/dialog2'
'app/dialog3'
'app/dialog4'
'app/dialog5'
'app/dialog6'
'cs!app/dialog'
]
exclude: ['jquery']
# this technique can be used to separate build layers instead of having one:
###
modules: [
name: 'site/build'
create: true
include: ['$attach!cs!site/doc-page/doc-page']
exclude: ['zest/excludes']
]
# nb need to add layers: ['site/build'] to page as well
###