-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdefaults.js
133 lines (131 loc) · 4.53 KB
/
defaults.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/*jshint white: false, node: true, vars: true, indent: 4 */
(function (module, __dirname) {
"use strict";
var path = require("path");
module.exports = {
/**
* The options to be passed to connect.static
*/
"staticOptions":{ /* maxAge: oneDay */ },
/**
* {{#each metas}}
* <meta name="{{name}}" content="{{content}}">
* {{/each}}
*/
"metas":[
{
name: "viewport",
content: "width=device-width"
}
],
/**
* The directories to be searched for public artifacts.
*/
"public":[
path.join(__dirname, "..", "public")
],
/**
* {{#each links}}
* <link rel="{{rel}}" {{#if sizes}}sizes="{{sizes}}"{{#if}} href="{{href}}" />
* {{/each}}
*/
"links":[
{
rel: "apple-touch-icon",
href: "apple-touch-icon-precomposed.png"
},
{
rel: "apple-touch-icon",
sizes: "57x57",
href: "apple-touch-icon-57x57-precomposed.png"
},
{
rel: "apple-touch-icon",
sizes: "72x72",
href: "apple-touch-icon-72x72-precomposed.png"
},
{
rel: "apple-touch-icon",
sizes: "114x114",
href: "apple-touch-icon-114x114-precomposed.png"
}
],
/**
* {{#each stylesheets}}
* <link rel="stylesheet" href="{{this}}">
* {{/each}}
*/
"stylesheets":["css/style.css"],
/**
* Be default we are using require.js; not quite a mainstream tool, so please set this property to false
* unless you want to spend the time using it.
*/
"useRequireJS":true,
/**
* The array of HTML-files defines the html fragments that should be imported
* into the main body of the document in order. The values in this array can either
* be a string, which will be assumed to be a file-name that is search in all "public"
* directories. The value can also be a function. If it is a function, it has to take
* one parameter, which is a callback(err, content). Use content to return the text
* that should be included.
*/
"htmlFiles":[],
/**
* Loading scripts at the end of the file. Unless there is a good reason not to do it,
* you should put all your scripts here.
*
* {{#each tailingScripts}}
* <script src="{{this}}"></script>
* {{/each}}
*/
"trailingScripts":[
"js/app-cache.js"
],
/**
* Adding scripts in the head. Only modernizer should go here. The rest of the scripts
* should go to traillingScripts.
*
* {{#each scripts}}
* <script src="{{this}}"></script>
* {{/each}}
*/
"scripts":[
// "js/libs/modernizr-2.6.1.js"
],
/**
* Files to cache that are not mentioned elsewhere; this list is used to create
* the manifest. All all image resources that are used by the application
*/
"manifest": [
"/favicon.ico",
"startup.png",
"apple-touch-icon-114x114-precomposed.png",
"apple-touch-icon-57x57-precomposed.png",
"apple-touch-icon-72x72-precomposed.png",
"apple-touch-icon-precomposed.png",
"apple-touch-icon.png"
],
/**
* This setting control the script tags of type "text/template" that will be inserted
* into the document for use by jQuery/Zepto.
*
* The values in this array can either be a string, which will be assumed to
* be a file-name that is search in all "templates" directories. The value
* can also be a function. If it is a function, it has to take one parameter,
* which is a callback(err, content). Use content to return the text
* that should be included.
*/
"templateFiles":[],
/**
* allow users to register server-side functions
* @Deprecated
*/
"dispatcher":{
/* projects: {
"GET": function (cb, param1, param2, param3) {
return cb(undefined, { success: true });
}
}*/
}
};
})(module, __dirname);