public static void RegisterBundles(BundleCollection bundles)
        {
            var cssTransformer = new StyleTransformer();
            var jsTransformer = new ScriptTransformer();
            var nullOrderer = new NullOrderer();

            var css = new Bundle("~/bootstrap/css").Include(
                "~/Content/bootstrap/bootstrap.less");

            css.Transforms.Add(cssTransformer);
            css.Orderer = nullOrderer;

            bundles.Add(css);

            var jquery = new Bundle("~/bundles/jquery").Include(
                            "~/Scripts/jquery-{version}.js",
                            "~/Scripts/modernizr-{version}.js",
                            "~/Scripts/bootstrap.min.js"
                            );

            jquery.Transforms.Add(jsTransformer);
            jquery.Orderer = nullOrderer;

            bundles.Add(jquery);

            BundleTable.EnableOptimizations = true;
        }
Beispiel #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;
        }
Beispiel #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);
        }
Beispiel #4
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.UseCdn = true;
            var cssTransformer = new StyleTransformer();
            var jsTransformer = new ScriptTransformer();
            var nullOrderer = new NullOrderer();

            var cssBundle = new StyleBundle("~/bundles/css");
            cssBundle.Include("~/Content/Site.less", "~/Content/bootstrap/bootstrap.less");
            cssBundle.Transforms.Add(cssTransformer);
            cssBundle.Orderer = nullOrderer;
            bundles.Add(cssBundle);

            var commonBundle = new ScriptBundle("~/bundles/common");
            commonBundle.Include("~/Scripts/jquery-{version}.js")
                        .Include("~/Scripts/jquery.validate*")
                        .Include("~/Scripts/modernizr-*")
                        .Include("~/Scripts/respond.js")
                        .Include("~/Scripts/knockout-{version}.js");
            commonBundle.Transforms.Add(jsTransformer);
            commonBundle.Orderer = nullOrderer;
            bundles.Add(commonBundle);

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

            //var jqueryvalBundle = new ScriptBundle("~/bundles/jqueryval");
            //jqueryvalBundle.Include("~/Scripts/jquery.validate*");
            //jqueryvalBundle.Transforms.Add(jsTransformer);
            //jqueryvalBundle.Orderer = nullOrderer;
            //bundles.Add(jqueryvalBundle);

            //// 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.

            //var modernizrBundle = new ScriptBundle("~/bundles/modernizr");
            //modernizrBundle.Include("~/Scripts/modernizr-*");
            //modernizrBundle.Transforms.Add(jsTransformer);
            //modernizrBundle.Orderer = nullOrderer;
            //bundles.Add(modernizrBundle);

            //var bootstrapBundle = new ScriptBundle("~/bundles/bootstrap");
            //bootstrapBundle.Include("~/Scripts/bootstrap.js", "~/Scripts/respond.js");
            //bootstrapBundle.Transforms.Add(jsTransformer);
            //bootstrapBundle.Orderer = nullOrderer;
            //bundles.Add(bootstrapBundle);

            //var knockoutBundle = new ScriptBundle("~/bundles/knockout");
            //knockoutBundle.Include("~/Scripts/knockout-{version}.js");
            //knockoutBundle.Transforms.Add(jsTransformer);
            //knockoutBundle.Orderer = nullOrderer;
            //bundles.Add(knockoutBundle);
        }
        // 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;
        }
Beispiel #6
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);
        }
Beispiel #7
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.UseCdn = true;
            var cssTransformer = new StyleTransformer();
            var jsTransformer = new ScriptTransformer();
            var nullOrderer = new NullOrderer();

            var cssBundle = new StyleBundle("~/bundles/css");
            cssBundle.Include("~/Content/Site.less", "~/Content/bootstrap/bootstrap.less", "~/Content/FontAwsome/font-awesome.less");
            cssBundle.Transforms.Add(cssTransformer);
            cssBundle.Orderer = nullOrderer;
            bundles.Add(cssBundle);

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

            var jqueryvalBundle = new ScriptBundle("~/bundles/jqueryval");
            jqueryvalBundle.Include("~/Scripts/jquery.validate*", "~/Scripts/jquery.unobtrusive-ajax*");
            jqueryvalBundle.Transforms.Add(jsTransformer);
            jqueryvalBundle.Orderer = nullOrderer;
            bundles.Add(jqueryvalBundle);

            // 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.

            var modernizrBundle = new ScriptBundle("~/bundles/modernizr");
            modernizrBundle.Include("~/Scripts/modernizr-*");
            modernizrBundle.Transforms.Add(jsTransformer);
            modernizrBundle.Orderer = nullOrderer;
            bundles.Add(modernizrBundle);

            var bootstrapBundle = new ScriptBundle("~/bundles/bootstrap");
            bootstrapBundle.Include("~/Scripts/bootstrap.js", "~/Scripts/respond.js");
            bootstrapBundle.Transforms.Add(jsTransformer);
            bootstrapBundle.Orderer = nullOrderer;
            bundles.Add(bootstrapBundle);


            var sitescriptsBundle = new ScriptBundle("~/bundles/sitescripts");
            sitescriptsBundle.Include("~/Scripts/mbExtruder.js");
            sitescriptsBundle.Transforms.Add(jsTransformer);
            sitescriptsBundle.Orderer = nullOrderer;
            bundles.Add(sitescriptsBundle);
        }
Beispiel #8
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.UseCdn = true;
            var cssTransformer = new StyleTransformer();
            var jsTransformer = new ScriptTransformer();
            var nullOrderer = new NullOrderer();

            var cssBundle = new StyleBundle("~/bundles/css");
            cssBundle.Include("~/Content/Site.less", "~/Content/bootstrap/bootstrap.less");
            cssBundle.Transforms.Add(cssTransformer);
            cssBundle.Orderer = nullOrderer;
            bundles.Add(cssBundle);

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

            var jqueryvalBundle = new ScriptBundle("~/bundles/jqueryval");
            jqueryvalBundle.Include("~/Scripts/jquery.validate*");
            jqueryvalBundle.Transforms.Add(jsTransformer);
            jqueryvalBundle.Orderer = nullOrderer;
            bundles.Add(jqueryvalBundle);

            var modernizrBundle = new ScriptBundle("~/bundles/modernizr");
            modernizrBundle.Include("~/Scripts/modernizr-*");
            modernizrBundle.Transforms.Add(jsTransformer);
            modernizrBundle.Orderer = nullOrderer;
            bundles.Add(modernizrBundle);

            var bootstrapBundle = new ScriptBundle("~/bundles/bootstrap");
            bootstrapBundle.Include("~/Scripts/bootstrap.js", "~/Scripts/respond.js");
            bootstrapBundle.Transforms.Add(jsTransformer);
            bootstrapBundle.Orderer = nullOrderer;
            bundles.Add(bootstrapBundle);

            var knockout = new ScriptBundle("~/bundles/ko");
            knockout.Include("~/Scripts/knockout-3.3.0.js");
            knockout.Include("~/Scripts/underscore.min.js");
            knockout.Transforms.Add(jsTransformer);
            knockout.Orderer = nullOrderer;
            bundles.Add(knockout);
        }
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.UseCdn = true;
            var cssTransformer = new StyleTransformer();
            var jsTransformer = new ScriptTransformer();
            var nullOrderer = new NullOrderer();

            var cssBundle = new StyleBundle("~/bundles/css");
            cssBundle.Include("~/Content/Css/Site.less", "~/Content/bootstrap/bootstrap.less", "~/Content/Css/Init.less");
            // JEMO : Add our custom Default Css files
            cssBundle.Transforms.Add(cssTransformer);
            cssBundle.Orderer = nullOrderer;
            bundles.Add(cssBundle);

            var jqueryBundle = new ScriptBundle("~/bundles/jquery");
            jqueryBundle.Include("~/Scripts/jquery-{version}.js", "~/Scripts/jquery.unobtrusive-ajax.js");
            // JEMO : added jquery.unobtrusive-ajax script in order to do partial view postbacks with build-in mvc ajax support
            jqueryBundle.Transforms.Add(jsTransformer);
            jqueryBundle.Orderer = nullOrderer;
            bundles.Add(jqueryBundle);

            var jqueryvalBundle = new ScriptBundle("~/bundles/jqueryval");
            jqueryvalBundle.Include("~/Scripts/jquery.validate*");
            jqueryvalBundle.Transforms.Add(jsTransformer);
            jqueryvalBundle.Orderer = nullOrderer;
            bundles.Add(jqueryvalBundle);

            // 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.

            var modernizrBundle = new ScriptBundle("~/bundles/modernizr");
            modernizrBundle.Include("~/Scripts/modernizr-*");
            modernizrBundle.Transforms.Add(jsTransformer);
            modernizrBundle.Orderer = nullOrderer;
            bundles.Add(modernizrBundle);

            var bootstrapBundle = new ScriptBundle("~/bundles/bootstrap");
            bootstrapBundle.Include("~/Scripts/bootstrap.js", "~/Scripts/respond.js");
            bootstrapBundle.Transforms.Add(jsTransformer);
            bootstrapBundle.Orderer = nullOrderer;
            bundles.Add(bootstrapBundle);
        }
Beispiel #10
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);
        }
Beispiel #11
0
        public static void RegisterBundles(BundleCollection bundles)
        {
#if DEBUG
            BundleTable.EnableOptimizations = false;
#else
            BundleTable.EnableOptimizations = true;
#endif
            #region Less Css Transformation
            var cssTransformer = new StyleTransformer();
            var jsTransformer = new ScriptTransformer();
            var nullOrderer = new NullOrderer();

            var css = new StyleBundle("~/bundles/css")
            .Include("~/Content/site.less")
            .Include("~/Content/jquery.bootstrap-touchspin.css");
            css.Transforms.Add(cssTransformer);
            css.Orderer = nullOrderer;
            #endregion

            #region JQuery
            
            var jquery = new ScriptBundle("~/bundles/jquery");
            
            var sdir = "~/Scripts";
#if DEBUG

            var jqueries = new string[] { "jquery-1.9.0", "jquery.validate", "jquery.validate.unobtrusive", "jquery.validate.unobtrusive.bootstrap" ,"jquery.bootstrap-touchspin","bootstrap-toolkit"};
            
#endif
            jquery.Include(sdir, jqueries);
            #endregion

            #region site
            var site = new ScriptBundle("~/bundles/site");
            site.Include("~/js/site.js");
            #endregion

            bundles.Add(css);
            bundles.Add(jquery);
            bundles.Add(site);
        }
Beispiel #12
0
        // Pour plus d’informations sur le regroupement, rendez-vous sur http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
#if DEBUG
            BundleTable.EnableOptimizations = false;
#else
            BundleTable.EnableOptimizations = true;
#endif

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

            // Utilisez la version de développement de Modernizr pour développer et apprendre. Puis, lorsque vous êtes
            // prêt pour la production, utilisez l’outil de génération sur http://modernizr.com pour sélectionner uniquement les tests dont vous avez besoin.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

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


            #region Less Css Transformation
            var cssTransformer = new StyleTransformer();
            var jsTransformer = new ScriptTransformer();
            var nullOrderer = new NullOrderer();

            var css = new StyleBundle("~/Content/css")
            .Include("~/Content/site.less");
           // .Include("~/Content/jquery.bootstrap-touchspin.css");
            css.Transforms.Add(cssTransformer);
            css.Orderer = nullOrderer;
            bundles.Add(css);
            #endregion

           /* bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/site.css"));*/
        }
Beispiel #13
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            BundleTable.EnableOptimizations = true;

            bundles.UseCdn = true;
            var cssTransformer = new StyleTransformer();
            var jsTransformer = new ScriptTransformer();
            var nullOrderer = new NullOrderer();

            //CSS
            var cssBundle = new StyleBundle("~/bundles/css");
            cssBundle.Include("~/Content/Site.less");
            cssBundle.Include("~/Content/bootstrap/bootstrap.less");
            cssBundle.Include("~/Content/font-awesome.min.css");
            cssBundle.Include("~/Content/themes/base/all.css");
            cssBundle.Transforms.Add(cssTransformer);
            cssBundle.Orderer = nullOrderer;
            bundles.Add(cssBundle);

            var cssKendo = new StyleBundle("~/bundles/cssKendo");
            cssKendo.Include("~/Content/kendo/2014.3.1119/kendo.common.min.css");
            cssKendo.Include("~/Content/kendo/2014.3.1119/kendo.default.min.css");
            cssKendo.Transforms.Add(cssTransformer);
            cssKendo.Orderer = nullOrderer;
            bundles.Add(cssKendo);

            var cssApp = new StyleBundle("~/bundles/cssApp");
            cssApp.Include("~/Content/app/AppCommon.less");
            cssApp.Transforms.Add(cssTransformer);
            cssApp.Orderer = nullOrderer;
            bundles.Add(cssApp);

            //JS
            var jqueryBundle = new ScriptBundle("~/bundles/jquery");
            jqueryBundle.Include("~/Scripts/jquery-{version}.js");
            jqueryBundle.Transforms.Add(jsTransformer);
            jqueryBundle.Orderer = nullOrderer;
            bundles.Add(jqueryBundle);

            var jqueryUiBundle = new ScriptBundle("~/bundles/jquery-ui");
            jqueryUiBundle.Include("~/Scripts/jquery-ui-{version}.js");
            jqueryUiBundle.Transforms.Add(jsTransformer);
            jqueryUiBundle.Orderer = nullOrderer;
            bundles.Add(jqueryUiBundle);

            var jqueryvalBundle = new ScriptBundle("~/bundles/jqueryval");
            jqueryvalBundle.Include("~/Scripts/jquery.validate*");
            jqueryvalBundle.Transforms.Add(jsTransformer);
            jqueryvalBundle.Orderer = nullOrderer;
            bundles.Add(jqueryvalBundle);

            // 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.

            var modernizrBundle = new ScriptBundle("~/bundles/modernizr");
            modernizrBundle.Include("~/Scripts/modernizr-*");
            modernizrBundle.Transforms.Add(jsTransformer);
            modernizrBundle.Orderer = nullOrderer;
            bundles.Add(modernizrBundle);

            var bootstrapBundle = new ScriptBundle("~/bundles/bootstrap");
            bootstrapBundle.Include("~/Scripts/bootstrap.js", "~/Scripts/respond.js");
            bootstrapBundle.Transforms.Add(jsTransformer);
            bootstrapBundle.Orderer = nullOrderer;
            bundles.Add(bootstrapBundle);

            var kendoBundle = new ScriptBundle("~/bundles/kendo");
            //kendoBundle.Include("~/Scripts/kendo/2014.3.1119/kendo.ui.core.min.js");
            kendoBundle.Include("~/Scripts/kendo/2014.3.1119/kendo.web.min.js");
            kendoBundle.Transforms.Add(jsTransformer);
            kendoBundle.Orderer = nullOrderer;
            bundles.Add(kendoBundle);

            var koBundle = new ScriptBundle("~/bundles/ko");
            koBundle.Include("~/Scripts/knockout-{version}.js");
            koBundle.Include("~/Scripts/knockout.mapping-latest.js");
            koBundle.Transforms.Add(jsTransformer);
            koBundle.Orderer = nullOrderer;
            bundles.Add(koBundle);

            var koKendoBundle = new ScriptBundle("~/bundles/koKendo");
            koKendoBundle.Include("~/Scripts/knockout-kendo.min.js");
            koKendoBundle.Transforms.Add(jsTransformer);
            koKendoBundle.Orderer = nullOrderer;
            bundles.Add(koKendoBundle);

            var jsAppBundle = new ScriptBundle("~/bundles/jsApp");
            jsAppBundle.Include("~/Scripts/app/AppCommon.js");
            jsAppBundle.Transforms.Add(jsTransformer);
            jsAppBundle.Orderer = nullOrderer;
            bundles.Add(jsAppBundle);

            var jsSurveyBundle = new ScriptBundle("~/bundles/jsSurvey");
            jsSurveyBundle.Include("~/Scripts/app/Survey.js");
            jsSurveyBundle.Transforms.Add(jsTransformer);
            jsSurveyBundle.Orderer = nullOrderer;
            bundles.Add(jsSurveyBundle);

            var jsCommentBundle = new ScriptBundle("~/bundles/jsComment");
            jsCommentBundle.Include("~/Scripts/app/Comment.js");
            jsCommentBundle.Transforms.Add(jsTransformer);
            jsCommentBundle.Orderer = nullOrderer;
            bundles.Add(jsCommentBundle);

            var jsActivityBundle = new ScriptBundle("~/bundles/jsActivity");
            jsActivityBundle.Include("~/Scripts/app/Activity.js");
            jsActivityBundle.Transforms.Add(jsTransformer);
            jsActivityBundle.Orderer = nullOrderer;
            bundles.Add(jsActivityBundle);

            var jsMachineBundle = new ScriptBundle("~/bundles/jsMachine");
            jsMachineBundle.Include("~/Scripts/app/Machine.js");
            jsMachineBundle.Transforms.Add(jsTransformer);
            jsMachineBundle.Orderer = nullOrderer;
            bundles.Add(jsMachineBundle);
        }
        public static void RegisterBundles(BundleCollection bundles)
        {
            try
            {
                var ignoreCompilationDebug = Settings.GetSetting("ignoreCompilationDebug") == "True" || string.IsNullOrEmpty(Settings.GetSetting("ignoreCompilationDebug"));

                if (ignoreCompilationDebug)
                {
                    BundleTable.EnableOptimizations = true;
                }

                var cssTransformer = new StyleTransformer();
                var jsTransformer = new ScriptTransformer();
                var nullOrderer = new NullOrderer();

                var doc = XDocument.Load(HttpContext.Current.Server.MapPath(Config.BundlesConfigPath));

                foreach (string bundleType in "script,style".Split(','))
                {

                    foreach (var bundleElement in doc.Descendants(bundleType + "Bundle"))
                    {
                        var bundle = new Bundle(bundleElement.Attribute("virtualPath").Value);
                        var bundleHasFiles = false;
                        var dontMinify = bundleElement.Attribute("disableMinification") != null ? bundleElement.Attribute("disableMinification").Value == true.ToString() : false;

                        foreach (var includeElement in bundleElement.Elements())
                        {
                            var filePath = includeElement.Attribute("virtualPath").Value;
                            string fullPath = null;
                            try
                            {
                                fullPath = HttpContext.Current.Server.MapPath(filePath);
                            }
                            catch (Exception ex)
                            {
                                LogHelper.Warn<Exception>("Optmius skipped '" + filePath + "' in Bundle '" + bundle.Path + "' as the file path was invalid. Only application relative URLs (~/url) are allowed.");
                            }

                            if (fullPath != null)
                            {
                                bundle.Include(filePath);
                                bundleHasFiles = true;
                            }
                        }

                        if (bundleHasFiles)
                        {
                            if (bundleType == "script")
                            {
                                bundle.Transforms.Add(jsTransformer);
                                if(!dontMinify)
                                    bundle.Transforms.Add(new JsMinify());
                            }
                            else
                            {
                                bundle.Transforms.Add(cssTransformer);
                                if(!dontMinify)
                                    bundle.Transforms.Add(new CssMinify());
                            }
                            bundle.Orderer = nullOrderer;

                            bundles.Add(bundle);
                        }
                    }

                }

            }
            catch (Exception e)
            {
                LogHelper.Error(typeof(BundleCollection), "Error adding bundles: " + e.ToString(),e);
            }
        }
Beispiel #15
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;
        }
Beispiel #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);
		}
Beispiel #17
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            BundleTable.EnableOptimizations = true;

            bundles.UseCdn = true;
            //var cssTransformer = new CssTransformer();
            //var jsTransformer = new JsTransformer();
            var cssTransformer = new StyleTransformer();
            var jsTransformer = new ScriptTransformer();
            var nullOrderer = new NullOrderer();

            //Style
            var cssBundle = new CustomStyleBundle("~/bundles/css");
            cssBundle.Include("~/Content/Site.less");
            //cssBundle.Include("~/Content/themes/base/jquery-ui.css");
            cssBundle.Include("~/Content/themes/base/all.css");
            cssBundle.Transforms.Add(cssTransformer);
            cssBundle.Orderer = nullOrderer;
            bundles.Add(cssBundle);

            var cssBootstrapBundle = new CustomStyleBundle("~/bundles/cssBootstrap");
            //cssBootstrapBundle.Include("~/Content/bootstrap/bootstrap.less");
            cssBootstrapBundle.Include("~/Content/bootstrap/bootstrap.css");
            cssBootstrapBundle.Include("~/Content/bootstrap/bootstrap-responsive.css");
            cssBootstrapBundle.Transforms.Add(cssTransformer);
            cssBootstrapBundle.Orderer = nullOrderer;
            bundles.Add(cssBootstrapBundle);

            var cssKendoBundle = new CustomStyleBundle("~/bundles/cssKendo");

            cssKendoBundle.Include("~/Content/kendo/2014.3.1119/kendo.common.min.css");
            cssKendoBundle.Include("~/Content/kendo/2014.3.1119/kendo.default.min.css");

            cssKendoBundle.Transforms.Add(cssTransformer);
            cssKendoBundle.Orderer = nullOrderer;
            bundles.Add(cssKendoBundle);

            var cssAppBundle = new CustomStyleBundle("~/bundles/cssApp");
            cssAppBundle.Include("~/Content/app/AppCommon.css");
            cssAppBundle.Include("~/Content/app/AppCommon.less");
            cssAppBundle.Include("~/Content/app/AmTree.less");
            cssAppBundle.Transforms.Add(cssTransformer);
            cssAppBundle.Orderer = nullOrderer;
            bundles.Add(cssAppBundle);

            //Script
            var jqueryBundle = new CustomScriptBundle("~/bundles/jquery");
            jqueryBundle.Include("~/Scripts/jquery-{version}.js");
            jqueryBundle.Include("~/Scripts/jquery.xdomainrequest.min.js");
            jqueryBundle.Include("~/Scripts/jquery.placeholder.js");
            jqueryBundle.Transforms.Add(jsTransformer);
            jqueryBundle.Orderer = nullOrderer;
            bundles.Add(jqueryBundle);

            var jqueryUiBundle = new CustomScriptBundle("~/bundles/jquery-ui");
            jqueryUiBundle.Include("~/Scripts/jquery-ui-{version}.js");
            jqueryUiBundle.Transforms.Add(jsTransformer);
            jqueryUiBundle.Orderer = nullOrderer;
            bundles.Add(jqueryUiBundle);

            var koBundle = new CustomScriptBundle("~/bundles/ko");
            koBundle.Include("~/Scripts/knockout-{version}.js");
            koBundle.Include("~/Scripts/knockout.mapping-latest.js");
            koBundle.Transforms.Add(jsTransformer);
            koBundle.Orderer = nullOrderer;
            bundles.Add(koBundle);

            //var jqueryvalBundle = new CustomScriptBundle("~/bundles/jqueryval");
            //jqueryvalBundle.Include("~/Scripts/jquery.validate*");
            //jqueryvalBundle.Transforms.Add(jsTransformer);
            //jqueryvalBundle.Orderer = nullOrderer;
            //bundles.Add(jqueryvalBundle);

            var jqueryval_1_Bundle = new CustomScriptBundle("~/bundles/jqueryval_1");
            jqueryval_1_Bundle.Include("~/Scripts/jquery.validate.js");
            jqueryval_1_Bundle.Transforms.Add(jsTransformer);
            jqueryval_1_Bundle.Orderer = nullOrderer;
            bundles.Add(jqueryval_1_Bundle);

            var jqueryval_2_Bundle = new CustomScriptBundle("~/bundles/jqueryval_2");
            jqueryval_2_Bundle.Include("~/Scripts/jquery.validate.unobtrusive.js");
            jqueryval_2_Bundle.Transforms.Add(jsTransformer);
            jqueryval_2_Bundle.Orderer = nullOrderer;
            bundles.Add(jqueryval_2_Bundle);

            // 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.

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

            var bootstrapBundle = new CustomScriptBundle("~/bundles/bootstrap");
            bootstrapBundle.Include("~/Scripts/bootstrap.js");
            //bootstrapBundle.Include("~/Scripts/respond.js");
            bootstrapBundle.Transforms.Add(jsTransformer);
            bootstrapBundle.Orderer = nullOrderer;
            bundles.Add(bootstrapBundle);

            var kendoKoBundle = new CustomScriptBundle("~/bundles/kendoKo");

            kendoKoBundle.Include("~/Scripts/kendo/2014.3.1119/jszip.min.js");
            kendoKoBundle.Include("~/Scripts/kendo/2014.3.1119/kendo.web.min.js");

            kendoKoBundle.Include("~/Scripts/knockout-kendo.js");
            kendoKoBundle.Transforms.Add(jsTransformer);
            kendoKoBundle.Orderer = nullOrderer;
            bundles.Add(kendoKoBundle);

            var appBundle = new CustomScriptBundle("~/bundles/app");
            appBundle.Include("~/Scripts/App/AppKo.js");
            appBundle.Include("~/Scripts/App/AppCommon.js");
            appBundle.Include("~/Scripts/App/UpDown.js");
            appBundle.Include("~/Scripts/App/dimension.js");
            appBundle.Include("~/Scripts/App/dialog.js");
            appBundle.Include("~/Scripts/App/kGrid.js");
            appBundle.Include("~/Scripts/App/message.js");
            appBundle.Include("~/Scripts/App/AppMenuNToolTip.js");
            appBundle.Include("~/Scripts/App/RemoteEvent.js");
            appBundle.Transforms.Add(jsTransformer);
            appBundle.Orderer = nullOrderer;
            bundles.Add(appBundle);

            var appBundle_Local = new CustomScriptBundle("~/bundles/app_Local");
            appBundle_Local.Include("~/Scripts/App/AppKo_Local.js");
            appBundle_Local.Transforms.Add(jsTransformer);
            appBundle_Local.Orderer = nullOrderer;
            bundles.Add(appBundle_Local);

            var appBundle_Remote = new CustomScriptBundle("~/bundles/app_Remote");
            appBundle_Remote.Include("~/Scripts/App/AppKo_Remote.js");
            appBundle_Remote.Transforms.Add(jsTransformer);
            appBundle_Remote.Orderer = nullOrderer;
            bundles.Add(appBundle_Remote);

            var retNRfBundle = new CustomScriptBundle("~/bundles/retNRf");
            retNRfBundle.Include("~/Scripts/App/RETnRF.js");
            retNRfBundle.Transforms.Add(jsTransformer);
            retNRfBundle.Orderer = nullOrderer;
            bundles.Add(retNRfBundle);
        }
Beispiel #18
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.UseCdn = true;
            var cssTransformer = new StyleTransformer();
            var jsTransformer = new ScriptTransformer();
            var nullOrderer = new NullOrderer();

            var cssBundle = new StyleBundle("~/bundles/css");
            cssBundle.Include("~/Content/Site.less", "~/Content/bootstrap/bootstrap.less",
                "~/Content/css/Index.css");
            cssBundle.Transforms.Add(cssTransformer);
            cssBundle.Orderer = nullOrderer;
            bundles.Add(cssBundle);

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

            var jqueryvalBundle = new ScriptBundle("~/bundles/jqueryval");
            jqueryvalBundle.Include("~/Scripts/jquery.validate*");
            jqueryvalBundle.Transforms.Add(jsTransformer);
            jqueryvalBundle.Orderer = nullOrderer;
            bundles.Add(jqueryvalBundle);

            bundles.Add(new ScriptBundle("~/Scripts/Index").Include(
            "~/Scripts/Index.js"));

            bundles.Add(new StyleBundle("~/Content/css/Index").Include(
              "~/Content/css/font-awesome.min.css",
              "~/Content/css/app.css"));

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

            bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
              "~/Content/themes/base/jquery.ui.core.css",
              "~/Content/themes/base/jquery.ui.resizable.css",
              "~/Content/themes/base/jquery.ui.selectable.css",
              "~/Content/themes/base/jquery.ui.accordion.css",
              "~/Content/themes/base/jquery.ui.autocomplete.css",
              "~/Content/themes/base/jquery.ui.button.css",
              "~/Content/themes/base/jquery.ui.dialog.css",
              "~/Content/themes/base/jquery.ui.slider.css",
              "~/Content/themes/base/jquery.ui.tabs.css",
              "~/Content/themes/base/jquery.ui.datepicker.css",
              "~/Content/themes/base/jquery.ui.progressbar.css",
              "~/Content/themes/base/jquery.ui.theme.css"));

            // 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.

            var modernizrBundle = new ScriptBundle("~/bundles/modernizr");
            modernizrBundle.Include("~/Scripts/modernizr-*");
            modernizrBundle.Transforms.Add(jsTransformer);
            modernizrBundle.Orderer = nullOrderer;
            bundles.Add(modernizrBundle);

            var bootstrapBundle = new ScriptBundle("~/bundles/bootstrap");
            bootstrapBundle.Include("~/Scripts/bootstrap.js", "~/Scripts/respond.js");
            bootstrapBundle.Transforms.Add(jsTransformer);
            bootstrapBundle.Orderer = nullOrderer;
            bundles.Add(bootstrapBundle);
        }
Beispiel #19
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.UseCdn = true;

            var cssTransformer = new StyleTransformer();
            var jsTransformer = new ScriptTransformer();

            var cssBundle = new StyleBundle("~/bundles/css");
            cssBundle.Include(
                "~/Content/bootstrap/bootstrap.less",
                "~/Content/font-awesome/font-awesome.less",
                "~/Content/animations/animations.css",
                "~/Content/Site.less"
                );
            cssBundle.Transforms.Add(cssTransformer);
            bundles.Add(cssBundle);

            var jqueryBundle = new ScriptBundle("~/bundles/jquery");
            jqueryBundle.Include(
                "~/Scripts/jquery-{version}.js",
                "~/Scripts/jquery-migrate-{version}.js"
                );
            jqueryBundle.Transforms.Add(jsTransformer);
            bundles.Add(jqueryBundle);

            var jqueryBackstretchBundle = new ScriptBundle("~/bundles/jqueryBackstretch");
            jqueryBackstretchBundle.Include("~/Scripts/jquery.backstretch.js");
            jqueryBackstretchBundle.Transforms.Add(jsTransformer);
            bundles.Add(jqueryBackstretchBundle);

            var jqueryAppearBundle = new ScriptBundle("~/bundles/jqueryAppear");
            jqueryAppearBundle.Include("~/Scripts/jquery.appear.js");
            jqueryAppearBundle.Transforms.Add(jsTransformer);
            bundles.Add(jqueryAppearBundle);

            var jqueryvalBundle = new ScriptBundle("~/bundles/jqueryval");
            jqueryvalBundle.Include(
                "~/Scripts/jquery.validate.js",
                "~/Scripts/jquery.validate.unobtrusive.js",
                "~/Scripts/jquery.validate-vsdoc.js");
            jqueryvalBundle.Transforms.Add(jsTransformer);
            bundles.Add(jqueryvalBundle);

            var modernizrBundle = new ScriptBundle("~/bundles/modernizr");
            modernizrBundle.Include("~/Scripts/modernizr-*");
            modernizrBundle.Transforms.Add(jsTransformer);
            bundles.Add(modernizrBundle);

            var bootstrapBundle = new ScriptBundle("~/bundles/bootstrap");
            bootstrapBundle.Include("~/Scripts/bootstrap.js");
            bootstrapBundle.Transforms.Add(jsTransformer);
            bundles.Add(bootstrapBundle);

            var otherScriptsBundle = new ScriptBundle("~/bundles/otherScripts");
            otherScriptsBundle.Include(
                "~/Scripts/jquery.easing.js",
                "~/Scripts/jquery.fittext.js",
                "~/Scripts/wow.js",
                "~/Scripts/creative.js"
                );
            otherScriptsBundle.Transforms.Add(jsTransformer);
            bundles.Add(otherScriptsBundle);

            //BundleTable.EnableOptimizations = true;
        }
Beispiel #20
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)
        {
            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);

        }
Beispiel #22
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);
        }
        // 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;
        }
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.UseCdn = true;
            var cssTransformer = new StyleTransformer();
            var jsTransformer = new ScriptTransformer();
            var nullOrderer = new NullOrderer();

            var cssBundle = new StyleBundle("~/bundles/css");
            cssBundle.Include(
                "~/Content/fp-custom.less",
                "~/Content/fp-standard.less");   //fp-spacelab
            cssBundle.Transforms.Add(cssTransformer);
            cssBundle.Orderer = nullOrderer;
            bundles.Add(cssBundle);

            var jqueryBundle = new ScriptBundle("~/bundles/jquery");
            jqueryBundle.Include(
                "~/Scripts/jquery-{version}.js",
                "~/Scripts/jquery-ui-{version}.custom.js",
                "~/Scripts/bootstrap-datepicker.js");
            jqueryBundle.Transforms.Add(jsTransformer);
            jqueryBundle.Orderer = nullOrderer;
            bundles.Add(jqueryBundle);

            var jqueryvalBundle = new ScriptBundle("~/bundles/jqueryval");
            jqueryvalBundle.Include("~/Scripts/jquery.validate*");
            jqueryvalBundle.Transforms.Add(jsTransformer);
            jqueryvalBundle.Orderer = nullOrderer;
            bundles.Add(jqueryvalBundle);

            // 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.

            var modernizrBundle = new ScriptBundle("~/bundles/modernizr");
            modernizrBundle.Include("~/Scripts/modernizr-*");
            modernizrBundle.Transforms.Add(jsTransformer);
            modernizrBundle.Orderer = nullOrderer;
            bundles.Add(modernizrBundle);

            var bootstrapBundle = new ScriptBundle("~/bundles/bootstrap");
            bootstrapBundle.Include(
                "~/Scripts/bootstrap.js", 
                "~/Scripts/respond.js");
            bootstrapBundle.Transforms.Add(jsTransformer);
            bootstrapBundle.Orderer = nullOrderer;
            bundles.Add(bootstrapBundle);

            var autoNumericBundle = new ScriptBundle("~/bundles/autoNumeric");
            autoNumericBundle.Include("~/Scripts/autoNumeric-{version}.js");
            autoNumericBundle.Transforms.Add(jsTransformer);
            autoNumericBundle.Orderer = nullOrderer;
            bundles.Add(autoNumericBundle);

            var flotBundle = new ScriptBundle("~/bundles/flot");
            flotBundle.Include(
                "~/Scripts/flot/jquery.flot.js",
                "~/Scripts/flot/jquery.flot.stack.js",
                "~/Scripts/flot/jquery.flot.symbol.js",
                "~/Scripts/flot/jquery.flot.axislabels.js",
                "~/Scripts/flot/jquery.flot.fp-time.js",
                "~/Scripts/flot/jquery.flot.fp-tickrotor.js",
                "~/Scripts/jshashtable-{version}.js",
                "~/Scripts/jquery.numberformatter-{version}.js");
            flotBundle.Transforms.Add(jsTransformer);
            flotBundle.Orderer = nullOrderer;
            bundles.Add(flotBundle);
        }
		/// <summary>
		/// Constructs a instance of CSS-transformer
		/// </summary>
		/// <param name="minifier">Minifier</param>
		/// <param name="translators">List of translators</param>
		/// <param name="postProcessors">List of postprocessors</param>
		/// <param name="ignorePatterns">List of patterns of files and directories that
		/// should be ignored when processing</param>
		/// <param name="coreConfig">Configuration settings of core</param>
		public CssTransformer(IMinifier minifier, IList<ITranslator> translators, IList<IPostProcessor> postProcessors,
			string[] ignorePatterns, CoreSettings coreConfig)
		{
			_styleTransformer = new StyleTransformer(minifier, translators, postProcessors, ignorePatterns, coreConfig);
		}
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            BundleTable.EnableOptimizations = false;

            bundles.UseCdn = true;
            var cssTransformer = new StyleTransformer();
            var jsTransformer = new ScriptTransformer();
            var nullOrderer = new NullOrderer();

            var cssBundle = new CustomStyleBundle("~/bundles/css");
            cssBundle.Include("~/Content/bootstrap/ems.less");
            cssBundle.Transforms.Add(cssTransformer);
            cssBundle.Orderer = nullOrderer;
            bundles.Add(cssBundle);

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

            var emsscriptBundle = new CustomScriptBundle("~/bundles/emsscript");
            emsscriptBundle.Include("~/Scripts/ems.js");
            emsscriptBundle.Transforms.Add(jsTransformer);
            emsscriptBundle.Orderer = nullOrderer;
            bundles.Add(emsscriptBundle);


            var jqueryvalBundle = new CustomScriptBundle("~/bundles/jqueryval");
            jqueryvalBundle.Include("~/Scripts/jquery.validate*");
            jqueryvalBundle.Transforms.Add(jsTransformer);
            jqueryvalBundle.Orderer = nullOrderer;
            bundles.Add(jqueryvalBundle);

            var bootstrapDatePickerBundle = new CustomScriptBundle("~/bundles/bootstrapdatepicker");
            bootstrapDatePickerBundle.Include("~/Scripts/bootstrap-datepicker.js");
            bootstrapDatePickerBundle.Transforms.Add(jsTransformer);
            bootstrapDatePickerBundle.Orderer = nullOrderer;
            bundles.Add(bootstrapDatePickerBundle);

            var bootstrapDateTimePickerBundle = new CustomScriptBundle("~/bundles/bootstrapdatetimepicker");
            bootstrapDateTimePickerBundle.Include("~/Scripts/moment.js", "~/Scripts/bootstrap-datetimepicker.js");
            bootstrapDateTimePickerBundle.Transforms.Add(jsTransformer);
            bootstrapDateTimePickerBundle.Orderer = nullOrderer;
            bundles.Add(bootstrapDateTimePickerBundle);

            // 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.

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


            var bootstrapBundle = new CustomScriptBundle("~/bundles/bootstrap");
            bootstrapBundle.Include("~/Scripts/bootstrap.js", "~/Scripts/respond.js");
            bootstrapBundle.Transforms.Add(jsTransformer);
            bootstrapBundle.Orderer = nullOrderer;
            bundles.Add(bootstrapBundle);


        }