-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.js
39 lines (38 loc) · 1.03 KB
/
app.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
// Configuration Object for Dojo Loader:
dojoConfig = {
baseUrl: "../DojoExpress", // Where we will put our packages
async: 1, // We want to make sure we are using the "modern" loader
hasCache: {
"host-node": 1, // Ensure we "force" the loader into Node.js mode
"dom": 0 // Ensure that none of the code assumes we have a DOM
},
// While it is possible to use config-tlmSiblingOfDojo to tell the
// loader that your packages share the same root path as the loader,
// this really isn't always a good idea and it is better to be
// explicit about our package map.
packages: [
{
name: "shared",
location: "shared"
},
{
name: "frontend",
location: "frontend"
},
{
name: "backend",
location: "backend"
},
{
name: "dojo",
location: "bower_components/dojo"
},
{
name: "js-lib",
location: "bower_components"
}
],
deps: ["backend/server"]
};
// Now load the Dojo loader
require("./bower_components/dojo/dojo.js");