Added shim for _

pull/4/head
Keivan Beigi 9 years ago
parent fcfbfae4c1
commit f4d9e3495a

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

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

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

Loading…
Cancel
Save