public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.UseCdn = true;

            var nullBuilder = new NullBuilder();
            var cssTransformer = new CssTransformer();
            var jsTransformer = new JsTransformer();
            var nullOrderer = new NullOrderer();

            /*Common Styles */
            var commonStylesBundle = new Bundle("~/Bundles/CommonStyles");
            commonStylesBundle.Include("~/Content/bootstrap.css");
            commonStylesBundle.Builder = nullBuilder;
            commonStylesBundle.Transforms.Add(cssTransformer);
            commonStylesBundle.Orderer = nullOrderer;

            bundles.Add(commonStylesBundle);

            /*App Css */
            var appStylesBundle = new Bundle("~/Bundles/AppStyles");
            appStylesBundle.Include(
                "~/App/css/base.css",
                "~/App/css/custom.css");
            appStylesBundle.Builder = nullBuilder;
            appStylesBundle.Transforms.Add(cssTransformer);
            appStylesBundle.Orderer = nullOrderer;

            bundles.Add(appStylesBundle);
        }
Example #2
0
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            //bundles.UseCdn = true;
            var nullBuilder = new NullBuilder();
            var cssTransformer = new StyleTransformer();
            var jsTransformer = new ScriptTransformer();
            var nullOrderer = new NullOrderer();

            // JavaScript

            // jQuery
            var jquery = new Bundle("~/bundles/jquery").Include(
                "~/Scripts/jquery-{version}.js");
            jquery.Builder = nullBuilder;
            jquery.Transforms.Add(jsTransformer);
            jquery.Orderer = nullOrderer;

            bundles.Add(jquery);

            // Modernizr
            var modernizr = new Bundle("~/bundles/modernizr").Include(
                "~/Scripts/modernizr-2.6.2.js");
            modernizr.Builder = nullBuilder;
            modernizr.Transforms.Add(jsTransformer);
            modernizr.Orderer = nullOrderer;

            bundles.Add(modernizr);

            // Scripts
            var js = new Bundle("~/bundles/js").Include(
                "~/Scripts/bootstrap.min.js",
                "~/Scripts/app.js");
            js.Builder = nullBuilder;
            js.Transforms.Add(jsTransformer);
            js.Orderer = nullOrderer;

            bundles.Add(js);

            // POST: Validation
            var jqueryVal = new Bundle("~/bundles/jqueryval").Include(
                "~/Scripts/jquery.validate.unobtrusive.min.js",
                "~/Scripts/jquery.validate.min.js");
            jqueryVal.Builder = nullBuilder;
            jqueryVal.Transforms.Add(jsTransformer);
            jqueryVal.Orderer = nullOrderer;

            bundles.Add(jqueryVal);

            // Styles
            var css = new Bundle("~/bundles/css").Include(
                "~/Content/bootstrap/bootstrap.less");
            css.Builder = nullBuilder;
            css.Transforms.Add(cssTransformer);
            css.Transforms.Add(new CssMinify());
            css.Orderer = nullOrderer;

            bundles.Add(css);

            //BundleTable.EnableOptimizations = true;
        }
Example #3
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {

#if !DEBUG
            BundleTable.EnableOptimizations = true;
#endif
            var nullBuilder = new NullBuilder();
            var styleTransformer = new StyleTransformer();
            var nullOrderer = new NullOrderer();

            // 
            // CUSTOM
            //

            var sb = new ScriptBundle("~/bundles/scripts");
            sb.IncludeDirectory("~/assets/js/", "*.js", true);

            bundles.Add(sb);

            var styleBundle = new Bundle("~/bundles/styles");
            styleBundle.IncludeDirectory("~/assets/style/", "*.css", true);
            styleBundle.IncludeDirectory("~/assets/style/", "*.less", true);

            styleBundle.Builder = nullBuilder;
            styleBundle.Transforms.Add(styleTransformer);
            styleBundle.Orderer = nullOrderer;
            bundles.Add(styleBundle);
        }
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254726
        public static void RegisterBundles(BundleCollection bundles)
        {
            //This setting is used when if you have specfied the path Using System.web.Optimization.bundle.Cdnpath then it will try to fetch data from there first
            bundles.UseCdn = true;
            //NullBuilder class is responsible for prevention of early applying of the item transformations and combining of code.
            var nullBuilder = new NullBuilder();
            //StyleTransformer and ScriptTransformer classes produce processing of stylesheets and scripts.
            var styleTransformer = new StyleTransformer();

            var scriptTransformer = new ScriptTransformer();
            //NullOrderer class disables the built-in sorting mechanism and save assets sorted in the order they are declared.
            var nullOrderer = new NullOrderer();

            //create your own scriptbundle

            var scriptbundleToObfuscate = new Bundle("~/bundles/WebFormsJs");
            scriptbundleToObfuscate.Include("~/Scripts/WebForms/WebForms.js",
                  "~/Scripts/WebForms/WebUIValidation.js",
                  "~/Scripts/WebForms/MenuStandards.js",
                  "~/Scripts/WebForms/Focus.js",
                  "~/Scripts/WebForms/GridView.js",
                  "~/Scripts/WebForms/DetailsView.js",
                  "~/Scripts/WebForms/TreeView.js",
                  "~/Scripts/WebForms/WebParts.js");
            scriptbundleToObfuscate.Builder = nullBuilder;
            scriptbundleToObfuscate.Transforms.Add(scriptTransformer);
            scriptbundleToObfuscate.Orderer = nullOrderer;
            bundles.Add(scriptbundleToObfuscate);

            //bundles.Add(new ScriptBundle("~/bundles/WebFormsJs").Include(
            //      "~/Scripts/WebForms/WebForms.js",
            //      "~/Scripts/WebForms/WebUIValidation.js",
            //      "~/Scripts/WebForms/MenuStandards.js",
            //      "~/Scripts/WebForms/Focus.js",
            //      "~/Scripts/WebForms/GridView.js",
            //      "~/Scripts/WebForms/DetailsView.js",
            //      "~/Scripts/WebForms/TreeView.js",
            //      "~/Scripts/WebForms/WebParts.js"));

            bundles.Add(new ScriptBundle("~/bundles/MsAjaxJs").Include(
                "~/Scripts/WebForms/MsAjax/MicrosoftAjax.js",
                "~/Scripts/WebForms/MsAjax/MicrosoftAjaxApplicationServices.js",
                "~/Scripts/WebForms/MsAjax/MicrosoftAjaxTimer.js",
                "~/Scripts/WebForms/MsAjax/MicrosoftAjaxWebForms.js"));

            // Use the Development version of Modernizr to develop with and learn from. Then, when you’re
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                "~/Scripts/modernizr-*"));

            BundleTable.EnableOptimizations = true;
        }
Example #5
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            var nullBuilder = new NullBuilder();
            var styleTransformer = new StyleTransformer();
            var scriptTransformer = new ScriptTransformer();
            var nullOrderer = new NullOrderer();

            BundleResolver.Current = new CustomBundleResolver();
            var cssBundle = new Bundle("~/Content/css");
            cssBundle.Include(
                      "~/Content/bootstrap.css",
                      "~/Content/Site.css",
                      "~/Content/Bootstrap/kendo.common-bootstrap.min.css",
                      "~/Content/Bootstrap/kendo.bootstrap.min.css",
                      "~/Scripts/Toastr/toastr.min.css"
                      );
            cssBundle.Builder = nullBuilder;
            cssBundle.Transforms.Add(styleTransformer);
            cssBundle.Orderer = nullOrderer;
            bundles.Add(cssBundle);

            var jsMainBundle = new Bundle("~/bundles/js");
            jsMainBundle.Include(
                    "~/Scripts/jquery-1.11.1.min.js",
                    "~/Scripts/bootstrap.min.js",
                    "~/Scripts/jquery.unobtrusive-ajax.min.js",
                    "~/Scripts/Toastr/ToastrWrapper.js",
                    "~/Scripts/Toastr/toastr.min.js",
                    "~/Scripts/Kendo/kendo.web.min.js",
                    "~/Scripts/Kendo/kendo.culture.ru-RU.min.js",
                    "~/Scripts/Angular/angular.min.js",
                    "~/Scripts/Kendo/kendo.angular.min.js"
                      );
            jsMainBundle.Builder = nullBuilder;
            jsMainBundle.Transforms.Add(scriptTransformer);
            jsMainBundle.Orderer = nullOrderer;
            bundles.Add(jsMainBundle);

            var jsVendorAppBulk = new Bundle("~/bundles/jsVendorApp");
            jsVendorAppBulk.Include(
                        "~/Scripts/Angular/vendorApp.js"
                      );
            jsVendorAppBulk.Builder = nullBuilder;
            jsVendorAppBulk.Transforms.Add(scriptTransformer);
            jsVendorAppBulk.Orderer = nullOrderer;
            bundles.Add(jsVendorAppBulk);
        }
Example #6
0
        /// <summary>
        /// See http://www.codeproject.com/Articles/863295/Hack-proof-your-Javascript-using-javascript-Obfusc
        /// </summary>
        /// <param name="bundles"></param>
        private static void _RegisterObfuscatedScriptsBundle(BundleCollection bundles)
        {
            // This setting is used when if you have specfied the path Using System.web.Optimization.bundle.Cdnpath then
            // it will try to fetch data from there first
            bundles.UseCdn = true;

            // NullBuilder class is responsible for prevention of early applying of the item transformations and combining of code.
            var nullBuilder = new NullBuilder();

            /*
            // Replace a default bundle resolver in order to the debugging HTTP-handler
            // can use transformations of the corresponding bundle
            BundleResolver.Current = new CustomBundleResolver();
            */

            // StyleTransformer and ScriptTransformer classes produce processing of stylesheets and scripts.
            var styleTransformer = new StyleTransformer();
            var scriptTransformer = new ScriptTransformer();

            // NullOrderer class disables the built-in sorting mechanism and save assets sorted in the order they are declared.
            var nullOrderer = new NullOrderer();

            // create your own scriptbundle
            var obfuscatedScriptBundle = new Bundle("~/Bundles/Gallery")
            {
                Builder = nullBuilder,
                Orderer = nullOrderer
            };
            obfuscatedScriptBundle.Include(
                "~/Scripts/jquery-{version}.js",
                "~/Scripts/knockout-{version}.js",
                "~/Scripts/date.format.js",
                "~/Scripts/jquery.extensions.js",
                "~/Scripts/root.extensions.js",
                "~/Scripts/root.gallery.js",
                "~/Scripts/root.photo-box.js",
                "~/Scripts/root.slider.js");
            obfuscatedScriptBundle.Transforms.Add(scriptTransformer);

            bundles.Add(obfuscatedScriptBundle);
        }
Example #7
0
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            var nullBuilder = new NullBuilder();
            var nullOrderer = new NullOrderer();

            var styleBundle = new CustomStyleBundle("~/Assets/bundle/styles/order");
            styleBundle.Include("~/Assets/bootstrap/css/bootstrap.min.css",
                "~/Assets/bootstrap/css/bootstrap-theme.min.css",
                "~/Assets/bootstrap/css/bootstrap-glyphicons.css",
                "~/Assets/css/shared_order/style.min.css");
            styleBundle.Builder = nullBuilder;
            styleBundle.Orderer = nullOrderer;
            bundles.Add(styleBundle);

            var styleComponentBundle = new CustomStyleBundle("~/Assets/bundle/styles");
            styleComponentBundle.Include("~/Assets/css/shared/*.css");
            styleComponentBundle.Builder = nullBuilder;
            styleComponentBundle.Orderer = nullOrderer;
            bundles.Add(styleComponentBundle);

            var scriptBundle = new CustomScriptBundle("~/Assets/bundle/scripts/order");
            scriptBundle.Include("~/Assets/bootstrap/js/bootstrap.min.js",
                "~/Assets/js/shared_order/angular/angular.min.js",
                "~/Assets/js/shared_order/lodash.js",
                "~/Assets/js/shared_order/restangular.js",
                "~/Assets/js/shared_order/fullcalendar.js",
                "~/Assets/js/shared_order/calendar.js",
                "~/Assets/js/shared_order/gcal.js",
                "~/Assets/js/shared_order/moment.js");
            scriptBundle.Builder = nullBuilder;
            scriptBundle.Orderer = nullOrderer;
            bundles.Add(scriptBundle);

            var scriptComponentBundle = new CustomScriptBundle("~/Assets/bundle/scripts");
            scriptComponentBundle.Include("~/Assets/js/shared/*.js");
            scriptComponentBundle.Builder = nullBuilder;
            scriptComponentBundle.Orderer = nullOrderer;
            bundles.Add(scriptComponentBundle);
        }
        internal static void RegisterBundles(BundleCollection bundleCollection)
        {
            bundleCollection.UseCdn = true;

            var nullBuilder = new NullBuilder();
            var nullOrderer = new NullOrderer();

            //Jquery - TODO: It would be awesome to add a build step to get only what we need from jquery
            var jqueryBundle = new CustomScriptBundle("~/bundles/jquery", "//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js");
            jqueryBundle.Include("~/scripts/vendor/jquery-{version}.js");
            jqueryBundle.CdnFallbackExpression = "window.jQuery";
            jqueryBundle.Orderer = nullOrderer;
            bundleCollection.Add(jqueryBundle);

            //Modernizr - TODO: same as jquery build step
            var modernizrBundle = new CustomScriptBundle("~/bundles/modernizr");
            modernizrBundle.Include("~/scripts/vendor/modernizr-2.6.2.js");
            modernizrBundle.Orderer = nullOrderer;
            bundleCollection.Add(modernizrBundle);

            //Remaining js
            var mainjsBundle = new CustomScriptBundle("~/bundles/site-js");
            mainjsBundle.Include("~/scripts/main.js", "~/scripts/plugins.js");
            mainjsBundle.Orderer = nullOrderer;
            bundleCollection.Add(mainjsBundle);

            //Less
            var mainlessBundle = new CustomStyleBundle("~/bundles/site-less");
            mainlessBundle.Include("~/less/main.less");
            mainlessBundle.Orderer = nullOrderer;
            bundleCollection.Add(mainlessBundle);

            //Css - Place plugin's css files
            var maincssBundle = new CustomStyleBundle("~/bundles/site-css");
            maincssBundle.IncludeDirectory("~/css", "*.css");
            maincssBundle.Orderer = nullOrderer;
            bundleCollection.Add(maincssBundle);
        }
 public SmartStyleBundle(string virtualPath, string cdnPath)
     : base(virtualPath, cdnPath, new IBundleTransform[] { BundleTransformerContext.Current.GetCssTransformerInstance() })
 {
     Builder = new NullBuilder();
 }
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            var nullBuilder = new NullBuilder();
            var styleTransformer = new StyleTransformer();
            var scriptTransformer = new ScriptTransformer();

            // Replace a default bundle resolver in order to the debugging HTTP-handler
            // can use transformations of the corresponding bundle
            BundleResolver.Current = new CustomBundleResolver();

            var commonStylesBundle = new Bundle("~/bundles/CommonStyles");
            commonStylesBundle.Include(
                "~/Content/css/tablednd.css",
                "~/Content/site.less",
                "~/Content/css/themes/base/jquery-ui.css");
            commonStylesBundle.Builder = nullBuilder;
            commonStylesBundle.Orderer = new NullOrderer();
            commonStylesBundle.Transforms.Add(styleTransformer);
            bundles.Add(commonStylesBundle);

            var jQueryBundle = new Bundle("~/bundles/Jquery");
            jQueryBundle.Include(
                "~/Scripts/Common/jquery-{version}.js",
                "~/Scripts/Common/jquery.unobtrusive*",
                "~/Scripts/Common/jquery.validate*");
            jQueryBundle.Builder = nullBuilder;
            jQueryBundle.Transforms.Add(scriptTransformer);
            bundles.Add(jQueryBundle);

            var jQueryUiBundle = new Bundle("~/bundles/JqueryUI");
            jQueryUiBundle.Include(
                "~/Scripts/Common/jquery.ui.core.js",
                "~/Scripts/Common/jquery-ui.js",
                "~/Scripts/Common/jquery.ui.dialog.js",
                "~/Scripts/Common/jquery.ui.touch-punch.min.js");
            jQueryUiBundle.Builder = nullBuilder;
            jQueryUiBundle.Transforms.Add(scriptTransformer);
            bundles.Add(jQueryUiBundle);

            var commonScriptsBundle = new Bundle("~/bundles/CommonScripts");
            commonScriptsBundle.Include(
                "~/Scripts/Common/jquery.DataTables.min.js",
                "~/Scripts/Common/jquery.jeditable.js",
                "~/Scripts/Common/jquery.DataTables.editable.js",
                "~/Scripts/Common/jquery.jeditable.checkbox.js",
                "~/Scripts/Common/jquery.tablednd.js",
                "~/Scripts/Common/jquery.blockUI.js",
                "~/Scripts/Common/knockout-{version}.js");
            commonScriptsBundle.Builder = nullBuilder;
            commonScriptsBundle.Transforms.Add(scriptTransformer);
            bundles.Add(commonScriptsBundle);

            var customScriptsBundle = new Bundle("~/bundles/CustomScripts");
            customScriptsBundle.Include(
                "~/Scripts/Site/Site.js",
                "~/Scripts/Site/Session.js",
                "~/Scripts/Dialog/Dialog.js",
                "~/Scripts/Shared/Layout.js",
                "~/Scripts/Home/Index.js",
                "~/Scripts/Preferences/Index.js");
            customScriptsBundle.Builder = nullBuilder;
            customScriptsBundle.Transforms.Add(scriptTransformer);
            bundles.Add(customScriptsBundle);

            // uncomment to see optimizations locally
            //BundleTable.EnableOptimizations = true;
        }
Example #11
0
        public static void RegisterBundles(BundleCollection bundles)
        {

            // Bundle Transformer
            nullBuilder = new NullBuilder();
            styleTransformer = new StyleTransformer();
            scriptTransformer = new ScriptTransformer();
            nullOrderer = new NullOrderer();

            // Replace a default bundle resolver in order to the debugging HTTP-handler
            // can use transformations of the corresponding bundle
            BundleResolver.Current = new CustomBundleResolver();
            //
            bundles.Add(createBundle("~/bundles/jquery", new string[] { "~/Scripts/jquery-{version}.js" }, "script"));
            bundles.Add(createBundle("~/bundles/jqueryval", new string[] { "~/Scripts/jquery.validate*" }, "script"));
            bundles.Add(createBundle("~/bundles/modernizr", new string[] { "~/Scripts/modernizr-*" }, "script"));
            bundles.Add(createBundle("~/bundles/bootstrap", new string[] {"~/Scripts/bootstrap.js",
                      "~/Scripts/respond.js" }, "script"));
            bundles.Add(createBundle("~/Content/css", new string[] {"~/Content/bootstrap.css",
                      "~/Content/site.css" }, "style"));
            bundles.Add(createBundle("~/themes/main", new string[] {"~/Content/css/main.css",
                "~/Content/css/devices.css",
                "~/Content/css/post.css",
                "~/Content/css/validationEngine.jquery.css",
                "~/Content/css/jquery.fancybox.css" }, "style"));
            bundles.Add(createBundle("~/css/slider", new string[] { "~/Content/css/paralax_slider.css" }, "style"));
            bundles.Add(createBundle("~/bundles/slider", new string[] { "~/Content/javascript/jquery.cslider.js" }, "script"));
            bundles.Add(createBundle("~/css/data", new string[] { "~/Content/css/Data.css" }, "style"));
            bundles.Add(createBundle("~/css/reset", new string[] { "~/Content/css/reset.css" }, "style"));
            bundles.Add(createBundle("~/css/login", new string[] {"~/Content/css/loginforms.css",
                "~/Content/css/buttons-si.css" }, "style"));
            bundles.Add(createBundle("~/css/sidebar", new string[] { "~/Content/css/sidebar.css" }, "style"));
            bundles.Add(createBundle("~/bundles/fancybox", new string[] { "~/Content/javascript/jquery.fancybox.js?v=2.1.3" }, "script"));
            //bundles.Add(createBundle("~/css/data", new string[] { }, "script"));



            
            //bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
            //            "~/Scripts/jquery-{version}.js"));

            //bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
            //            "~/Scripts/jquery.validate*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            //bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
            //            "~/Scripts/modernizr-*"));

            //bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
            //          "~/Scripts/bootstrap.js",
            //          "~/Scripts/respond.js"));

            //bundles.Add(new StyleBundle("~/Content/css").Include(
            //          "~/Content/bootstrap.css",
            //          "~/Content/site.css"));
            //bundles.Add(new StyleBundle("~/themes/main").Include(
            //    "~/Content/css/main.css",
            //    "~/Content/css/devices.css",
            //    "~/Content/css/post.css",
            //    "~/Content/css/validationEngine.jquery.css",
            //    "~/Content/css/jquery.fancybox.css"));

            //bundles.Add(new StyleBundle("~/css/slider").Include(
            //    "~/Content/css/paralax_slider.css"));

            //bundles.Add(new ScriptBundle("~/bundles/slider").Include(
            //    "~/Content/javascript/jquery.cslider.js"));

            //bundles.Add(new ScriptBundle("~/bundles/fancybox").Include(
            //    "~/Content/javascript/jquery.fancybox.js?v=2.1.3"));

            //bundles.Add(new StyleBundle("~/css/data").Include(
            //    "~/Content/css/Data.css"));

            //bundles.Add(new StyleBundle("~/css/reset").Include(
            //    "~/Content/css/reset.css"));

            //bundles.Add(new StyleBundle("~/css/login").Include(
            //    "~/Content/css/loginforms.css",
            //    "~/Content/css/buttons-si.css"));

            //bundles.Add(new StyleBundle("~/css/sidebar").Include(
            //    "~/Content/css/sidebar.css"));
        }
        public static void registerBundles(BundleCollection bundles)
        {
            var nullBuilder = new NullBuilder();
            var cssTransformer = new CssTransformer();
            IBundleTransform jsTransformer = new JsTransformer(new BundleTransformer.Yui.Minifiers.YuiJsMinifier());
            var nullOrderer = new NullOrderer();

            //Styles
            var cssBase = new Bundle("~/Design/Styles/base", new CssMinify())
            .Include("~/Design/Styles/style_6in1.css", new CssRewriteUrlTransform())
                .Include("~/Design/Styles/style.css", new CssRewriteUrlTransform());

            var cssPlugin = new Bundle("~/Design/Styles/plugins", new CssMinify())
                .Include("~/Design/Styles/yl-modal.css", new CssRewriteUrlTransform())
                .Include("~/Design/Styles/jquery-toggle-buttons.css", new CssRewriteUrlTransform())
                .Include("~/Design/Styles/jquery-hint.css", new CssRewriteUrlTransform())
                .Include("~/Design/Styles/bootstrap-tagsinput.css", new CssRewriteUrlTransform());

            var cssBootstrap = new Bundle("~/Design/Styles/Bootstrap/bootstrap", new CssMinify())
                .Include("~/Design/Styles/Bootstrap/bootstrap.css")
                .Include("~/Design/Styles/Bootstrap/bootstrap-responsive.css", new CssRewriteUrlTransform())
                .Include("~/Design/Styles/Bootstrap/uniform.default.css", new CssRewriteUrlTransform())
                .Include("~/Design/Styles/Bootstrap/proggress.css", new CssRewriteUrlTransform());

            var cssCalendar = new Bundle("~/Design/Styles/Calendar/calendar", new CssMinify())
                .Include("~/Design/Styles/Calendar/fullcalendar.css", new CssRewriteUrlTransform());

            var cssDatatables = new Bundle("~/Design/Styles/Datatables/datatables", new CssMinify())
                .Include("~/Design/Styles/Datatables/DT_bootstrap.css", new CssRewriteUrlTransform())
                .Include("~/Design/Styles/Datatables/responsive-tables.css", new CssRewriteUrlTransform());

            var cssTEditor = new Bundle("~/Design/Styles/TEditor/editor", new CssMinify())
               .Include("~/Design/Styles/TEditor/style.css", new CssRewriteUrlTransform());

            var cssValidate = new Bundle("~/Design/Styles/Validate/validate", new CssMinify())
               .Include("~/Design/Styles/Validate/validationEngine.jquery.css", new CssRewriteUrlTransform());

            var cssDatePicker = new Bundle("~/Design/Styles/DatePicker/datepicker", new CssMinify())
                .Include("~/Design/Styles/DatePicker/daterangepicker.css", new CssRewriteUrlTransform())
                .Include("~/Design/Styles/DatePicker/datepicker.css", new CssRewriteUrlTransform());

            //Javascript
            var js = new Bundle("~/Scripts/base", jsTransformer)
                .Include("~/Scripts/main.js");

            //Script de Jquery
            var jsJQuery = new Bundle("~/Scripts/jquery", jsTransformer)
                .Include("~/Scripts/jquery-{version}.js");

            var jsJQueryUI = new Bundle("~/Scripts/jqueryui", jsTransformer)
                .Include("~/Scripts/jquery-ui.js");

            //Plugins
            var jsPlugins = new Bundle("~/Scripts/plugins", jsTransformer)
                .Include("~/Scripts/jquery-tmpl.js")
                .Include("~/Scripts/jquery-json-{version}.js")
                .Include("~/Scripts/jquery-hint.js")
                .Include("~/Scripts/jquery.uniform.js")
                .Include("~/Scripts/jquery.toggle.buttons.js")
                .Include("~/Scripts/yl-modal.js")
                .Include("~/Scripts/jquery-meiomask.js")
                .Include("~/Scripts/bootstrap-tagsinput.js")
                .Include("~/Scripts/jquery.cookie.js");

            //Bootstrap
            var jsBootstrap = new Bundle("~/Scripts/Bootstrap/bootstrap", jsTransformer)
                .Include("~/Scripts/Bootstrap/bootstrap.js")
                .Include("~/Scripts/Bootstrap/main.js");

            //Calendar
            var jsCalendar = new Bundle("~/Scripts/Calendar/calendar", jsTransformer)
                .Include("~/Scripts/Calendar/fullcalendar.js");

            //DataTables
            var jsDataTables = new Bundle("~/Scripts/Datatables/datatables", jsTransformer)
                .Include("~/Scripts/Datatables/jquery.tablesorter.min.js")
                .Include("~/Scripts/Datatables/jquery.dataTables.js")
                .Include("~/Scripts/Datatables/DT_bootstrap.js")
                .Include("~/Scripts/Datatables/responsive-tables.js");

            //Flot
            var jsFlot = new Bundle("~/Scripts/Flot/flot", jsTransformer)
            .Include("~/Scripts/Flot/jquery.flot.js")
            .Include("~/Scripts/Flot/jquery.colorhelpers.js")
            .Include("~/Scripts/Flot/jquery.easy-pie-chart.js")
            .Include("~/Scripts/Flot/jquery.flot.crosshair.js")
            .Include("~/Scripts/Flot/jquery.flot.fillbetween.js")
            .Include("~/Scripts/Flot/jquery.flot.image.js")
            .Include("~/Scripts/Flot/jquery.flot.navigate.js")
            .Include("~/Scripts/Flot/jquery.flot.pie.js")
            .Include("~/Scripts/Flot/jquery.flot.resize.js")
            .Include("~/Scripts/Flot/jquery.flot.selection.js")
            .Include("~/Scripts/Flot/jquery.flot.stack.js")
            .Include("~/Scripts/Flot/jquery.flot.symbol.js")
            .Include("~/Scripts/Flot/jquery.flot.threshold.js")
            .Include("~/Scripts/Flot/jquery.sparkline.min.js")
            .Include("~/Scripts/Flot/excanvas.js");

            //MarkitUp
            var jsMarkitup = new Bundle("~/Scripts/Markitup/editor", jsTransformer)
                .Include("~/Scripts/Markitup/*.js");

            var jsTEditor = new Bundle("~/Scripts/TEditor/editor", jsTransformer)
                .Include("~/Scripts/TEditor/jquery-te-1.4.0.js");

            var jsValidate = new Bundle("~/Scripts/Validate/validate", jsTransformer)
                .Include("~/Scripts/Validate/jquery.validate.js")
                .Include("~/Scripts/Validate/jquery.validationEngine.js")
                .Include("~/Scripts/Validate/jquery.validationEngine-pt_BR.js");

            var jsDatePicker = new Bundle("~/Scripts/DatePicker/datepicker", jsTransformer)
                .Include("~/Scripts/DatePicker/date.js")
                .Include("~/Scripts/DatePicker/jquery-daterangepicker.js")
                .Include("~/Scripts/DatePicker/jquery-datepicker.js");

            #if DEBUG
            //Remove o minify caso esteja em modo debug
            cssBase.Transforms.Clear();
            cssPlugin.Transforms.Clear();
            cssBootstrap.Transforms.Clear();
            cssCalendar.Transforms.Clear();
            cssDatatables.Transforms.Clear();
            cssTEditor.Transforms.Clear();
            cssValidate.Transforms.Clear();
            cssDatePicker.Transforms.Clear();

            js.Transforms.Clear();
            jsJQuery.Transforms.Clear();
            jsPlugins.Transforms.Clear();
            jsJQueryUI.Transforms.Clear();
            jsBootstrap.Transforms.Clear();
            jsCalendar.Transforms.Clear();
            jsDataTables.Transforms.Clear();
            jsFlot.Transforms.Clear();
            jsMarkitup.Transforms.Clear();
            jsTEditor.Transforms.Clear();
            jsValidate.Transforms.Clear();
            jsDatePicker.Transforms.Clear();

            #endif

            bundles.Add(cssBase);
            bundles.Add(cssPlugin);
            bundles.Add(cssBootstrap);
            bundles.Add(cssCalendar);
            bundles.Add(cssDatatables);
            bundles.Add(cssTEditor);
            bundles.Add(cssValidate);
            bundles.Add(cssDatePicker);

            bundles.Add(js);
            bundles.Add(jsJQuery);
            bundles.Add(jsPlugins);
            bundles.Add(jsJQueryUI);
            bundles.Add(jsBootstrap);
            bundles.Add(jsCalendar);
            bundles.Add(jsDataTables);
            bundles.Add(jsFlot);
            bundles.Add(jsMarkitup);
            bundles.Add(jsTEditor);
            bundles.Add(jsValidate);
            bundles.Add(jsDatePicker);
        }
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.UseCdn = true;

            var nullBuilder = new NullBuilder();
            var styleTransformer = new StyleTransformer();
            var scriptTransformer = new ScriptTransformer();
            var nullOrderer = new NullOrderer();

            // Replace a default bundle resolver in order to the debugging HTTP-handler
            // can use transformations of the corresponding bundle
            BundleResolver.Current = new CustomBundleResolver();


            //Style Bundles
            var bootstrapStylesBundle = new Bundle("~/css/bootstrap");
            bootstrapStylesBundle.Include(
                "~/assets/css/bootstrap.min.css");
            bootstrapStylesBundle.Builder = nullBuilder;
            bootstrapStylesBundle.Transforms.Add(styleTransformer);
            bootstrapStylesBundle.Orderer = nullOrderer;
            bundles.Add(bootstrapStylesBundle);

            var bootstrapRtlStylesBundle = new Bundle("~/css/bootstrap-rtl");
            bootstrapRtlStylesBundle.Include(
                "~/assets/css/bootstrap-rtl.min.css");
            bootstrapRtlStylesBundle.Builder = nullBuilder;
            bootstrapRtlStylesBundle.Transforms.Add(styleTransformer);
            bootstrapRtlStylesBundle.Orderer = nullOrderer;
            bundles.Add(bootstrapRtlStylesBundle);

            var beyondStylesBundle = new Bundle("~/css/beyond");
            beyondStylesBundle.Include(
                "~/assets/css/beyond.min.css",
                "~/assets/css/demo.min.css",
                "~/assets/css/font-awesome.min.css",
                "~/assets/css/typicons.min.css",
                "~/assets/css/weather-icons.min.css",
                "~/assets/css/animate.min.css");
            beyondStylesBundle.Builder = nullBuilder;
            beyondStylesBundle.Transforms.Add(styleTransformer);
            beyondStylesBundle.Orderer = nullOrderer;
            bundles.Add(beyondStylesBundle);

            var beyondRtlStylesBundle = new Bundle("~/css/beyond-rtl");
            beyondRtlStylesBundle.Include(
                "~/assets/css/beyond-rtl.min.css",
                "~/assets/css/demo.min.css",
                "~/assets/css/font-awesome.min.css",
                "~/assets/css/typicons.min.css",
                "~/assets/css/weather-icons.min.css",
                "~/assets/css/animate.min.css");
            beyondRtlStylesBundle.Builder = nullBuilder;
            beyondRtlStylesBundle.Transforms.Add(styleTransformer);
            beyondRtlStylesBundle.Orderer = nullOrderer;
            bundles.Add(beyondRtlStylesBundle);


            //Script Bunldes
            var skinBundle = new Bundle("~/bundles/skin");
            skinBundle.Include("~/assets/js/skins.min.js");
            skinBundle.Builder = nullBuilder;
            skinBundle.Transforms.Add(scriptTransformer);
            skinBundle.Orderer = nullOrderer;
            bundles.Add(skinBundle);

            var jQueryBundle = new Bundle("~/bundles/jquery");
            jQueryBundle.Include("~/assets/js/jquery.min.js");
            jQueryBundle.Builder = nullBuilder;
            jQueryBundle.Transforms.Add(scriptTransformer);
            jQueryBundle.Orderer = nullOrderer;
            bundles.Add(jQueryBundle);

            var bootstrapBundle = new Bundle("~/bundles/bootstrap");
            bootstrapBundle.Include(
                  "~/assets/js/bootstrap.min.js",
                "~/assets/js/slimscroll/jquery.slimscroll.min.js");
            bootstrapBundle.Builder = nullBuilder;
            bootstrapBundle.Transforms.Add(scriptTransformer);
            bootstrapBundle.Orderer = nullOrderer;
            bundles.Add(bootstrapBundle);

            var beyondBundle = new Bundle("~/bundles/beyond");
            beyondBundle.Include(
                  "~/assets/js/beyond.min.js");
            beyondBundle.Builder = nullBuilder;
            beyondBundle.Transforms.Add(scriptTransformer);
            beyondBundle.Orderer = nullOrderer;
            bundles.Add(beyondBundle);


            var jQueryValBundle = new Bundle("~/bundles/jqueryval");
            jQueryValBundle.Include(
                 "~/assets/js/jqueryval/jquery.validate*");
            jQueryValBundle.Builder = nullBuilder;
            jQueryValBundle.Transforms.Add(scriptTransformer);
            jQueryValBundle.Orderer = nullOrderer;
            bundles.Add(jQueryValBundle);

        }
Example #14
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            var nullBuilder = new NullBuilder();
            var styleTransformer = new StyleTransformer();
            var scriptTransformer = new ScriptTransformer();
            var nullOrderer = new NullOrderer();

            // Replace a default bundle resolver in order to the debugging HTTP-handler
            // can use transformations of the corresponding bundle
            BundleResolver.Current = new CustomBundleResolver();

            var commonStylesBundle = new Bundle("~/bundles/CommonStyles");
            commonStylesBundle.Include(
                    "~/Content/tablednd.css",
                    "~/Content/bootstrap.css",
                    "~/Content/bootstrap-theme.css",
                    "~/Content/bootstrap-datepicker.css",
                    "~/Content/Site.less");
            commonStylesBundle.Builder = nullBuilder;
            commonStylesBundle.Orderer = nullOrderer;
            commonStylesBundle.Transforms.Add(styleTransformer);
            bundles.Add(commonStylesBundle);

            var commonScriptsBundle = new Bundle("~/bundles/CommonScripts");
            commonScriptsBundle.Include(
                "~/Scripts/jquery-{version}.js",
                "~/Scripts/knockout-{version}.js",
                "~/Scripts/bootstrap-datepicker.js",
                "~/Scripts/jquery.tablednd.js",
                "~/Scripts/moment.js");
            commonScriptsBundle.Builder = nullBuilder;
            commonScriptsBundle.Transforms.Add(scriptTransformer);
            bundles.Add(commonScriptsBundle);

            var customScriptsBundle = new Bundle("~/bundles/CustomScripts");
            customScriptsBundle.Include(
                    "~/Scripts/Site/Site.js",
                    "~/Scripts/Site/Session.js",
                    "~/Scripts/Site/Namespace.js",
                    "~/Scripts/Dialog/Dialog.js",
                    "~/Scripts/Shared/_LogonPartial.js",
                    "~/Scripts/Home/Index.js",
                    "~/Scripts/Songs/Index.js",
                    "~/Scripts/Setlists/Index.js",
                    "~/Scripts/Setlists/Sets.js",
                    "~/Scripts/Gigs/Index.js",
                    "~/Scripts/Bands/Index.js",
                    "~/Scripts/Bands/Index.js",
                    "~/Scripts/Members/Index.js",
                    "~/Scripts/Users/Index.js",
                    "~/Scripts/Instruments/Index.js",
                    "~/Scripts/Genres/Index.js");
            customScriptsBundle.Builder = nullBuilder;
            customScriptsBundle.Transforms.Add(scriptTransformer);
            bundles.Add(customScriptsBundle);

            var modernizrScriptsBundle = new Bundle("~/bundles/ModernizrScripts");
            modernizrScriptsBundle.Include(
                    "~/Scripts/modernizr-*");
            modernizrScriptsBundle.Builder = nullBuilder;
            modernizrScriptsBundle.Transforms.Add(scriptTransformer);
            bundles.Add(modernizrScriptsBundle);

            var bootstrapScriptsBundle = new Bundle("~/bundles/BootstrapScripts");
            bootstrapScriptsBundle.Include(
                     "~/Scripts/bootstrap.js",
                     "~/Scripts/bootstrap-datepicker.js",
                     "~/Scripts/respond.js");
            bootstrapScriptsBundle.Builder = nullBuilder;
            bootstrapScriptsBundle.Transforms.Add(scriptTransformer);
            bundles.Add(bootstrapScriptsBundle);
        }
Example #15
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            _bundles = bundles;
            bundles.UseCdn = true;

            var nullBuilder = new NullBuilder();
            var nullOrderer = new NullOrderer();

            // Replace a default bundle resolver in order to the debugging HTTP-handler
            // can use transformations of the corresponding bundle
            BundleResolver.Current = new CustomBundleResolver();

            var commonStylesBundle = new CustomStyleBundle("~/Bundles/CommonStyles");
            commonStylesBundle.Include(
                "~/Content/bootstrap.css",
                "~/Content/font-awesome.css");
            commonStylesBundle.Orderer = nullOrderer;
            bundles.Add(commonStylesBundle);

            var themeFolders = Directory.GetDirectories(HostingEnvironment.MapPath("~/Content/Themes"));
            foreach (var folder in themeFolders)
            {
                try
                {
                    var themeName = folder.Substring(folder.LastIndexOf(@"\", System.StringComparison.Ordinal) + 1);

                    var stylesBundle = new CustomStyleBundle(string.Format("~/Bundles/Themes/{0}/Styles", themeName));
                    stylesBundle.Include(
                        string.Format("~/Content/Themes/{0}/css/*.css", themeName));
                    //string.Format("~/Content/Themes/{0}/css/*.less", themeName));
                    stylesBundle.Orderer = nullOrderer;
                    bundles.Add(stylesBundle);

                    var scriptsBundle = new CustomScriptBundle(string.Format("~/Bundles/Themes/{0}/Scripts", themeName));
                    scriptsBundle.Include(string.Format("~/Content/Themes/{0}/js/*.js", themeName));
                    scriptsBundle.Orderer = nullOrderer;
                    bundles.Add(scriptsBundle);
                }
                catch (ArgumentException err)
                {
                    if (err.ParamName != "directoryVirtualPath") throw;
                }
            }

            var adminStylesBundle = new CustomStyleBundle("~/Bundles/AdminStyles");
            adminStylesBundle.Include(
                "~/Content/admin/css/animate.css",
                "~/Content/admin/css/style.css",
                "~/Content/admin/css/*.css");
            adminStylesBundle.Orderer = nullOrderer;
            bundles.Add(adminStylesBundle);

            var modernizrBundle = new CustomScriptBundle("~/Bundles/Modernizr");
            modernizrBundle.Include("~/Scripts/modernizr-2.*");
            modernizrBundle.Orderer = nullOrderer;
            bundles.Add(modernizrBundle);

            var paceBundle = new CustomScriptBundle("~/Bundles/Pace");
            paceBundle.Include("~/Content/admin/js/pace.min.js");
            paceBundle.Orderer = nullOrderer;
            bundles.Add(paceBundle);

            var jQueryBundle = new CustomScriptBundle("~/Bundles/Jquery",
                "http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.1.min.js");
            jQueryBundle.Include("~/Scripts/jquery-{version}.js");
            jQueryBundle.Orderer = nullOrderer;
            jQueryBundle.CdnFallbackExpression = "window.jquery";
            bundles.Add(jQueryBundle);

            var commonScriptsBundle = new CustomScriptBundle("~/Bundles/CommonScripts");
            commonScriptsBundle.Include(
                "~/Scripts/jquery.validate.js",
                "~/Scripts/jquery.validate.unobtrusive.js",
                "~/Scripts/jquery.unobtrusive-ajax.js",
                "~/Scripts/knockout-3.*",
                "~/Scripts/knockout.mapping-*",
                "~/Scripts/bootstrap.js",
                "~/Scripts/bootbox.js",
                "~/Scripts/alerts.js",
                "~/Scripts/misc.js");

            commonScriptsBundle.Orderer = nullOrderer;
            bundles.Add(commonScriptsBundle);

            var adminScriptBundle = new CustomScriptBundle("~/Bundles/AdminScripts");
            adminScriptBundle.Include(
                "~/Content/admin/js/style.js",
                "~/Content/admin/js/misc.js",
                "~/Content/admin/js/jquery.metisMenu.js",
                "~/Content/admin/js/summernote.min.js",
                "~/Content/admin/js/intro.min.js",
                "~/Scripts/jquery.treegrid.js",
                "~/Scripts/moment-with-locales.js");
            adminScriptBundle.Orderer = nullOrderer;
            bundles.Add(adminScriptBundle);

            var oldBrowsersScriptBundle = new CustomScriptBundle("~/Bundles/OldBrowsers");
            oldBrowsersScriptBundle.Include("~/Scripts/respond.js");
            oldBrowsersScriptBundle.Orderer = nullOrderer;
            bundles.Add(oldBrowsersScriptBundle);

            BundleTable.EnableOptimizations = false;
        }
Example #16
0
		public static void RegisterBundles(BundleCollection bundles)
		{
			BundleTable.EnableOptimizations = false;

			var jsTransformer = new ScriptTransformer();
			var nullOrderer = new NullOrderer();
			var nullBuilder = new NullBuilder();

			var styleTransformer = new StyleTransformer(new KryzhanovskyCssMinifier(), new ITranslator[] {new LessTranslator() })
			{
				CombineFilesBeforeMinification = true,
				UsePreMinifiedFiles = true
			};

			var styleSassTransformer = new StyleTransformer(new KryzhanovskyCssMinifier(), new ITranslator[] { new SassAndScssTranslator() })
			{
				CombineFilesBeforeMinification = true,
				UsePreMinifiedFiles = true
			};

			#region UnitGridSystem

			var styleUgsBundle = new CustomStyleBundle("~/unitgs/style");
			styleUgsBundle.Include("~/content/css/styleUgs.scss");
			styleUgsBundle.Transforms.Add(styleSassTransformer);
			styleUgsBundle.Builder = nullBuilder;
			styleUgsBundle.Orderer = nullOrderer;
			bundles.Add(styleUgsBundle);

			#endregion

			var styleBundle = new CustomStyleBundle("~/site/style");
			styleBundle.Include("~/content/css/site.less");
			styleBundle.Transforms.Add(styleTransformer);
			styleBundle.Builder = nullBuilder;
			styleBundle.Orderer = nullOrderer;
			bundles.Add(styleBundle);

			var sBtBundle = new CustomStyleBundle("~/site/sbootstrap");
			sBtBundle.Include("~/content/css/bootstrap/bootstrap.css",
				"~/content/css/ie10-viewport-bug-workaround.css");
			sBtBundle.Transforms.Add(styleTransformer);
			sBtBundle.Builder = nullBuilder;
			sBtBundle.Orderer = nullOrderer;
			bundles.Add(sBtBundle);

			var sGtBundle = new CustomStyleBundle("~/site/sgtreetable");
			sGtBundle.Include("~/content/css/gtreetable/bootstrap-gtreetable.css");
			sGtBundle.Transforms.Add(styleTransformer);
			sGtBundle.Builder = nullBuilder;
			sGtBundle.Orderer = nullOrderer;
			bundles.Add(sGtBundle);

			var sFancyTree = new CustomStyleBundle("~/site/sfancytree");
			sFancyTree.Include("~/content/css/fancytree/skin-bootstrap/ui.fancytree.css");
			sFancyTree.Transforms.Add(styleTransformer);
			sFancyTree.Builder = nullBuilder;
			sFancyTree.Orderer = nullOrderer;
			bundles.Add(sFancyTree);





			var jqBundle = new CustomScriptBundle("~/site/jq");
			jqBundle.Include("~/content/js/jq/jquery-{version}.js");
			jqBundle.Transforms.Add(jsTransformer);
			jqBundle.Orderer = nullOrderer;
			bundles.Add(jqBundle);

			var jqUiBundel = new CustomScriptBundle("~/site/jqUi");
			jqUiBundel.Include("~/content/js/jq/ui/jquery-ui-{version}.js", "~/content/js/jq/browser/jquery.browser.js");
			jqUiBundel.Transforms.Add(jsTransformer);
			jqUiBundel.Orderer = nullOrderer;
			bundles.Add(jqUiBundel);

			var jBtBundle = new CustomScriptBundle("~/site/jbootstrap");
			jBtBundle.Include("~/content/js/bootstrap/bootstrap.js",
				"~/content/js/ie10-viewport-bug-workaround.js");
			jBtBundle.Transforms.Add(jsTransformer);
			jBtBundle.Orderer = nullOrderer;
			bundles.Add(jBtBundle);

			var jGtBundle = new CustomScriptBundle("~/site/jgtreetanle");
			jGtBundle.Include("~/content/js/gtreetable/bootstrap-gtreetable.js",
				"~/content/js/gtreetable/languages/bootstrap-gtreetable.ru.js");
			jGtBundle.Transforms.Add(jsTransformer);
			jGtBundle.Orderer = nullOrderer;
			bundles.Add(jGtBundle);

			var jqCkBundle = new CustomScriptBundle("~/site/jqCookie");
			jqCkBundle.Include("~/content/js/jq/cookie/jquery.cookie-{version}.js");
			jqCkBundle.Transforms.Add(jsTransformer);
			jqCkBundle.Orderer = nullOrderer;
			bundles.Add(jqCkBundle);

			var jqTsBundle = new CustomScriptBundle("~/site/jqToaster");
			jqTsBundle.Include("~/content/js/jq/toaster/jquery.toaster.js");
			jqTsBundle.Transforms.Add(jsTransformer);
			jqTsBundle.Orderer = nullOrderer;
			bundles.Add(jqTsBundle);

			var jqFancyTreeBundle = new CustomScriptBundle("~/site/jqFancyTree");
			jqFancyTreeBundle.Include("~/content/js/jq/fancytree/jquery.fancytree.js",
				"~/content/js/jq/fancytree/jquery.fancytree.glyph.js");
			jqFancyTreeBundle.Transforms.Add(jsTransformer);
			jqFancyTreeBundle.Orderer = nullOrderer;
			bundles.Add(jqFancyTreeBundle);
		}
Example #17
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            var nullBuilder = new NullBuilder();
            var styleTransformer = new StyleTransformer();
            var scriptTransformer = new ScriptTransformer();

            // Replace a default bundle resolver in order to the debugging HTTP-handler
            // can use transformations of the corresponding bundle
            BundleResolver.Current = new CustomBundleResolver();

            var commonStylesBundle = new Bundle("~/bundles/CommonStyles");
            commonStylesBundle.Include(
                "~/Content/css/*.css",
                "~/Content/site.less");
            commonStylesBundle.Builder = nullBuilder;
            commonStylesBundle.Transforms.Add(styleTransformer);
            bundles.Add(commonStylesBundle);

            var modernizrBundle = new Bundle("~/bundles/Modernizr");
            modernizrBundle.Include("~/Scripts/modernizr-2.*");
            modernizrBundle.Builder = nullBuilder;
            modernizrBundle.Transforms.Add(scriptTransformer);
            bundles.Add(modernizrBundle);

            var jQueryBundle = new Bundle("~/bundles/Jquery");
            jQueryBundle.Include(
                "~/Scripts/js/jquery-{version}.js",
                "~/Scripts/js/jquery-ui.js",
                "~/Scripts/js/jquery.unobtrusive*",
                "~/Scripts/js/jquery.validate*");
            jQueryBundle.Builder = nullBuilder;
            jQueryBundle.Transforms.Add(scriptTransformer);
            bundles.Add(jQueryBundle);

            var commonScriptsBundle = new Bundle("~/bundles/CommonScripts");
            commonScriptsBundle.Include(
                "~/Scripts/js/jquery.blockUI.js",
                "~/Scripts/js/load-image.all.min.js",
                "~/Scripts/js/jquery.fileupload.js",
                "~/Scripts/js/jquery.fileupload-ui.js",
                "~/Scripts/js/jquery.fileupload-process.js",
                "~/Scripts/js/jquery.fileupload-validate.js",
                "~/Scripts/js/jquery.fileupload-image.js",
                "~/Scripts/js/canvas-to-blob.js",
                "~/Scripts/js/jquery.fileupload-video.js",
                "~/Scripts/js/jquery.fileupload-audio.js",
                "~/Scripts/js/jquery.jquery.iframe-transport.js",
                "~/Scripts/js/bootstrap.js",
                "~/Scripts/js/cors/*.js",
                "~/Scripts/js/vendor/*.js");
            commonScriptsBundle.Builder = nullBuilder;
            commonScriptsBundle.Transforms.Add(scriptTransformer);
            bundles.Add(commonScriptsBundle);

            var customScriptsBundle = new Bundle("~/bundles/CustomScripts");
            customScriptsBundle.Include(
                "~/Scripts/Site/Site.js",
                "~/Scripts/File/Upload.js",
                "~/Scripts/Error/Error.js",
                "~/Scripts/Page/Position.js",
                "~/Scripts/Home/Index.js",
                "~/Scripts/Instrument/Detail.js",
                "~/Scripts/Instrument/Edit.js",
                "~/Scripts/Instrument/Zoom.js",
                "~/Scripts/Instrument/Carousel.js",
                "~/Scripts/Ordering/Edit.js",
                "~/Scripts/Admin/Login.js",
                "~/Scripts/Contact/Index.js",
                "~/Scripts/Metrics/GoogleAnalytics.js");
            customScriptsBundle.Builder = nullBuilder;
            customScriptsBundle.Transforms.Add(scriptTransformer);
            bundles.Add(customScriptsBundle);

            //BundleTable.EnableOptimizations = false;
        }