-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.js
88 lines (81 loc) · 2.54 KB
/
main.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
'use strict';
//no cache when app is loaded
var jsVersion = "bust=v_00_00_" + new Date().getSeconds().toString();
var htmlVersion = "?bust=v_00_00_" + new Date().getSeconds().toString();
require.config({
baseURL: 'Vendors',
urlArgs: jsVersion,
waitSeconds: 0,
paths: {
//helper and javascript plugins
plugins: 'assets/js/plugins',
jsVariables: 'assets/js/jsVariables',
jsMethods: 'assets/js/jsMethods',
extension: 'assets/js/extensions',
//library for jquery
domReady: 'assets/js/plugin/domReady',
jquery: 'assets/libs/jquery/dist/jquery.min',
twitterBootstrap: 'assets/libs/bootstrap/dist/js/bootstrap.min',
lodash: 'assets/libs/lodash/dist/lodash.min',
linqjs: 'assets/js/plugin/linq.min',
//library for angular
angular: 'assets/libs/angular/angular.min',
ngSanitize: 'assets/libs/angular-sanitize/angular-sanitize.min',
ngAnimate: 'assets/libs/angular-animate/angular-animate.min',
restangular: 'assets/libs/restangular/dist/restangular.min',
satellizer: 'assets/libs/satellizer/dist/satellizer.min',
uiRouter: 'assets/libs/angular-ui-router/release/angular-ui-router.min',
oclazyload: 'assets/libs/oclazyload/dist/ocLazyLoad.require.min',
//angularTranslate: 'assets/libs/angular-translate/angular-translate.min',
//ngStorage: 'assets/libs/ngstorage/ngStorage.min',
//application module
appBootstrap: 'app/app.bootstrap',
},
shim: {
domReady: {
deps: ['jquery']
},
twitterBootstrap: {
deps: ['jquery']
},
lodash: {
deps: ['jquery']
},
linqjs: {
deps: ['jquery']
},
angular: {
exports: 'angular'
},
ngSanitize: {
deps: ['angular']
},
ngAnimate: {
deps: ['angular']
},
restangular: {
deps: ['angular', 'lodash']
},
satellizer: {
deps: ['angular']
},
uiRouter: {
deps: ['angular']
},
oclazyload: {
deps: ['angular']
},
//angularTranslate: {
// deps: ['angular']
//},
//ngStorage: {
// deps: ['angular']
//},
appBootstrap: {
deps: ['plugins', 'jsVariables', 'jsMethods', 'extension', 'angular']
}
},
priority: ["angular"],
// kick start application
deps: ['appBootstrap']
});