-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweyland-config.js
45 lines (45 loc) · 1.95 KB
/
weyland-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
exports.config = function(weyland) {
weyland.build('main')
.task.jshint({
include:'app/**/*.js'
})
.task.uglifyjs({
include:['app/**/*.js', 'js/durandal/**/*.js']
})
.task.rjs({
include:['app/**/*.{js,html}', 'js/durandal/**/*.js'],
loaderPluginExtensionMaps:{
'.html':'text'
},
rjs:{
name:'../js/almond-custom', //to deploy with require.js, use the build's name here instead
insertRequire:['main'], //not needed for require
baseUrl : 'app',
wrap:true, //not needed for require
paths : {
"jquery": "../js/jquery/jquery",
"jquery-plugins": "../js/jquery/jquery-plugins",
"jquery-touchswipe": "../js/jquery/jquery-touchswipe",
"bootstrap": "../js/bootstrap/bootstrap.min",
"text": "../js/text",
"knockout": "../js/knockout/knockout",
"knockout-punches": "../js/knockout/knockout.punches",
"knockout-projections": "../js/knockout/knockout-projections",
"knockout-bindings": "../js/knockout/knockout.bindings",
"durandal": "../js/durandal",
"plugins": "../js/durandal/plugins",
"transitions": "../js/durandal/transitions",
"moment": "../js/moment",
"data": "../app/data"
},
inlineText: true,
optimize : 'none',
pragmas: {
build: true
},
stubModules : ['text'],
keepBuildDir: true,
out:'app/main-built.js'
}
});
}