public static void RegisterBundles() { BundleManager.CreateCssBundle("Bootstrap", new CssFile("~/Content/css/site.css") ); BundleManager.CreateJsBundle("jquery", 1, new JavascriptFile("~/Scripts/lib/jquery/jquery-1.10.2.js"), new JavascriptFile("~/Scripts/lib/jquery/jquery.validate.js"), new JavascriptFile("~/Scripts/lib/jquery/jquery.validate.unobtrusive.bootstrap.js"), new JavascriptFile("~/Scripts/lib/jquery/jquery.hotkeys.js") ); BundleManager.CreateJsBundle("bootstrap", 3, new JavascriptFile("~/Scripts/lib/bootstrap/modernizr-2.6.2.js"), new JavascriptFile("~/Scripts/lib/bootstrap/bootstrap.min.js"), new JavascriptFile("~/Scripts/lib/bootstrap/respond.min.js"), new JavascriptFile("~/Scripts/lib/moment/moment-with-locales.min.js") ); BundleManager.CreateJsBundle("angular", 2, new JavascriptFile("~/Scripts/lib/anuglar/angular.js"), new JavascriptFile("~/Scripts/lib/anuglar/angular-animate.js"), new JavascriptFile("~/Scripts/lib/anuglar/angular-sanitize.js") ); BundleManager.CreateJsBundle("core", 4, new JavascriptFile("~/Scripts/lib/angular-ui/ui-bootstrap.js"), new JavascriptFile("~/Scripts/application.js") ); }
public void Can_Add_And_Retreive_Js_Bundle() { var a1 = new[] { new JavascriptFile("/css/test1.css"), new JavascriptFile("/css/test2.css"), new JavascriptFile("/css/test3.css") }; var a2 = new[] { new JavascriptFile("/css/test4.css"), new JavascriptFile("/css/test5.css"), new JavascriptFile("/css/test6.css") }; var a3 = new[] { new JavascriptFile("/css/test7.css"), new JavascriptFile("/css/test8.css"), new JavascriptFile("/css/test9.css") }; BundleManager.CreateJsBundle("Js1", a1); BundleManager.CreateJsBundle("Js2", a2); BundleManager.CreateJsBundle("Js3", a2); Assert.AreEqual(BundleManager.GetJsBundles().Count, 3); }
public static void CreateBundles() { #region Javascript Bundles BundleManager.CreateJsBundle(@"jQuery", new JavascriptFile(@"~/Scripts/jquery-3.1.1.js"), new JavascriptFile(@"~/Scripts/jquery-migrate-3.0.0.js"), new JavascriptFile(@"~/Scripts/jquery.easing.1.3.js")); BundleManager.CreateJsBundle(@"jQueryValidation", new JavascriptFile(@"~/Scripts/jquery.validate.js"), new JavascriptFile(@"https://ajax.aspnetcdn.com/ajax/mvc/5.1/jquery.validate.unobtrusive.min.js"), new JavascriptFile(@"~/Scripts/jquery.unobtrusive-ajax.js")); BundleManager.CreateJsBundle(@"bootstrap", new JavascriptFile(@"~/Scripts/bootstrap.js")); BundleManager.CreateJsBundle(@"globalScripts", new JavascriptFile(@"~/Scripts/scrolling-nav.js"), new JavascriptFile(@"~/Scripts/respond.js")); BundleManager.CreateJsBundle(@"kendo", new JavascriptFile(@"https://kendo.cdn.telerik.com/2017.2.504/js/jszip.min.js"), new JavascriptFile(@"https://kendo.cdn.telerik.com/2017.2.504/js/kendo.all.min.js"), new JavascriptFile(@"https://kendo.cdn.telerik.com/2017.2.504/js/kendo.aspnetmvc.min.js"), new JavascriptFile(@"~/Scripts/kendo.modernizr.custom.js")); #endregion #region Css Bundles BundleManager.CreateCssBundle(@"bootstrap", new CssFile(@"~/Content/bootstrap.css"), new CssFile(@"~/Content/bootstrap-theme.css")); BundleManager.CreateCssBundle(@"site", new CssFile(@"~/css/Site.css"), new CssFile(@"~/Content/font-awesome.css")); BundleManager.CreateCssBundle(@"kendo", new CssFile("https://kendo.cdn.telerik.com/2017.2.504/styles/kendo.common.min.css"), new CssFile("https://kendo.cdn.telerik.com/2017.2.504/styles/kendo.mobile.all.min.css"), new CssFile("https://kendo.cdn.telerik.com/2017.2.504/styles/kendo.dataviz.min.css"), new CssFile("https://kendo.cdn.telerik.com/2017.2.504/styles/kendo.metro.min.css"), new CssFile("https://kendo.cdn.telerik.com/2017.2.504/styles/kendo.dataviz.metro.min.css")); #endregion }
public static void CreateBundles() { /* * Requires the following bower components: * "jquery-validate": "^1.14.0", * "jquery-validation-unobtrusive": "^3.2.5", * "jquery-validate-bootstrap": "*" */ BundleManager.CreateJsBundle("jquery.validate", new JavascriptFile("~/content/components/jquery-validate/dist/jquery.validate.js"), new JavascriptFile("~/content/components/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"), new JavascriptFile("~/content/components/jquery-validate-bootstrap/jquery.validate.bootstrap.js")); /* * Requires the following bower components: * "picturefill": "^3.0.1", * "picturefill-background": "*", * "imagesloaded": "^4.1.0", * "masonry": "^4.0.0", * "isotope": "^2.2.2", */ BundleManager.CreateJsBundle("core", new JavascriptFile("~/content/components/bootstrap/dist/js/bootstrap.min.js"), new JavascriptFile("~/content/components/picturefill/dist/picturefill.min.js"), // TODO: Add picturefill-background //new JavascriptFile("~/content/components/picturefill/dist/picturefill.min.js"), new JavascriptFile("~/content/components/imagesloaded/imagesloaded.pkgd.min.js"), new JavascriptFile("~/content/components/masonry/dist/masonry.pkgd.min.js"), new JavascriptFile("~/content/components/isotope/dist/isotope.pkgd.min.js")); /* * Requires the following bower components: * "angular": "1.4.0", * "angular-sanitize": "1.4.6", * "angular-bootstrap": "^1.1.1", */ BundleManager.CreateJsBundle("app", new JavascriptFile("~/content/components/angular/angular.min.js"), new JavascriptFile("~/content/components/angular-sanitize/angular-sanitize.min.js"), new JavascriptFile("~/content/components/angular-bootstrap/ui-bootstrap.min.js"), new JavascriptFile("~/scripts/app/controllers/SearchController.js")); }
private void CreateBundles() { BundleManager.CreateCssBundle( "MasterCss", 1, new CssFile("~/css/bootstrap.css"), new CssFile("~/css/site.css")); BundleManager.CreateJsBundle( "MasterScripts", 1, new JavascriptFile("~/scripts/jquery-3.3.1.js"), new JavascriptFile("~/scripts/popper.js"), new JavascriptFile("~/scripts/bootstrap.js"), new JavascriptFile("~/scripts/site.js")); BundleManager.CreateJsBundle( "ValidationScripts", new JavascriptFile("~/scripts/jquery.validate.js"), new JavascriptFile("~/scripts/jquery.validate.unobtrusive.options.js"), new JavascriptFile("~/scripts/jquery.validate.unobtrusive.js")); }
private static void CreateBundles() { BundleManager.CreateCssBundle("Bootstrap", new CssFile("~/Content/bootstrap.css"), new CssFile("~/Content/bootstrap-theme.css"), new CssFile("~/Content/css/font-awesome.css"), new CssFile("~/Content/index-style.css"), new CssFile("~/Content/site.css"), new CssFile("~/Content/estilo.css")); BundleManager.CreateJsBundle("BaseJavascript", new JavascriptFile("~/Scripts/jquery.validate.js"), new JavascriptFile("~/Scripts/jquery.validate.unobtrusive.js"), new JavascriptFile("~/Scripts/bootstrap.js"), new JavascriptFile("~/Scripts/jquery.matchHeight.js"), new JavascriptFile("~/Scripts/raty/jquery.raty.js"), new JavascriptFile("~/Scripts/jquery.inputmask/jquery.inputmask-2.4.30.js"), new JavascriptFile("~/Scripts/jquery.inputmask/jquery.inputmask.numeric.extensions-2.4.30.js"), new JavascriptFile("~/Scripts/jquery.blockUI.js"), new JavascriptFile("~/scripts/bootbox.js"), new JavascriptFile("~/scripts/jquery.google-analytics.js") ); }