Added shim for _

This commit is contained in:
Keivan Beigi 2015-07-27 22:34:44 -07:00
parent fcfbfae4c1
commit f4d9e3495a
3 changed files with 10 additions and 4 deletions

View File

@ -22,7 +22,7 @@ gulp.task('less', function() {
paths.src.root + 'Settings/settings.less',
paths.src.root + 'System/Logs/logs.less',
paths.src.root + 'System/Update/update.less',
paths.src.root + 'System/Info/info.less',
paths.src.root + 'System/Info/info.less'
];
if (phantom) {
@ -40,8 +40,8 @@ gulp.task('less', function() {
paths.src.root + 'Settings/settings.less',
paths.src.root + 'System/Logs/logs.less',
paths.src.root + 'System/Update/update.less',
paths.src.root + 'System/Info/info.less',
]
paths.src.root + 'System/Info/info.less'
];
}
return gulp.src(src)

View File

@ -0,0 +1,4 @@
var _ = require('../JsLibraries/lodash.underscore');
window._ = window._ || _;
module.exports = window._;

View File

@ -29,6 +29,7 @@ module.exports = {
'backbone.deepmodel': 'JsLibraries/backbone.deep.model',
'backbone.pageable': 'JsLibraries/backbone.pageable',
'backbone-pageable': 'JsLibraries/backbone.pageable',
'backbone.paginator': 'JsLibraries/backbone.paginator',
'backbone.validation': 'Shims/backbone.validation',
'backbone.modelbinder': 'JsLibraries/backbone.modelbinder',
'backbone.collectionview': 'Shims/backbone.collectionview',
@ -37,12 +38,13 @@ module.exports = {
'backgrid.selectall': 'Shims/backbone.backgrid.selectall',
'fullcalendar': 'JsLibraries/fullcalendar',
'backstrech': 'JsLibraries/jquery.backstretch',
'underscore': 'JsLibraries/lodash.underscore',
'underscore': 'Shims/underscore',
'marionette': 'Shims/backbone.marionette',
'signalR': 'Shims/jquery.signalR',
'jquery-ui': 'JsLibraries/jquery-ui',
'jquery.knob': 'JsLibraries/jquery.knob',
'jquery.easypiechart': 'JsLibraries/jquery.easypiechart',
'jquery.easypiechart': 'JsLibraries/jquery.easypiechart',
'jquery.dotdotdot': 'JsLibraries/jquery.dotdotdot',
'messenger': 'Shims/messenger',
'jquery': 'Shims/jquery',