Exemplo n.º 1
0
        protected void Application_Start(object sender, EventArgs args)
        {
            var scriptBundle = new CustomScriptBundle("~/Scripts/combined");

            scriptBundle.Include("~/Scripts/libs/*.js");
            scriptBundle.Include("~/Scripts/*.ts");
            scriptBundle.Orderer = new ScriptDependencyOrderer();
            BundleTable.Bundles.Add(scriptBundle);
        }
Exemplo n.º 2
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
        }
        // 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/Site.less", "~/Content/bootstrap/responsive-embed.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.js");
            jqueryvalBundle.Include("~/Scripts/jquery.validate.unobtrusive.js");
            jqueryvalBundle.Include("~/Scripts/jquery.unobtrusive-ajax.js");
            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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 5
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
        }
Exemplo n.º 6
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);
        }
Exemplo n.º 7
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);
        }
Exemplo n.º 8
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);
        }
Exemplo n.º 9
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);
        }
Exemplo n.º 10
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);
        }
Exemplo n.º 11
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);
        }
Exemplo n.º 12
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;
        }
Exemplo n.º 13
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);
		}
Exemplo n.º 14
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);
        }
Exemplo n.º 15
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);
        }
        // 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);
        }