using System.Web;
using System.Web.Optimization;

namespace CD67.FicheCollege.MVC
{
    public class BundleConfig
    {
        // 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.*",
                        "~/Scripts/jquery.validate-*",
                        "~/Scripts/jquery.unobtrusive-ajax.js"));

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

            bundles.Add(new ScriptBundle("~/bundles/cd67").Include(
                      "~/Scripts/cd67-*"));

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

            // Jquery-ui
            bundles.Add(new ScriptBundle("~/bundles/jquery-ui").Include(
                      "~/Scripts/jquery-ui-i18n.js",
                      "~/Scripts/jquery-ui-{version}.js",
                      "~/Scripts/modernizr-{version}.js",
                      "~/Scripts/jquery.are-you-sure.js",
                      "~/Scripts/colorbox/jquery.colorbox-min.js"));

            bundles.Add(new StyleBundle("~/Content/jquery-ui-css").Include(
                      "~/Content/themes/base/*.css",
                      "~/Content/colorbox/colorbox.css"));

            bundles.Add(new StyleBundle("~/Content/datatables").Include(
                      "~/Content/jquery.dataTables.min.css"));
            bundles.Add(new ScriptBundle("~/bundles/datatables").Include(
                                  "~/Scripts/jquery.dataTables.min.js"));
        }
    }
}