Пример #1
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            var css = new CustomStyleBundle("~/Css/lib");

            css.Include("~/Content/Css/Bootstrap/bootstrap.less");
            css.Include("~/Content/Css/Fontawesome/css/font-awesome.css");
            css.IncludeDirectory("~/Content/Css/Plugins", "*.css");
            css.Include("~/Content/ed3d/css/styles.css");
            css.IncludeDirectory("~/Content/Css", "*.less");
            css.Orderer = new NullOrderer();
            bundles.Add(css);

            var js = new CustomScriptBundle("~/Js/lib");

            js.Include("~/Content/Js/lib/jquery.min.js");
            js.Include("~/Content/Js/lib/angular.min.js");
            js.Include("~/Content/Js/lib/moment.min.js");
            js.Include("~/Content/Js/lib/jquery.wysibb.min.js");
            js.Include("~/Content/Js/lib/ng-tags-input.js");
            js.Include("~/Content/Js/lib/ng-google-chart.js");
            js.Include("~/Content/Js/lib/checklist-model.js");
            js.Include("~/Content/Js/lib/jquery.easy-autocomplete.min.js");
            js.Include("~/Content/Js/app.js");
            js.IncludeDirectory("~/Content/Js/Controllers", "*.js");
            js.IncludeDirectory("~/Content/Js/Directives", "*.js");
            js.Orderer = new NullOrderer();
            bundles.Add(js);

#if !DEBUG
            BundleTable.EnableOptimizations = true;
#endif
        }
Пример #2
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new StyleBundle("~/bundles/main_style").Include(
                            "~/node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
                            "~/node_modules/ng2-slim-loading-bar/style.css"
                            ));


            bundles.Add(new ScriptBundle("~/bundles/main_script").Include(
                            "~/node_modules/hammerjs/hammer.min.js",
                            "~/node_modules/core-js/client/shim.min.js",
                            "~/node_modules/zone.js/dist/zone.js",
                            "~/node_modules/reflect-metadata/Reflect.js",
                            "~/node_modules/systemjs/dist/system.src.js",
                            "~/systemjs.config.js"
                            ));

            var nullBulider      = new NullBuilder();
            var nullOrderer      = new NullOrderer();
            var styleTransformer = new StyleTransformer();

            var commonSytleBundle = new CustomStyleBundle("~/bundles/main_sass");

            commonSytleBundle.Include(
                "~/node_modules/@primer/css/index.scss",
                "~/content/styles.scss"
                );
            commonSytleBundle.Builder = nullBulider;
            commonSytleBundle.Transforms.Add(styleTransformer);
            commonSytleBundle.Orderer = nullOrderer;
            bundles.Add(commonSytleBundle);

            // BundleTable.EnableOptimizations = true;
        }
Пример #3
0
        // For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            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 https://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"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                            "~/Content/bootstrap.css",
                            "~/Content/site.css"));


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

            BundleResolver.Current = new CustomBundleResolver();
            var commonStyleBundle = new CustomStyleBundle("~/Content/sass");

            commonStyleBundle.Include("~/Content/main.scss");
            commonStyleBundle.Orderer = nullOrderer;
            bundles.Add(commonStyleBundle);
        }
Пример #4
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.UseCdn = true;

            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(
                "~/Css/bootstrap5152.css",
                "~/Css/responsive5152.css",
                "~/Js/prettyphoto/prettyPhotoaeb9.css",
                "~/Css/main5152.css");
            commonStylesBundle.Orderer = nullOrderer;
            bundles.Add(commonStylesBundle);

            var commonScriptsBundle = new CustomScriptBundle("~/Bundles/CommonScripts");

            commonScriptsBundle.Include(
                "~/Js/jquery-1.8.3.min.js",
                "~/Js/jquery.easing.1.3.min.js",
                "~/Js/prettyphoto/jquery.prettyPhoto.min.js",
                "~/Js/jflickrfeed.min.js",
                "~/Js/jquery.liveSearch.min.js",
                "~/Js/jquery.form.min.js",
                "~/Js/custom.min.js");

            commonScriptsBundle.Orderer = nullOrderer;
            bundles.Add(commonScriptsBundle);
        }
Пример #5
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            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 ScriptBundle("~/bundles/approveUsers").Include(
                            "~/Scripts/approveUsers.js"));

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

            var sassyBundle = new CustomStyleBundle("~/Content/scss");

            sassyBundle.Include("~/Content/site.scss");
            bundles.Add(sassyBundle);

            // Set EnableOptimizations to false for debugging. For more information,
            // visit http://go.microsoft.com/fwlink/?LinkId=301862
            BundleTable.EnableOptimizations = false;
        }
Пример #6
0
        // Дополнительные сведения об объединении см. на странице https://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                            "~/Scripts/jquery-{version}.js"));

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

            // Используйте версию Modernizr для разработчиков, чтобы учиться работать. Когда вы будете готовы перейти к работе,
            // готово к выпуску, используйте средство сборки по адресу https://modernizr.com, чтобы выбрать только необходимые тесты.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                            "~/Scripts/modernizr-*"));

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

            bundles.Add(new StyleBundle("~/content/css").Include(
                            "~/Content/bootstrap.css"));
            //,"~/Content/site.css"));

            bundles.Add(new StyleBundle("~/content/fa").Include(
                            "~/Content/fontawesome.css",
                            "~/Content/brands.css",
                            "~/Content/solid.css"));

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

            BundleResolver.Current = new CustomBundleResolver();
            var commonStyleBundle = new CustomStyleBundle("~/content/maincss");

            commonStyleBundle.Include("~/Content/main.scss");
            commonStyleBundle.Orderer = nullOrderer;
            bundles.Add(commonStyleBundle);
        }
Пример #7
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                            "~/Scripts/jquery-{version}.js"));

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

            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 ScriptBundle("~/bundles/hinata").Include(
                            "~/Scripts/hinata.js"
                            ));

            bundles.Add(new ScriptBundle("~/scripts/view/draft/edit").Include(
                            "~/lib/marked/marked.js",
                            "~/lib/highlightjs/highlight.pack.js",
                            "~/Scripts/draft.edit.js"
                            ));

            bundles.Add(new ScriptBundle("~/scripts/view/draft/index").Include(
                            "~/lib/marked/marked.js",
                            "~/lib/highlightjs/highlight.pack.js",
                            "~/Scripts/draft.index.js"
                            ));

            bundles.Add(new ScriptBundle("~/scripts/view/item/index").Include(
                            "~/Scripts/item.index.js"
                            ));

            bundles.Add(new ScriptBundle("~/scripts/view/item/item").Include(
                            "~/lib/marked/marked.js",
                            "~/lib/highlightjs/highlight.pack.js",
                            "~/Scripts/item.item.js"
                            ));

            var bootstrapStylesBundle = new CustomStyleBundle("~/Content/bootstrap.less")
            {
                Orderer = new NullOrderer()
            };

            bootstrapStylesBundle.Include("~/Content/bootstrap/bootstrap.custom.less");
            bundles.Add(bootstrapStylesBundle);

            var hinataStylesBundle = new CustomStyleBundle("~/Content/hinata.less")
            {
                Orderer = new NullOrderer()
            };

            hinataStylesBundle.Include("~/Content/hinata/hinata.less");
            bundles.Add(hinataStylesBundle);

            //bundles.Add(new StyleBundle("~/Content/css").Include("~/lib/github-markdown-css/github-markdown.css"));
        }
Пример #8
0
        // 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 CssTransformer();
            var jsTransformer  = new JsTransformer();
            var nullOrderer    = new NullOrderer();

            var cssBundle = new CustomStyleBundle("~/bundles/css");

            cssBundle.Include("~/Content/Site.less", "~/Content/bootstrap/bootstrap.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 jqueryvalBundle = new CustomScriptBundle("~/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 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);

            var angularBundle = new CustomScriptBundle("~/bundles/angular");

            angularBundle.Include("~/Scripts/angular*");
            angularBundle.Transforms.Add(jsTransformer);
            angularBundle.Orderer = nullOrderer;
            bundles.Add(angularBundle);
        }
Пример #9
0
        public static void RegisterBundles(BundleCollection bundles)

        {
            BundleResolver.Current = new CustomBundleResolver();
            var commonStyleBundle = new CustomStyleBundle("~/Bundle/sass");

            commonStyleBundle.Include("~/Content/main.scss");
            commonStyleBundle.Orderer = nullOrderer;
            bundles.Add(commonStyleBundle);
        }
Пример #10
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 CssTransformer();
            var jsTransformer  = new JsTransformer();
            var nullOrderer    = new NullOrderer();

            #region Script Bundle

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

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

            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);

            var createjsBundle = new CustomScriptBundle("~/bundles/createjs");
            createjsBundle.Include("~/Scripts/createjs-2013.12.12.min.js");
            createjsBundle.Transforms.Add(jsTransformer);
            createjsBundle.Orderer = nullOrderer;
            bundles.Add(createjsBundle);

            #endregion Script Bundle

            #region Style Bundle

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

            #endregion Style Bundle
        }
Пример #11
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include("~/Scripts/jquery-{version}.js"));
            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include("~/Scripts/jquery.validate*"));
            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 ScriptBundle("~/bundles/markedjs").Include("~/Scripts/marked/marked.min.js"));
            bundles.Add(new ScriptBundle("~/bundles/highlightjs").Include("~/Scripts/highlightjs/highlight.pack.js"));
            bundles.Add(new ScriptBundle("~/bundles/jsdiff").Include("~/Scripts/jsdiff/diff.min.js"));
            bundles.Add(new ScriptBundle("~/bundles/hinata").Include("~/Scripts/hinata.js"));
            bundles.Add(new ScriptBundle("~/scripts/view/draft/edit").Include("~/Scripts/draft.edit.js"));
            bundles.Add(new ScriptBundle("~/scripts/view/draft/index").Include("~/Scripts/draft.index.js"));
            bundles.Add(new ScriptBundle("~/scripts/view/item/index").Include("~/Scripts/item.index.js"));
            bundles.Add(new ScriptBundle("~/scripts/view/item/item").Include("~/Scripts/item.item.js"));
            bundles.Add(new ScriptBundle("~/scripts/view/item/editcollaborators").Include("~/Scripts/item.editcollaborators.js"));
            bundles.Add(new ScriptBundle("~/bundles/datetimepicker").Include("~/Scripts/moment-with-locales.min.js",
                                                                             "~/Scripts/bootstrap-datetimepicker.min.js"));

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

            var bootstrapStylesBundle = new CustomStyleBundle("~/Content/bootstrap.less")
            {
                Orderer = new NullOrderer()
            };

            bootstrapStylesBundle.Include("~/Content/bootstrap/bootstrap.custom.less");
            bootstrapStylesBundle.Include("~/Content/bootstrap-datetimepicker-build.less");
            bundles.Add(bootstrapStylesBundle);

            var hinataStylesBundle = new CustomStyleBundle("~/Content/hinata.less")
            {
                Orderer = new NullOrderer()
            };

            hinataStylesBundle.Include("~/Content/hinata/hinata.less");
            bundles.Add(hinataStylesBundle);
        }
    public static void RegisterBundles(BundleCollection bundles)
    {
        var          nullOrderer            = new NullOrderer();
        const string beforeLessCodeToInject = @"@my-variable: 'Hurrah!';";
        const string afterLessCodeToInject  = @"@font-family-base: 'Comic Sans MS';
	@body-bg: lime;
	@font-size-h1: 50px;"    ;
        var          commonStylesBundle     = new CustomStyleBundle("~/Bundles/BootstrapStyles");

        commonStylesBundle.Include(
            "~/Content/less/bootstrap-3.1.1/bootstrap.less",
            new InjectContentItemTransform(beforeLessCodeToInject, afterLessCodeToInject));
        commonStylesBundle.Orderer = nullOrderer;
        bundles.Add(commonStylesBundle);
    }
Пример #13
0
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                            "~/Scripts/jquery-1.9.1.min.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("~/Content/bootstrap").Include(
                            "~/Scripts/bootstrap.js",
                            "~/Scripts/respond.js"));

            bundles.Add(new ScriptBundle("~/Content/create").Include(
                            "~/Content/create.js"));

            bundles.Add(new ScriptBundle("~/Content/cssloader").Include(
                            "~/Content/cssloader.js"));


            bundles.Add(new ScriptBundle("~/bundles/Editor").Include(
                            "~/Scripts/jquery.urdueditor.js"));

            bundles.Add(new ScriptBundle("~/Content/keyboard").Include(
                            "~/Content/keyboard.js"));

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

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


            var commonStylesBundle = new CustomStyleBundle(BootstrapPath);

            commonStylesBundle.Orderer = new NullOrderer();
            commonStylesBundle.Include("~/Content/bootstrap.less");
            bundles.Add(commonStylesBundle);
        }
Пример #14
0
        /// <summary>
        /// 注册网站必须的js和css
        /// </summary>
        /// <param name="bundles"></param>
        private static void RegisterSite(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/site").Include(
                            "~/scripts/jquery-{version}.js"));
            var nullOrderer        = new NullOrderer();
            var commonStylesBundle = new CustomStyleBundle("~/content/site");

            commonStylesBundle.Include(
                "~/content/bootstrap.css",
                "~/font/font-awesome.css",
                "~/font/hx-font.css",
                "~/content/sass/hx-site.scss");
            commonStylesBundle.Orderer = nullOrderer;
            bundles.Add(commonStylesBundle);

            bundles.Add(new ScriptBundle("~/bundles/core").Include(
                            "~/scripts/app/jquery.extendsion.js",
                            "~/scripts/bootstrap.js",
                            "~/scripts/app/hx.core.js"));
        }
Пример #15
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");

            styleBundle.Include("~/Assets/bootstrap/css/bootstrap.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/order");

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

            var scriptBundle = new CustomScriptBundle("~/Assets/bundle/scripts");

            scriptBundle.Include("~/Assets/bootstrap/js/bootstrap.min.js",
                                 "~/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/hammer.js",
                                 "~/Assets/js/shared_order/angular-hammer.js");
            scriptBundle.Builder = nullBuilder;
            scriptBundle.Orderer = nullOrderer;
            bundles.Add(scriptBundle);

            var scriptComponentBundle = new CustomScriptBundle("~/Assets/bundle/scripts/order");

            scriptComponentBundle.Include("~/Assets/js/shared/*.js");
            scriptComponentBundle.Builder = nullBuilder;
            scriptComponentBundle.Orderer = nullOrderer;
            bundles.Add(scriptComponentBundle);
        }
Пример #16
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.UseCdn = true;

            var nullOrderer = new NullOrderer();

            var commonStylesBundle = new CustomStyleBundle("~/Bundles/CommonStyles");

            commonStylesBundle.Include("~/Content/app.less");
            commonStylesBundle.Orderer = nullOrderer;

            bundles.Add(commonStylesBundle);

            var modernizrBundle = new CustomScriptBundle("~/Bundles/Modernizr");

            modernizrBundle.Include("~/Scripts/modernizr-2.*");
            modernizrBundle.Orderer = nullOrderer;

            bundles.Add(modernizrBundle);

            var jQueryBundle = new CustomScriptBundle("~/Bundles/Jquery",
                                                      "http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.10.2.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/bootstrap.js");
            commonScriptsBundle.Orderer = nullOrderer;

            bundles.Add(commonScriptsBundle);
        }
Пример #17
0
        // Pour plus d'informations sur le regroupement, visitez https://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/script").Include
                        (
                            "~/Js/script.js"
                        ));

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

            BundleResolver.Current = new CustomBundleResolver();
            var commonStyleBundle = new CustomStyleBundle("~/Bundle/cssBase");

            commonStyleBundle.Include("~/Scss/styles.scss");
            //... Ajouter d'autres scss
            commonStyleBundle.Orderer = nullOrderer;
            bundles.Add(commonStyleBundle);

            var donjonsStyleBundle = new CustomStyleBundle("~/Bundle/cssDonjons");

            donjonsStyleBundle.Include("~/Scss/donjons.scss");
            donjonsStyleBundle.Orderer = nullOrderer;
            bundles.Add(donjonsStyleBundle);

            var lootStyleBundle = new CustomStyleBundle("~/Bundle/cssLoot");

            lootStyleBundle.Include("~/Scss/loot.scss");
            lootStyleBundle.Orderer = nullOrderer;
            bundles.Add(lootStyleBundle);

            var loginStyleBundle = new CustomStyleBundle("~/Bundle/cssLogin");

            loginStyleBundle.Include("~/Scss/login.scss");
            loginStyleBundle.Orderer = nullOrderer;
            bundles.Add(loginStyleBundle);
        }
Пример #18
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            var styleBundle = new CustomStyleBundle(SiteStylesPath);

            styleBundle.Orderer = new NullOrderer();
            styleBundle.Include("~/content/site.scss");
            bundles.Add(styleBundle);

            var jsBundle = new CustomScriptBundle(SiteScriptPath);

            jsBundle.Include("~/jspm_packages/github/components/[email protected]/jquery.js");
            jsBundle.Include("~/jspm_packages/npm/[email protected]/moment.js");
            jsBundle.Include("~/jspm_packages/npm/[email protected]/underscore.js");
            jsBundle.Include("~/jspm_packages/github/amsul/[email protected]/lib/picker.js");
            jsBundle.Include("~/jspm_packages/github/amsul/[email protected]/lib/picker.date.js");
            jsBundle.Include("~/jspm_packages/github/amsul/[email protected]/lib/picker.time.js");
            jsBundle.Include("~/jspm_packages/npm/[email protected]/dist/typeahead.jquery.js");
            jsBundle.Include("~/Scripts/handlebars-v4.0.4.js");
            jsBundle.Include("~/Scripts/materialize/materialize.js");
            jsBundle.Include("~/Scripts/fullcalendar.js");
            jsBundle.Include("~/Scripts/toastr.js");
            jsBundle.Include("~/jspm_packages/system.js");
            bundles.Add(jsBundle);
        }
Пример #19
0
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.UseCdn = true;

            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();

            // Admin panel styles
            var adminPanelStylesBundle = new CustomStyleBundle("~/Bundles/AdminPanelStyles");

            adminPanelStylesBundle.Include(
                "~/Css/bootstrap.min.css",
                "~/Css/sb-admin.min.css",
                "~/font-awesome-4.1.0/css/font-awesome.min.css");
            adminPanelStylesBundle.Orderer = nullOrderer;
            bundles.Add(adminPanelStylesBundle);

            // Admin panel scripts
            var adminPanelScriptsBundle = new CustomScriptBundle("~/Bundles/AdminPanelScripts");

            adminPanelScriptsBundle.Include(
                "~/Js/jquery-1.11.0.min.js",
                "~/Js/bootstrap.min.js");
            adminPanelScriptsBundle.Orderer = nullOrderer;
            bundles.Add(adminPanelScriptsBundle);

            //Admin panel widgets
            var widgetScriptsBundle = new CustomScriptBundle("~/Bundles/AdminPanelWidgets");

            widgetScriptsBundle.Include(
                "~/Js/jquery.simpleWeather.min.js",
                "~/Js/weather.min.js",
                "~/Js/clockwidget.min.js",
                "~/Js/underscore.min.js",
                "~/Js/moment-2.2.1.min.js",
                "~/Js/clndr.min.js",
                "~/Js/site.min.js");
            widgetScriptsBundle.Orderer = nullOrderer;
            bundles.Add(widgetScriptsBundle);

            // Website styles
            var websiteStylesBundle = new CustomStyleBundle("~/Bundles/WebsiteStyles");

            websiteStylesBundle.Include(
                "~/Css/normalize.min.css",
                "~/Css/foundation.min.css",
                "~/Css/style.min.css",
                "~/Css/ie.min.css");
            websiteStylesBundle.Orderer = nullOrderer;
            bundles.Add(websiteStylesBundle);

            // Website scripts
            var websiteScriptsBundle = new CustomScriptBundle("~/Bundles/WebsiteScripts");

            websiteScriptsBundle.Include(
                "~/Js/functions.min.js",
                "~/Js/custom.modernizr.min.js",
                "~/Js/headroom.min.js",
                "~/Js/foundation.min.js");
            websiteScriptsBundle.Orderer = nullOrderer;
            bundles.Add(websiteScriptsBundle);

            // Alertify styles
            var websiteAlertifyStyleBundle = new CustomStyleBundle("~/Bundles/WebsiteAlertifyStyles");

            websiteAlertifyStyleBundle.Include(
                "~/Css/alertify.min.css",
                "~/Css/themes/default.min.css");
            websiteAlertifyStyleBundle.Orderer = nullOrderer;
            bundles.Add(websiteAlertifyStyleBundle);

            // Alertify script
            var websiteAlertifyScriptsBundle = new CustomScriptBundle("~/Bundles/WebsiteAlertifyScripts");

            websiteAlertifyScriptsBundle.Include(
                "~/Js/alertify.min.js");
            websiteAlertifyScriptsBundle.Orderer = nullOrderer;
            bundles.Add(websiteAlertifyScriptsBundle);

            // Image crop style
            var websiteCropStyleBundle = new CustomStyleBundle("~/Bundles/WebsiteCropStyles");

            websiteCropStyleBundle.Include(
                "~/Css/imgareaselect-animated.min.css");
            websiteCropStyleBundle.Orderer = nullOrderer;
            bundles.Add(websiteCropStyleBundle);

            // Image crop script
            var websiteImageCropScriptsBundle = new CustomScriptBundle("~/Bundles/WebsiteImageCropScripts");

            websiteImageCropScriptsBundle.Include(
                "~/Js/jquery.imgareaselect.pack.min.js");
            websiteImageCropScriptsBundle.Orderer = nullOrderer;
            bundles.Add(websiteImageCropScriptsBundle);

            // Sortable tables script
            var sortableScriptsBundle = new CustomScriptBundle("~/Bundles/SortableScripts");

            sortableScriptsBundle.Include(
                "~/Js/sorttable.min.js");
            sortableScriptsBundle.Orderer = nullOrderer;
            bundles.Add(sortableScriptsBundle);

            // WYSIWYG style
            var alohaStyleBundle = new CustomStyleBundle("~/Bundles/AlohaStyles");

            alohaStyleBundle.Include(
                "~/Css/aloha-ui.min.css");
            alohaStyleBundle.Orderer = nullOrderer;
            bundles.Add(alohaStyleBundle);

            // WYSIWYG scripts
            var alohaScriptsBundle = new CustomScriptBundle("~/Bundles/AlohaScripts");

            alohaScriptsBundle.Include(
                "~/Js/aloha.min.js",
                "~/Js/aloha-ui.min.js",
                "~/Js/aloha-ui-links.min.js");
            alohaScriptsBundle.Orderer = nullOrderer;
            bundles.Add(alohaScriptsBundle);
        }
Пример #20
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 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/Fonts.css",
                "~/Content/Site.css",
                "~/Content/BundleTransformer.css",
                "~/AlternativeContent/css/TestCssComponentsPaths.css",
                "~/Content/themes/base/jquery.ui.core.css",
                "~/Content/themes/base/jquery.ui.theme.css",
                "~/Content/themes/base/jquery.ui.resizable.css",
                "~/Content/themes/base/jquery.ui.button.css",
                "~/Content/themes/base/jquery.ui.dialog.css",
                "~/Content/TestTranslators.css",
                "~/Content/less/TestLess.less",
                "~/AlternativeContent/less/LessIcons.less",
                "~/Content/sass/TestSass.sass",
                "~/Content/scss/TestScss.scss");
            commonStylesBundle.Orderer = nullOrderer;
            bundles.Add(commonStylesBundle);

            var modernizrBundle = new CustomScriptBundle("~/Bundles/Modernizr");

            modernizrBundle.Include("~/Scripts/modernizr-2.*");
            modernizrBundle.Orderer = nullOrderer;
            bundles.Add(modernizrBundle);

            var jQueryBundle = new CustomScriptBundle("~/Bundles/Jquery",
                                                      "http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.2.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/MicrosoftAjax.js",
                "~/Scripts/jquery-ui-{version}.js",
                "~/Scripts/jquery.validate.js",
                "~/Scripts/jquery.validate.unobtrusive.js",
                "~/Scripts/jquery.unobtrusive-ajax.js",
                "~/Scripts/knockout-3.*",
                "~/Scripts/coffee/TestCoffeeScript.coffee",
                "~/Scripts/coffee/TestLiterateCoffeeScript.litcoffee",
                "~/Scripts/coffee/TestCoffeeScriptMarkdown.coffee.md",
                "~/Scripts/ts/TranslatorBadge.ts",
                "~/Scripts/ts/ColoredTranslatorBadge.ts",
                "~/Scripts/ts/TestTypeScript.ts");
            commonScriptsBundle.Orderer = nullOrderer;
            bundles.Add(commonScriptsBundle);

            var commonTemplatesBundle = new CustomScriptBundle("~/Bundles/CommonTemplates");

            commonTemplatesBundle.Include(
                "~/Scripts/hogan/template-{version}.js",
                "~/Scripts/hogan/HoganTranslatorBadge.mustache",
                "~/Scripts/hogan/TestHogan.js",
                "~/Scripts/handlebars/handlebars.runtime.js",
                "~/Scripts/handlebars/HandlebarsHelpers.js",
                "~/Scripts/handlebars/HandlebarsTranslatorBadge.handlebars",
                "~/Scripts/handlebars/TestHandlebars.js");
            commonTemplatesBundle.Orderer = nullOrderer;
            bundles.Add(commonTemplatesBundle);

            var jqueryUiStylesDirectoryBundle = new Bundle("~/Bundles/JqueryUiStylesDirectory")
            {
                Builder = nullBuilder
            };

            jqueryUiStylesDirectoryBundle.IncludeDirectory("~/Content/themes/base/", "*.css");
            jqueryUiStylesDirectoryBundle.Transforms.Add(new StyleTransformer(
                                                             new[] { "*.all.css", "jquery.ui.base.css" }));
            bundles.Add(jqueryUiStylesDirectoryBundle);

            var scriptsDirectoryBundle = new Bundle("~/Bundles/ScriptsDirectory")
            {
                Builder = nullBuilder
            };

            scriptsDirectoryBundle.IncludeDirectory("~/Scripts/", "*.js", true);
            scriptsDirectoryBundle.Transforms.Add(new ScriptTransformer(
                                                      new[] { "*.all.js", "_references.js" }));
            bundles.Add(scriptsDirectoryBundle);

            var es6Bundle = new CustomScriptBundle("~/Bundles/es6-sample")
                            .Include("~/Scripts/es6/es6-sample.js");

            es6Bundle.Transforms.Clear();
            es6Bundle.Transforms.Add(new ScriptTransformer(new NUglifyMinifier()));
            bundles.Add(es6Bundle);
        }
Пример #21
0
        public static void Register(BundleCollection bundles)
        {
            var nullOrderer = new NullOrderer();

            // styles
            var cssBundle = new CustomStyleBundle("~/bundles/css");

            cssBundle.Include(
                "~/Content/normalize.css",
                "~/Content/angular-ui.css",
                "~/Content/angular-snap.css",
                "~/Content/JQuery/jquery-ui-{version}.custom.css",
                "~/Content/Kendo/2014.1.318/kendo.common.min.css",
                "~/Content/Kendo/2014.1.318/kendo.silver.min.css",
                "~/Content/loading-bar.min.css",
                "~/Content/font-awesome.css");
            cssBundle.Orderer = nullOrderer;
            bundles.Add(cssBundle);

            // modernizr
            var modernizrBundle = new CustomScriptBundle("~/bundles/modernizr");

            modernizrBundle.Include("~/Scripts/modernizr-{version}.js");
            modernizrBundle.Orderer = nullOrderer;
            bundles.Add(modernizrBundle);

            // scripts
            var scriptsBundle = new CustomScriptBundle("~/bundles/scripts");

            scriptsBundle.Include(
                "~/Scripts/jquery-{version}.js",
                "~/Scripts/angular.js",
                "~/Scripts/underscore.js",
                "~/Scripts/kendo/2014.1.318/kendo.web.min.js",
                "~/Scripts/jquery-ui-{version}.custom.js",
                "~/Scripts/jquery.signalR-2.1.1.min.js",
                "~/Scripts/snap.js",
                "~/Scripts/angular-kendo.js",
                "~/Scripts/angular-ui.js",
                "~/Scripts/angular-snap.js",
                "~/Scripts/angular-resource.js",
                "~/Scripts/angular-route.js",
                "~/Scripts/angular-signalr-hub.js",
                "~/Scripts/angular-cookies.js",
                "~/Scripts/bindonce.js",
                "~/Scripts/timepicker-addon.js",
                "~/Scripts/Moment.js",
                "~/Scripts/loading-bar.min.js",
                "~/Scripts/sortable.js",
                "~/Scripts/jquery.inputmask.bundle.js",
                "~/Scripts/jquery.inputmask.extensions.js",
                "~/Scripts/jquery.ui.touch-punch.js");
            scriptsBundle.Orderer = nullOrderer;
            bundles.Add(scriptsBundle);

            // app
            var appBundle = new CustomScriptBundle("~/bundles/app");

            appBundle
            .IncludeDirectory("~/App/Common", "*.js", true)
            .IncludeDirectory("~/App/Home", "*.js", true)
            .IncludeDirectory("~/App/DataEntry", "*.js", true)
            .IncludeDirectory("~/App/SystemAdmin", "*.js", true)
            .IncludeDirectory("~/App/Workflow", "*.js", true)
            .IncludeDirectory("~/App/Template", "*.js", true)
            .IncludeDirectory("~/App/Query", "*.js", true)
            .Include("~/App/main.js");
            appBundle.Orderer = nullOrderer;
            bundles.Add(appBundle);

            // less
            var lessBundle = new CustomStyleBundle("~/bundles/less");

            lessBundle.Include("~/Content/Less/main.less");
            lessBundle.Orderer = nullOrderer;
            bundles.Add(lessBundle);

            // Combined script bundle for unauthenticated consumption by the Classic app area.
            // Note: Please don't reference any scripts here that we wouldn't be OK with exposing over the public Internet.
            var classicScriptBundle = new CustomScriptBundle("~/bundles/classic/scripts");

            classicScriptBundle
            .Include(
                // Libs
                "~/Scripts/modernizr-{version}.js",
                "~/Scripts/jquery-{version}.js",
                "~/Scripts/angular.js",
                "~/Scripts/underscore.js",
                "~/Scripts/kendo/2014.1.318/kendo.web.min.js",
                "~/Scripts/jquery-ui-{version}.custom.js",
                "~/Scripts/snap.js",
                "~/Scripts/angular-kendo.js",
                "~/Scripts/angular-ui.js",
                "~/Scripts/angular-snap.js",
                "~/Scripts/angular-resource.js",
                "~/Scripts/angular-route.js",
                "~/Scripts/bindonce.js",
                "~/Scripts/timepicker-addon.js",
                "~/Scripts/Moment.js",
                "~/Scripts/loading-bar.min.js",
                "~/Scripts/sortable.js")
            // App
            .IncludeDirectory("~/Classic/App/Common", "*.js", true)
            .IncludeDirectory("~/Classic/App/Controllers", "*.js", true)
            .IncludeDirectory("~/Classic/App/Directives", "*.js", true)
            .IncludeDirectory("~/Classic/App/Services", "*.js", true)
            .IncludeDirectory("~/Classic/App/Launch/Controllers", "*.js", true)
            .IncludeDirectory("~/Classic/App/Launch/Directives", "*.js", true)
            .Include("~/Classic/App/main.js");
            classicScriptBundle.Orderer = nullOrderer;
            bundles.Add(classicScriptBundle);

            // Combined style bundle for unauthenticated consumption by the Classic app area.
            // Note: Please don't reference any stylesheets here that we wouldn't be OK with exposing over the public Internet.
            var classicStyleBundle = new CustomStyleBundle("~/bundles/classic/styles");

            classicStyleBundle.Include(
                // 3rd-party
                "~/Content/normalize.css",
                "~/Content/angular-ui.css",
                "~/Content/angular-snap.css",
                "~/Content/JQuery/jquery-ui-{version}.custom.css",
                "~/Content/Kendo/2014.1.318/kendo.common.min.css",
                "~/Content/Kendo/2014.1.318/kendo.silver.min.css",
                "~/Content/loading-bar.min.css",
                "~/Content/font-awesome.css",

                // App
                "~/Content/Less/main.less");
            classicStyleBundle.Orderer = nullOrderer;
            bundles.Add(classicStyleBundle);
        }
Пример #22
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);
        }
        // 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 CssTransformer();
            var jsTransformer  = new JsTransformer();
            var nullOrderer    = new NullOrderer();

            var cssBundle = new CustomStyleBundle("~/bundles/css");

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

            var momemtBundle = new CustomScriptBundle("~/bundles/moment");

            momemtBundle.Include("~/Scripts/moment.js", "~/Scripts/moment-with-locales.js");
            momemtBundle.Transforms.Add(jsTransformer);
            momemtBundle.Orderer = nullOrderer;
            bundles.Add(momemtBundle);



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

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

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

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

            var jqueryBundle = new CustomScriptBundle("~/bundles/jquery");

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

            var jqueryvalBundle = new CustomScriptBundle("~/bundles/jqueryval");

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



            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);
        }
Пример #24
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;
        }
Пример #25
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 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/Fonts.css",
				"~/Content/Site.css",
				"~/Content/BundleTransformer.css",
				"~/AlternativeContent/css/TestCssComponentsPaths.css",
				"~/Content/themes/base/jquery.ui.core.css",
				"~/Content/themes/base/jquery.ui.theme.css",
				"~/Content/themes/base/jquery.ui.resizable.css",
				"~/Content/themes/base/jquery.ui.button.css",
				"~/Content/themes/base/jquery.ui.dialog.css",
				"~/Content/TestTranslators.css",
				"~/Content/less/TestLess.less",
				"~/Content/sass/TestSass.sass",
				"~/Content/scss/TestScss.scss");
			commonStylesBundle.Orderer = nullOrderer;
			bundles.Add(commonStylesBundle);

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

			var jQueryBundle = new CustomScriptBundle("~/Bundles/Jquery",
				"http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.2.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/MicrosoftAjax.js",
				"~/Scripts/jquery-ui-{version}.js",
				"~/Scripts/jquery.validate.js",
				"~/Scripts/jquery.validate.unobtrusive.js",
				"~/Scripts/jquery.unobtrusive-ajax.js",
				"~/Scripts/knockout-3.*",
				"~/Scripts/coffee/TestCoffeeScript.coffee",
				"~/Scripts/coffee/TestLiterateCoffeeScript.litcoffee",
				"~/Scripts/coffee/TestCoffeeScriptMarkdown.coffee.md",
				"~/Scripts/ts/TranslatorBadge.ts",
				"~/Scripts/ts/ColoredTranslatorBadge.ts",
				"~/Scripts/ts/TestTypeScript.ts");
			commonScriptsBundle.Orderer = nullOrderer;
			bundles.Add(commonScriptsBundle);

			var commonTemplatesBundle = new CustomScriptBundle("~/Bundles/CommonTemplates");
			commonTemplatesBundle.Include(
				"~/Scripts/hogan/template-{version}.js",
				"~/Scripts/hogan/HoganTranslatorBadge.mustache",
				"~/Scripts/hogan/TestHogan.js",
				"~/Scripts/handlebars/handlebars.runtime.js",
				"~/Scripts/handlebars/HandlebarsHelpers.js",
				"~/Scripts/handlebars/HandlebarsTranslatorBadge.handlebars",
				"~/Scripts/handlebars/TestHandlebars.js");
			commonTemplatesBundle.Orderer = nullOrderer;
			bundles.Add(commonTemplatesBundle);

			var jqueryUiStylesDirectoryBundle = new Bundle("~/Bundles/JqueryUiStylesDirectory")
			{
				Builder = nullBuilder
			};
			jqueryUiStylesDirectoryBundle.IncludeDirectory("~/Content/themes/base/", "*.css");
			jqueryUiStylesDirectoryBundle.Transforms.Add(new StyleTransformer(
				new[] { "*.all.css", "jquery.ui.base.css" }));
			bundles.Add(jqueryUiStylesDirectoryBundle);

			var scriptsDirectoryBundle = new Bundle("~/Bundles/ScriptsDirectory")
			{
				Builder = nullBuilder
			};
			scriptsDirectoryBundle.IncludeDirectory("~/Scripts/", "*.js", true);
			scriptsDirectoryBundle.Transforms.Add(new ScriptTransformer(
				new[] { "*.all.js", "_references.js" }));
			bundles.Add(scriptsDirectoryBundle);
		}
Пример #26
0
        // 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 CssTransformer();
            var jsTransformer  = new JsTransformer();
            var nullOrderer    = new NullOrderer();

            var cssBundle = new CustomStyleBundle("~/bundles/css");

            cssBundle.Include("~/Content/Site.less", "~/Content/bootstrap/bootstrap.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 signalRBundle = new CustomScriptBundle("~/bundles/jquery-signalR");

            jqueryBundle.Include("~/Scripts/jquery.signalR-{version}.js", "~/Scripts/jquery.signalR-{version}.min.js");
            jqueryBundle.Transforms.Add(jsTransformer);
            jqueryBundle.Orderer = nullOrderer;
            bundles.Add(signalRBundle);

            var jqueryvalBundle = new CustomScriptBundle("~/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 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/bootstrap.min.js", "~/Scripts/respond.js");
            bootstrapBundle.Transforms.Add(jsTransformer);
            bootstrapBundle.Orderer = nullOrderer;
            bundles.Add(bootstrapBundle);

            var bootstrapLess = new CustomStyleBundle("~/bundles/bootstrapLess");

            bootstrapLess.Include("~/Content/bootstrap/bootstrap.less");
            bootstrapLess.Transforms.Add(cssTransformer);
            bootstrapLess.Orderer = nullOrderer;
            bundles.Add(bootstrapLess);

            //Google Map CSS bundle
            var googMapCSS = new CustomStyleBundle("~/bundles/googMapCSS");

            googMapCSS.Include("~/Content/Map/GOOG/*.css");
            googMapCSS.Transforms.Add(cssTransformer);
            googMapCSS.Orderer = nullOrderer;
            bundles.Add(googMapCSS);

            //Google Map JS bundle
            var googMapJS = new CustomScriptBundle("~/bundles/googMapJS");

            googMapJS.Include("~/Content/Map/GOOG/*.js");
            googMapJS.Transforms.Add(jsTransformer);
            googMapJS.Orderer = nullOrderer;
            bundles.Add(googMapJS);

            //Open Layers Map CSS bundle
            var olMapCSS = new CustomStyleBundle("~/bundles/olMapCSS");

            olMapCSS.Include("~/Content/Map/OL/*.css");
            olMapCSS.Transforms.Add(cssTransformer);
            olMapCSS.Orderer = nullOrderer;
            bundles.Add(olMapCSS);

            //Open Layers Map JS bundle
            var olMapJS = new CustomScriptBundle("~/bundles/olMapJS");

            olMapJS.Include("~/Content/Map/OL/*.js");
            olMapJS.Transforms.Add(jsTransformer);
            olMapJS.Orderer = nullOrderer;
            bundles.Add(olMapJS);

            //Angular Scripts Bundle
            var angularJS = new CustomScriptBundle("~/bundles/angular");

            angularJS.Include("~/Scripts/angular-route.js");
            angularJS.Include("~/Scripts/angular-resource.js");
            angularJS.Include("~/Scripts/angular-animate.js");
            angularJS.Include("~/Scripts/angular.js");
            angularJS.Include("~/Controllers/app/js/admin_page/admin_page.app.js");
            angularJS.Include("~/Controllers/app/js/admin_page/controllers/admin.ctrl.js");
            angularJS.Transforms.Add(jsTransformer);
            angularJS.Orderer = nullOrderer;
            bundles.Add(angularJS);

            var detailView = new CustomStyleBundle("~/bundles/detailsCSS");

            detailView.Include("~/Content/detailViewResources/dv.css");
            detailView.Transforms.Add(cssTransformer);
            detailView.Orderer = nullOrderer;
            bundles.Add(detailView);

            var detailViewJS = new CustomScriptBundle("~/bundles/detailsJS");

            detailViewJS.Include("~/Content/detailViewResources/dv.js");
            detailViewJS.Transforms.Add(jsTransformer);
            detailViewJS.Orderer = nullOrderer;
            bundles.Add(detailViewJS);

            var sim = new CustomScriptBundle("~/bundles/sim");

            sim.Include("~/Scripts/proj4.js");
            sim.Include("~/Content/NestScripts/reporter.js");
            sim.Include("~/Content/NestScripts/simulation.js");
            sim.Include("~/Content/NestScripts/vehicle.js");
            bundles.Add(sim);
            //Font Awesome
            //var fa = new CustomStyleBundle("~/bundles/fontawesome");
            //fa.Include("~/Content/font-awesome-4.3.0/css/font-awesome.min.css");
            //fa.Include("~/Content/font-awesome-4.3.0/fonts/font-awesome.webfont.woff");
            //bundles.Add(fa);
        }
Пример #27
0
        // Para obtener más información sobre las uniones, visite https://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            // Utilice la versión de desarrollo de Modernizr para desarrollar y obtener información. De este modo, estará
            // para la producción, use la herramienta de compilación disponible en https://modernizr.com para seleccionar solo las pruebas que necesite.



            //CONTENT
            bundles.Add(new StyleBundle("~/Content/css").Include(
                            "~/css/bootstrap.min.css",
                            "~/css/owl.carousel.min.css",
                            "~/css/gijgo.css",
                            "~/css/slicknav.css",
                            "~/css/slick.css",
                            "~/css/animate.min.css",
                            "~/css/magnific-popup.css",
                            "~/css/fontawesome-all.min.css",
                            "~/css/themify-icons.css",
                            "~/css/nice-select.css",
                            "~/css/style.css",
                            "~/css/responsive.css"));

            //Added by Belen -> Content

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

            //bundles.Add(new StyleBundle("~/Content/fontawesome").Include(
            //   "~/css/fontawesome-all.min.css"
            //   ));

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

            //bundles.Add(new StyleBundle("~/Content/magnificpopup").Include(
            //   "~/css/magnific-popup.css"));

            bundles.Add(new StyleBundle("~/Content/main").Include(
                            "~/css/main.css",
                            "~/css/main.map"));

            //bundles.Add(new StyleBundle("~/Content/niceSelect").Include(
            //   "~/css/nice-select.css"));

            //bundles.Add(new StyleBundle("~/Content/carousel").Include(
            //  "~/css/owl.carousel.min.css"));

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

            //bundles.Add(new StyleBundle("~/Content/slick").Include(
            //  "~/css/slick.css",
            //  "~/css/slicknav.css"));

            //bundles.Add(new StyleBundle("~/Content/themifyIcons").Include(
            //  "~/css/themify-icons.css"));

            //SCRIPTS

            bundles.Add(new ScriptBundle("~/bundles/js").Include(
                            "~/js/vendor/jquery-1.12.4.min.js",
                            "~/js/popper-*",
                            "~/js/bootstrap.min.js",
                            "~/js/jquery.slicknav.min.js",
                            "~/js/owl.carousel.min.js",
                            "~/js/slick.min.js",
                            "~/js/gijgo.min.js",
                            "~/js/wow.min.js",
                            "~/js/animated.headline.js",
                            "~/js/jquery.magnific-popup.js",
                            "~/js/jquery.scrollUp.min.js",
                            "~/js/jquery.nice-select.min.js",
                            "~/js/jquery.sticky.js",
                            "~/js/contact.js",
                            "~/js/jquery.form.js",
                            "~/js/jquery.validate*",
                            "~/js/mail-script.js",
                            "~/js/jquery.ajaxchimp.min.js",
                            "~/js/plugins.js",
                            "~/js/main.js"));

            //bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
            //          "~/js/bootstrap.min.js"));

            //bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
            //            "~/js/vendor/jquery-1.12.4.min.js"));

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

            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                            "~/js/vendor/modernizr-*"));


            //Added by Belen -> Scripts
            //bundles.Add(new ScriptBundle("~/bundles/animatedHeadline").Include(
            //           "~/js/animated.headline.js"));

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

            //bundles.Add(new ScriptBundle("~/bundles/gijgo").Include(
            //          "~/js/gijgo.min.js"));

            //bundles.Add(new ScriptBundle("~/bundles/ajaxchimp").Include(
            //         "~/js/jquery.ajaxchimp.min.js"));

            //bundles.Add(new ScriptBundle("~/bundles/form").Include(
            //        "~/js/jquery.form.js"));

            //bundles.Add(new ScriptBundle("~/bundles/magnificPoppup").Include(
            //        "~/js/jquery.magnific-popup.js"));

            //bundles.Add(new ScriptBundle("~/bundles/niceSelect").Include(
            //        "~/js/jquery.nice-select.min.js"));

            bundles.Add(new ScriptBundle("~/bundles/paroller").Include(
                            "~/js/jquery.paroller.min.js"));

            //bundles.Add(new ScriptBundle("~/bundles/scrollUp").Include(
            //       "~/js/jquery.scrollUp.min.js"));

            //bundles.Add(new ScriptBundle("~/bundles/sticky").Include(
            //      "~/js/jquery.sticky.js"));

            //bundles.Add(new ScriptBundle("~/bundles/mail").Include(
            //      "~/js/mail-script.js"));

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

            bundles.Add(new ScriptBundle("~/bundles/onePageNav").Include(
                            "~/js/one-page-nav-min.js"));

            //bundles.Add(new ScriptBundle("~/bundles/carousel").Include(
            //      "~/js/owl.carousel.min.js"));

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

            //bundles.Add(new ScriptBundle("~/bundles/popper").Include(
            //           "~/js/popper-*"));

            //bundles.Add(new ScriptBundle("~/bundles/slick").Include(
            //     "~/js/slick.min.js"));

            //bundles.Add(new ScriptBundle("~/bundles/wow").Include(
            //    "~/js/wow.min.js"));

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

            BundleResolver.Current = new CustomBundleResolver();
            var commonStyleBundle = new CustomStyleBundle("~/Bundle/sass");

            commonStyleBundle.Include("~/css/main.scss", "~/css/_blog.scss", "~/css/_blog_page.scss", "~/css/_booking.scss", "~/css/_bradcam.scss",
                                      "~/css/_color.scss", "~/css/_common.scss", "~/css/_contact.scss", "~/css/_customer.scss", "~/css/_dinning.css", "~/css/_elements.scss",
                                      "~/css/_extend.scss", "~/css/_footer.scss", "~/css/_gallery.scss", "~/css/_h1-hero.scss", "~/css/_headerMenu.scss", "~/css/_mixins.scss",
                                      "~/css/_overlay.scss", "~/css/_reset.scss", "~/css/_room.scss", "~/css/_testimonial.scss", "~/css/_variables.scss", "~/css/services.scss");
            commonStyleBundle.Orderer = nullOrderer;
            bundles.Add(commonStyleBundle);
        }